summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-05-20 14:26:22 +0200
committerAlbin <albin@mullvad.net>2022-05-20 14:37:50 +0200
commit1080dabd122d9a67f5ef5260c7731639a0535646 (patch)
treea0146b7d4cb095a8dde8c3ad7b022de52be5c8eb /android/app/src
parent9d2ceab94ce1e67140bfc4e34bf5ca9d980304d5 (diff)
downloadmullvadvpn-1080dabd122d9a67f5ef5260c7731639a0535646.tar.xz
mullvadvpn-1080dabd122d9a67f5ef5260c7731639a0535646.zip
Rename Android UI DI module
Rename the UI specific DI module to avoid potential confusion with the Application class.
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt (renamed from android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt)2
-rw-r--r--android/app/src/test/kotlin/net/mullvad/mullvadvpn/di/UiModuleTest.kt (renamed from android/app/src/test/kotlin/net/mullvad/mullvadvpn/di/AppModuleTest.kt)4
2 files changed, 3 insertions, 3 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt
index 5d576f0f0c..17cfd3c922 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt
@@ -14,7 +14,7 @@ import org.koin.core.qualifier.named
import org.koin.dsl.module
import org.koin.dsl.onClose
-val appModule = module {
+val uiModule = module {
single<PackageManager> { androidContext().packageManager }
single<String>(named(SELF_PACKAGE_NAME)) { androidContext().packageName }
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/di/AppModuleTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/di/UiModuleTest.kt
index c30a63fedf..92ffd792a0 100644
--- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/di/AppModuleTest.kt
+++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/di/UiModuleTest.kt
@@ -16,11 +16,11 @@ import org.koin.core.scope.Scope
import org.koin.test.KoinTest
import org.koin.test.KoinTestRule
-class AppModuleTest : KoinTest {
+class UiModuleTest : KoinTest {
@get:Rule
val koinTestRule = KoinTestRule.create {
- modules(appModule)
+ modules(uiModule)
}
@After