summaryrefslogtreecommitdiffhomepage
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2021-05-19Test creating an already escaped `MsgString`Janito Vaqueiro Ferreira Filho1-0/+9
2021-05-19Test `MsgString` escaping of double quotesJanito Vaqueiro Ferreira Filho1-0/+9
2021-05-19Test creating an empty `MsgString`Janito Vaqueiro Ferreira Filho1-0/+12
2021-05-19Test parameter indices handling in `StringValue`Janito Vaqueiro Ferreira Filho1-0/+27
2021-05-19Test XML escaping in `StringValue`Janito Vaqueiro Ferreira Filho1-0/+15
2021-05-19Test Android-specific escaping in `StringValue`Janito Vaqueiro Ferreira Filho1-0/+22
2021-05-19Test normalization of gettext `MsgString`Janito Vaqueiro Ferreira Filho1-0/+19
2021-05-19Test normalization of `StringValue`Janito Vaqueiro Ferreira Filho1-0/+24
2021-05-19Only add parameter indices if they are missingJanito Vaqueiro Ferreira Filho1-2/+33
This change also makes the code handle strings where some parameters have indices and some don't. The ones that don't are assigned indices sequentially starting from the last specified index plus one, or one if there aren't any.
2021-05-19Move collapsing line breaks to constructorJanito Vaqueiro Ferreira Filho2-5/+13
This is because the removal of line breaks is not part of the normalization but part of initial conditioning of the input.
2021-05-19Refactor to create a helper methodJanito Vaqueiro Ferreira Filho1-5/+17
Make that part of the code a bit clearer by moving it into a new method that has a clear name.
2021-05-19Rename `android::StringValue` constructorJanito Vaqueiro Ferreira Filho4-5/+8
Make it consistent with `gettext::MsgString` and make it clearer that escaping will be performed.
2021-05-19Remove previous gettext string normalizationJanito Vaqueiro Ferreira Filho2-32/+10
2021-05-19Improve construction semantics for `MsgString`Janito Vaqueiro Ferreira Filho3-28/+34
2021-05-19Implement `Normalize` for `gettext::MsgString`Janito Vaqueiro Ferreira Filho2-2/+25
2021-05-19Remove previous Android string normalizationJanito Vaqueiro Ferreira Filho3-49/+3
2021-05-19Implement `Normalize` for `android::StringValue`Janito Vaqueiro Ferreira Filho2-0/+32
2021-05-19Create a new `Normalize` traitJanito Vaqueiro Ferreira Filho2-0/+7
Place it in a new `normalize` module so that the all normalization code is in a single module. This helps to make sure the normalized common format is respected by all implementations.
2021-05-19Move `PluralForm` into a new moduleJanito Vaqueiro Ferreira Filho2-34/+35
Also replace the `panic` that could happen when an unknown plural formula is used with returning `None`.
2021-05-19Refactor Android string resource map constructionJanito Vaqueiro Ferreira Filho1-21/+5
2021-05-19Move `MsgString` type into a separate moduleJanito Vaqueiro Ferreira Filho2-32/+38
2021-05-19Move `gettext` module into a new sub-directoryJanito Vaqueiro Ferreira Filho1-0/+0
2021-05-19Move Android plural resources code into new moduleJanito Vaqueiro Ferreira Filho2-149/+152
2021-05-19Move Android string resources code into new moduleJanito Vaqueiro Ferreira Filho2-126/+135
2021-05-19Move Android `StringValue` into a new moduleJanito Vaqueiro Ferreira Filho2-73/+81
2021-05-19Move `android` module to a new directoryJanito Vaqueiro Ferreira Filho1-0/+0
2021-05-14Test `HandlerFlow` forwarding messagesJanito Vaqueiro Ferreira Filho2-0/+49
2021-05-14Refactor `TileService` to use flow based APIJanito Vaqueiro Ferreira Filho1-31/+21
2021-05-14Provide flow of tunnel statesJanito Vaqueiro Ferreira Filho1-0/+17
2021-05-14Unregister listener when scope or flow is closedJanito Vaqueiro Ferreira Filho1-7/+28
2021-05-14Handle requests to unregister listenersJanito Vaqueiro Ferreira Filho1-2/+16
2021-05-14Add `Request.UnregisterListener` variantJanito Vaqueiro Ferreira Filho1-0/+3
2021-05-14Replace registration queue with command channelJanito Vaqueiro Ferreira Filho1-9/+17
2021-05-14Store listeners in a map with IDsJanito Vaqueiro Ferreira Filho1-5/+5
2021-05-14Include a listener ID in `Event.ListenerReady`Janito Vaqueiro Ferreira Filho2-2/+14
2021-05-14Create a new flow-based `ServiceConnection` classJanito Vaqueiro Ferreira Filho1-0/+65
2021-05-14Add `Messenger` parameter to `ListenerReady`Janito Vaqueiro Ferreira Filho2-2/+3
It's currently redundant, but it will help with the code when it uses flows.
2021-05-14Create `Context.bindServiceFlow` extension methodAleksandr Granin1-0/+27
2021-05-14Create `HandlerFlow` helper typeJanito Vaqueiro Ferreira Filho1-0/+45
A handler message loop that can be used as a `Flow`.
2021-05-14Create `DispatchingFlow` helper typeJanito Vaqueiro Ferreira Filho1-0/+49
2021-05-05Set 1 line limit for expanded title to prevent wrong calcalution of height ↵Aleksandr Granin8-0/+8
scale.
2021-05-04Bump Android version in build.gradleLinus Färnstrand1-2/+2
2021-05-04Update android automatic changelog and rename beta -> defaultLinus Färnstrand2-5/+1
2021-04-29Clean-up obsolete tunnel state persistence dataJanito Vaqueiro Ferreira Filho1-0/+6
2021-04-29Remove tunnel state storage in shared preferencesJanito Vaqueiro Ferreira Filho4-113/+0
2021-04-29Run `MullvadTileService` in a separate processJanito Vaqueiro Ferreira Filho1-1/+2
Ensure there are no service connection scope conflicts.
2021-04-29Use an IPC connection for the tile serviceJanito Vaqueiro Ferreira Filho1-5/+29
2021-04-29Make `onServiceReady` parameter optionalJanito Vaqueiro Ferreira Filho1-2/+2
2021-04-29Fix incorrect `super` method callJanito Vaqueiro Ferreira Filho1-1/+1
2021-04-29Create `updateTunnelState` helper methodJanito Vaqueiro Ferreira Filho1-13/+13