summaryrefslogtreecommitdiffhomepage
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2021-12-20Add Android dependency auditAlbin2-0/+14
Adds the OWASP Dependency-Check tool to the project to detect potentially vulnerable dependencies. Gradle is configured to skip the lintClassPath configuration, which relies on many dependencies that has been flagged to have CVEs, as it's related to the lint tooling rather than the project's compilation class path. The alternative would be to suppress specific CVEs, however that could potentially result in suppressed CVEs in project compilation class path.
2021-12-20Clarify Android tile textAlbin3-1/+11
Change Android tile title/label to "Toggle VPN" to better inform the user about the tile action. Also set the subtitle (on Android Q and above) to match the state shown in the notification.
2021-12-16Split Android project and app moduleAlbin432-179/+186
The purpose of this is to: * Comply better with the default Android project structure (see https://developer.android.com/studio/build). * Avoid conflicts between project and app dependencies and plugins.
2021-12-07Fix custom dns toggle not working after resumeAlbin2-64/+92
Fixes an issue with the custom dns toggle and server list not not working after the app is resumed, due to the logic not being aware of new service connections. The issue was fixed by moving some responsibility from the adapter to the fragment and making sure new service connections triggers new data subscriptions to be set up.
2021-12-07Fix resume navigates backAlbin1-9/+2
Fixes the automatic back navigation when the Android app is resumed by simplifying the state handling (redudant state removed).
2021-11-26Fix banner sometimes incorrectly showingAlbin1-7/+4
2021-11-26Improve tile service connectionAlbin4-23/+79
If the connection from the MullvadTileService to the MullvadVpnService has been lost, the tile service will now detect this and both change the tile state as well as try to reconnect.
2021-11-26Remove notification delete intentAlbin1-10/+1
This change removes the delete intent from the connection state notification, which means that the service will no longer be killed by swiping the notification (when it's not in foreground).
2021-11-26Skip removing notification when service stoppedAlbin1-1/+0
2021-11-26Avoid running in foreground when not connectedAlbin4-35/+5
This change makes the Android service (MullvadVpnService) only run in foreground when connected, compared to previously when it also ran in foreground when the app/ui was in foreground. This change reduces the amount of potential states after the previous work of splitting the app/ui and service into separate processes. It also makes the app/service better aligned with the Android platform, as foreground services only should be used for ongoing operations/work.
2021-11-10Cleanup leftover SDK version checksAlbin5-42/+12
Removes SDK checks for non-supported versions (below version 26).
2021-11-08Prevent the Android translations converter crate from being publishedLinus Färnstrand1-2/+1
2021-11-08Set all Rust crates to edition 2021Linus Färnstrand1-1/+1
2021-11-03Automatically disable custom dns when no added serversAlbin2-5/+18
2021-10-25Update Android translationsOskar Nyberg19-20/+39
2021-10-08Fix scrolling of Android logsAlbin1-12/+18
Fixes scrolling behavior and adds a scrollbar.
2021-10-08Drop support for Android 7/7.1Albin1-1/+1
Android 8/API level 26 or later is now required.
2021-10-07Skip translation of app nameAlbin21-20/+2
2021-10-07Remove logic for generating translated URLsAlbin1-37/+2
2021-10-07Remove translated URLsAlbin18-90/+0
2021-10-07Separate non-translatable stringsAlbin2-9/+16
2021-10-07Clarify custom dns hintAlbin21-21/+21
When the user adds a custom dns, the input field hint will say "Enter IP" rather than "e.g. 10.0.0.4" to avoid confusion.
2021-10-06Fix reconnect on app resumeAlbin1-3/+5
Fixes an issue with the app automatically reconnecting each time it's resumed from the background. The issue was caused by the app and service being out-of-sync in terms of split tunneling state during app resume, which was fixed by comparing the new and old state in the service before notifying other components.
2021-10-06Set correct input type of problem report emailAlbin1-0/+1
2021-10-04Migrate from JCenter to mavenCentralAlbin2-10/+18
JCenter has been sunset and should no longer be relied on as per: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ The migration also required the following changes: * Updated Koin maven group id as per the official documentation at: https://insert-koin.io/docs/setup/v2/ * Bump MockK version due to old versions of one of its dependencies' (dexmaker) not being available at mavenCentral. * Fix mockK instrumentation lib issue.
2021-08-26Update unit testsAleksandr Granin2-5/+17
2021-08-26Add ViewIntent for system apps appearingAleksandr Granin5-5/+35
2021-08-26Update applications filter and data container with system infoAleksandr Granin2-3/+7
2021-08-26Initiate excluded apps list properlyAleksandr Granin1-1/+1
2021-08-19Fix focus issue when in some cases value of MTU was erasedAleksandr Granin2-2/+4
2021-08-18Fix dockerfileEmīls1-8/+1
Change the dockerfile to stop depending on a specific rust version and remove the dependency on nodejs. This makes the docker image buildable for now, but the dependency on the hash of the rustup installation script will break often anyway.
2021-07-06Fix issue with app never requesting VPN permissionEmīls1-0/+5
2021-07-06Add android studio files to .gitignore.Emīls6-180/+0
2021-07-02Update Android translationsOskar Nyberg38-360/+417
2021-06-18Update account history RPCsDavid Lönnhager8-35/+29
2021-05-28Test TV-only apps in `ApplicationsProviderTest`Janito Vaqueiro Ferreira Filho1-9/+45
2021-05-28Show TV-only apps in the Split Tunneling screenJanito Vaqueiro Ferreira Filho1-1/+2
These apps don't hvae a normal launch intent. They have a leanback launch intent instead, and this changes the filtering code to show all apps that has either a normal launch intent or a leanback launch intent.
2021-05-28Remove obsolete `parse_line` helper functionJanito Vaqueiro Ferreira Filho1-11/+0
Replaced by the new `match_str!` macro implementation.
2021-05-28Fix translationsJanito Vaqueiro Ferreira Filho1-10/+10
Use updated tool to include the whole multi-line plural entries for Japanese.
2021-05-28Fix handling of multi-line messagesJanito Vaqueiro Ferreira Filho1-15/+162
A message string can be split among multiple lines, and this was not properly handled. Now it is handled by separate states that join all the lines it finds related to the message.
2021-05-28Test `MsgString` concatenationJanito Vaqueiro Ferreira Filho1-0/+36
Test by moving the operands and by borrowing them. Also test appending to a `MsgString`.
2021-05-28Implement `Add` for `MsgString`Janito Vaqueiro Ferreira Filho1-1/+21
Allow joining two `MsgString`s, either by moving them or by borrowing them.
2021-05-28Implement `AddAssign` for `MsgString`Janito Vaqueiro Ferreira Filho1-1/+16
Allowing appending to a `MsgString`.
2021-05-28Refactor parser into a clearer state machineJanito Vaqueiro Ferreira Filho1-73/+322
Make it more robust, maintainable and readable.
2021-05-28Return errors from parser methodsJanito Vaqueiro Ferreira Filho2-22/+50
Avoid panicking inside of `Parser`.
2021-05-28Derive `Eq` and `PartialEq` for `MsgString`Janito Vaqueiro Ferreira Filho1-1/+1
This is to allow `Eq` to be derived for the future `gettext::parser::Error` type.
2021-05-28Move `Parser` into a separate moduleJanito Vaqueiro Ferreira Filho3-109/+145
Prepare for refactoring the parsing logic to improve readability and maintainability.
2021-05-28Add `Messages::add_plural` helper methodJanito Vaqueiro Ferreira Filho1-0/+10
Adds plural entries.
2021-05-28Add `Messages::add` helper methodJanito Vaqueiro Ferreira Filho1-0/+10
Adds non-plural message entries.
2021-05-28Add `Messages::starting_with` constructorJanito Vaqueiro Ferreira Filho1-0/+15
Helper constructor to create the instance with an initial entry.