summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
AgeCommit message (Collapse)AuthorFilesLines
2022-05-31Fix lifecycle owner view crashAlbin1-3/+2
2022-05-31Use Koin for login vmAlbin4-32/+11
2022-05-31Adapt device repo to new service managementAlbin9-60/+82
2022-05-31Refactor Android service connection managementAlbin12-94/+172
This refactor aims to be a step in decoupling the service connection from the main activity and fragment inheritance. The goal is to avoid or minimize the fragment inheritance and instead let each domain observe service connection changes and adjust accordingly.
2022-05-31Fix Koin lifecycle crashAlbin2-2/+2
2022-05-25Simplify device removal eventDavid Lönnhager1-1/+0
2022-05-20Avoid loading the UI DI module in all processesAlbin2-8/+15
Loads the UI specific DI module only in the process/activity where it's used. Before, the UI module and its dependencies would be loaded in the service and tile processes as well.
2022-05-20Rename Android UI DI moduleAlbin2-3/+3
Rename the UI specific DI module to avoid potential confusion with the Application class.
2022-05-18Remove Android wireguard key viewAlbin15-640/+1
The wireguard key view is removed in favor of the new way of managing devices. Translations and some error handling remain.
2022-05-17Refactor Android account clearingAlbin1-9/+8
2022-05-17Remove expiry invalidationAlbin6-26/+8
2022-05-17Fix login vm unit testsAlbin2-105/+38
2022-05-17Cleanup login statusAlbin7-69/+12
2022-05-17Refactor account expiryAlbin13-191/+148
2022-05-17Fix Android history fetchingAlbin4-2/+17
2022-05-17Refactor Android account historyAlbin7-26/+49
2022-05-17Add Android login eventAlbin5-29/+45
2022-05-17Use separate event for Android account creationAlbin5-2/+53
2022-05-17Fix app stuck at launch if device revokedAlbin1-0/+9
This is an intermediate way of handling revoked devices until the proper screen has been merged.
2022-05-17Fix Android device state refreshAlbin2-13/+14
2022-05-12Adapt new device event/state to AndroidAlbin8-25/+31
2022-05-05Adapt Android naming to AccountAndDeviceAlbin3-8/+8
2022-05-05Hide private device type in `mullvad-daemon`David Lönnhager4-9/+9
2022-04-20Fix/suppress dependency audit issuesAlbin1-1/+1
2022-04-20Add webview to enable e2e test verificationAlbin3-0/+58
The webview is added to the debug build type of the main app, but it's current purpose is only to enable verification as part of e2e tests. One example is to open the webview on the device while connected and verify the results of the Mullvad Connection Check.
2022-04-20Add login vm testsAlbin2-3/+225
2022-04-20Fix missing account number in welcome viewAlbin1-1/+7
2022-04-20Refactor login view to use a view modelAlbin3-114/+224
2022-04-20Show device name in account viewAlbin5-1/+34
2022-04-20Fix initial device refreshAlbin2-4/+6
2022-03-31Add update_device to Android interfaceDavid Lönnhager1-0/+3
2022-03-30Propagate device state over service connectionAlbin16-51/+206
Adds device state communication between the app and service with a repository backed by a data source to add abstraction layers on the app side. Limitations: * Expiration is not updated correctly. * The login/creation flow has not been fully adapted to devices.
2022-03-28Cleanup empty else branch of when-statementsAlbin1-12/+6
2022-03-28Cleanup unused functionAlbin1-4/+0
2022-03-28Cleanup unused constructorsAlbin11-77/+0
2022-03-28Format Kotlin according to official code styleAlbin43-128/+146
Android Studio and ktlint seem to agree on most styling except for imports. Some settings can be changed in Android Studio, however it seems to be hard to get lexicographical order (which ktlin wants). Therefore ktlint should be ran after any formatting has been applied by Android Studio (otherwise the CI workflow will complain).
2022-03-24Remove unused account creation url in AndroidAlbin1-2/+0
The URL is a left-over after implementing in-app account creation via the daemon.
2022-03-24Initial adaption of Android login to device flowAlbin4-46/+47
Adapts the Android app to use the device login/logout functionality. Limitations: * State will not always be correctly propagated to all components of the app (i.e. Settings). This will be fixed in later device commits. * Some temporary error messages will be used in the Login view. These will change in later commits and/or be replaced with new views (i.e. when a user has too many devices registered).
2022-03-23Initial Android adaption of daemon device APIAlbin13-22/+152
Initial limited adaption of the daemon device changes. Makes it possible to launch, login and connect. However, there are some limitiations: * State is not properly handled thoughout the app. * The app itself doesn't expose any device functionality to the user. * The wireguard key actions are disabled (regenerate and verify). * Accounts are not remembered across app restart.
2022-03-14Update Rust-end JNI and Android IPCDavid Lönnhager1-8/+6
2022-03-01Remove API address rotationDavid Lönnhager1-2/+0
2022-02-24Update android stringsOskar Nyberg20-10/+29
2022-02-22Remove unused/dead code from Android tun providerDavid Lönnhager1-10/+0
2022-02-08Fix missing fdroid metadataAlbin15-40/+1
F-Droid requires the metadata to be present in a specific location which isn't compatible with our mono-repo structure, therefore this change moves the Gradle Play Publisher (GPP) directories to a location compatible with F-Droid and adds a symlink at the location GPP expects, which leads to the F-Droid location. The reason for doing it this way rather than symlinking the other way around is that we don't use GPP itself atm. Even if we start using it, it's still easier to make sure everything is working (in regards to the symlink) in the GPP build environment compared to the F-Droid build environment.
2022-02-04Fix tile service crashAlbin1-1/+6
Fixes tile service crash that occurred when the tile service tries to unbind even though there are no binding or pending binding.
2022-01-28Empty Google Play release notesAlbin1-1/+0
As releases usually are built from release branches, the current strategy will be to keep this file empty on master.
2022-01-27Fix app startup crash on Android TVsAlbin4-35/+7
The main activity and tv activity are both designed to be running as singleTask and the app would crash if both were started. This would not be common, but possible, on a phone or tablet, however this can potentially occur frequently on Android TV (perhaps depending on OEM), as both categories LAUNCHER and LEANBACK_LAUNCHER are used. E.g.the tv launcher would use LEANBACK_LAUNCHER whereas the settings app would use LAUNCHER. As the tv activity isn't used for any customization atm, this was fixed by simply removing the tv activity and adding the LEANBACK_LAUNCHER category to the main activity.
2022-01-24Specify default notification vibration behaviorAlbin3-3/+7
Default vibration behavior: * Vibration enabled for account expiration notification. * Vibration disabled for tunnel state notification. These defaults can be overridden in system settings.
2022-01-24Hide tunnel state notification from lock screenAlbin5-37/+8
The tunnel state notification is hidden from the lock screen by using the Android notification visibility mechanism.
2022-01-24Refactor to use NotificationChannelCompatAlbin1-10/+12