summaryrefslogtreecommitdiffhomepage
path: root/android/lib
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-08-12 18:27:24 +0200
committerAlbin <albin@mullvad.net>2024-08-13 09:32:06 +0200
commit2d2d41381419230f4d6b538509f03abc2cb034af (patch)
tree0b6fe23b53c78c183f853aeb9ea4e122b757d15b /android/lib
parentacd9d481f80c52cc8f9389e6ba2a8ad25599b200 (diff)
downloadmullvadvpn-2d2d41381419230f4d6b538509f03abc2cb034af.tar.xz
mullvadvpn-2d2d41381419230f4d6b538509f03abc2cb034af.zip
Migrate to version catalogs
Diffstat (limited to 'android/lib')
-rw-r--r--android/lib/billing/build.gradle.kts55
-rw-r--r--android/lib/common-test/build.gradle.kts14
-rw-r--r--android/lib/common/build.gradle.kts24
-rw-r--r--android/lib/daemon-grpc/build.gradle.kts69
-rw-r--r--android/lib/endpoint/build.gradle.kts12
-rw-r--r--android/lib/intent-provider/build.gradle.kts14
-rw-r--r--android/lib/map/build.gradle.kts20
-rw-r--r--android/lib/model/build.gradle.kts35
-rw-r--r--android/lib/payment/build.gradle.kts14
-rw-r--r--android/lib/resource/build.gradle.kts14
-rw-r--r--android/lib/shared/build.gradle.kts45
-rw-r--r--android/lib/talpid/build.gradle.kts20
-rw-r--r--android/lib/theme/build.gradle.kts16
13 files changed, 178 insertions, 174 deletions
diff --git a/android/lib/billing/build.gradle.kts b/android/lib/billing/build.gradle.kts
index 6bb4e5e7a6..ea89bc6dca 100644
--- a/android/lib/billing/build.gradle.kts
+++ b/android/lib/billing/build.gradle.kts
@@ -1,15 +1,16 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.junit5) version Versions.Plugin.junit5
- id(Dependencies.Plugin.kotlinAndroidId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+
+ id(Dependencies.junit5AndroidPluginId) version Versions.junit5Plugin
}
android {
namespace = "net.mullvad.mullvadvpn.lib.billing"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
defaultConfig {
- minSdk = Versions.Android.minSdkVersion
+ minSdk = Versions.minSdkVersion
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
@@ -40,40 +41,40 @@ android {
}
dependencies {
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
//Billing library
- implementation(Dependencies.billingClient)
+ implementation(libs.android.billingclient)
//Model
- implementation(project(Dependencies.Mullvad.modelLib))
+ implementation(projects.lib.model)
//Payment library
- implementation(project(Dependencies.Mullvad.paymentLib))
+ implementation(projects.lib.payment)
//Either
- implementation(Dependencies.Arrow.core)
+ implementation(libs.arrow)
// Management service
- implementation(project(Dependencies.Mullvad.daemonGrpc))
+ implementation(projects.lib.daemonGrpc)
// Test dependencies
- testRuntimeOnly(Dependencies.junitEngine)
+ testRuntimeOnly(Dependencies.junitJupiterEngine)
- testImplementation(project(Dependencies.Mullvad.commonTestLib))
- testImplementation(Dependencies.Kotlin.test)
- testImplementation(Dependencies.KotlinX.coroutinesTest)
- testImplementation(Dependencies.MockK.core)
- testImplementation(Dependencies.junitApi)
- testImplementation(Dependencies.turbine)
+ testImplementation(projects.lib.commonTest)
+ testImplementation(libs.kotlin.test)
+ testImplementation(libs.kotlinx.coroutines.test)
+ testImplementation(libs.mockk)
+ testImplementation(Dependencies.junitJupiterApi)
+ testImplementation(libs.turbine)
- androidTestImplementation(project(Dependencies.Mullvad.commonTestLib))
- androidTestImplementation(Dependencies.MockK.android)
- androidTestImplementation(Dependencies.Kotlin.test)
- androidTestImplementation(Dependencies.KotlinX.coroutinesTest)
- androidTestImplementation(Dependencies.turbine)
- androidTestImplementation(Dependencies.junitApi)
- androidTestImplementation(Dependencies.junitEngine)
- androidTestImplementation(Dependencies.AndroidX.espressoCore)
+ androidTestImplementation(projects.lib.commonTest)
+ androidTestImplementation(libs.mockk.android)
+ androidTestImplementation(libs.kotlin.test)
+ androidTestImplementation(libs.kotlinx.coroutines.test)
+ androidTestImplementation(libs.turbine)
+ androidTestImplementation(Dependencies.junitJupiterApi)
+ androidTestImplementation(Dependencies.junitJupiterEngine)
+ androidTestImplementation(libs.androidx.espresso)
}
diff --git a/android/lib/common-test/build.gradle.kts b/android/lib/common-test/build.gradle.kts
index 6e3fc7c02f..0f96eca415 100644
--- a/android/lib/common-test/build.gradle.kts
+++ b/android/lib/common-test/build.gradle.kts
@@ -1,13 +1,13 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.common.test"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -34,7 +34,7 @@ android {
}
dependencies {
- implementation(Dependencies.Kotlin.test)
- implementation(Dependencies.KotlinX.coroutinesTest)
- implementation(Dependencies.junitApi)
+ implementation(libs.kotlin.test)
+ implementation(libs.kotlinx.coroutines.test)
+ implementation(Dependencies.junitJupiterApi)
}
diff --git a/android/lib/common/build.gradle.kts b/android/lib/common/build.gradle.kts
index e327a8922c..0bc10aa6c4 100644
--- a/android/lib/common/build.gradle.kts
+++ b/android/lib/common/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.common"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -25,12 +25,12 @@ android {
}
dependencies {
- implementation(project(Dependencies.Mullvad.modelLib))
- implementation(project(Dependencies.Mullvad.resourceLib))
- implementation(project(Dependencies.Mullvad.talpidLib))
+ implementation(projects.lib.model)
+ implementation(projects.lib.resource)
+ implementation(projects.lib.talpid)
- implementation(Dependencies.AndroidX.appcompat)
- implementation(Dependencies.jodaTime)
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
+ implementation(libs.androidx.appcompat)
+ implementation(libs.jodatime)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
}
diff --git a/android/lib/daemon-grpc/build.gradle.kts b/android/lib/daemon-grpc/build.gradle.kts
index 840de57984..661e4e0d99 100644
--- a/android/lib/daemon-grpc/build.gradle.kts
+++ b/android/lib/daemon-grpc/build.gradle.kts
@@ -1,18 +1,19 @@
import com.google.protobuf.gradle.proto
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
- id(Dependencies.Plugin.Protobuf.protobufId) version Versions.Plugin.protobuf
- id(Dependencies.Plugin.junit5) version Versions.Plugin.junit5
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
+ alias(libs.plugins.protobuf.core)
+
+ id(Dependencies.junit5AndroidPluginId) version Versions.junit5Plugin
}
android {
namespace = "net.mullvad.mullvadvpn.lib.daemon.grpc"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -35,11 +36,11 @@ android {
}
protobuf {
- protoc { artifact = Dependencies.Plugin.Protobuf.protoc }
+ protoc { artifact = libs.plugins.protobuf.protoc.get().toString() }
plugins {
- create("java") { artifact = Dependencies.Plugin.Protobuf.protocGenGrpcJava }
- create("grpc") { artifact = Dependencies.Plugin.Protobuf.protocGenGrpcJava }
- create("grpckt") { artifact = Dependencies.Plugin.Protobuf.protocGenGrpcKotlin }
+ create("java") { artifact = libs.plugins.grpc.protoc.gen.grpc.java.get().toString() }
+ create("grpc") { artifact = libs.plugins.grpc.protoc.gen.grpc.java.get().toString() }
+ create("grpckt") { artifact = libs.plugins.grpc.protoc.gen.grpc.kotlin.get().toString() }
}
generateProtoTasks {
all().forEach {
@@ -54,31 +55,31 @@ protobuf {
}
dependencies {
- implementation(project(Dependencies.Mullvad.commonLib))
- implementation(project(Dependencies.Mullvad.modelLib))
- implementation(project(Dependencies.Mullvad.talpidLib))
+ implementation(projects.lib.common)
+ implementation(projects.lib.model)
+ implementation(projects.lib.talpid)
- implementation(Dependencies.jodaTime)
- implementation(Dependencies.kermit)
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesCore)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
+ implementation(libs.jodatime)
+ implementation(libs.kermit)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines)
+ implementation(libs.kotlinx.coroutines.android)
- implementation(Dependencies.Grpc.grpcOkHttp)
- implementation(Dependencies.Grpc.grpcAndroid)
- implementation(Dependencies.Grpc.grpcKotlinStub)
- implementation(Dependencies.Grpc.protobufLite)
- implementation(Dependencies.Grpc.protobufKotlinLite)
+ implementation(libs.grpc.okhttp)
+ implementation(libs.grpc.android)
+ implementation(libs.grpc.kotlin.stub)
+ implementation(libs.grpc.protobuf.lite)
+ implementation(libs.grpc.protobuf.kotlin.lite)
- implementation(Dependencies.Arrow.core)
- implementation(Dependencies.Arrow.optics)
+ implementation(libs.arrow)
+ implementation(libs.arrow.optics)
- testImplementation(project(Dependencies.Mullvad.commonTestLib))
- testImplementation(Dependencies.Kotlin.test)
- testImplementation(Dependencies.KotlinX.coroutinesTest)
- testImplementation(Dependencies.MockK.core)
- testImplementation(Dependencies.turbine)
- testImplementation(Dependencies.junitApi)
- testRuntimeOnly(Dependencies.junitEngine)
- testImplementation(Dependencies.junitParams)
+ testImplementation(projects.lib.commonTest)
+ testImplementation(libs.kotlin.test)
+ testImplementation(libs.kotlinx.coroutines.test)
+ testImplementation(libs.mockk)
+ testImplementation(libs.turbine)
+ testImplementation(Dependencies.junitJupiterApi)
+ testRuntimeOnly(Dependencies.junitJupiterEngine)
+ testImplementation(Dependencies.junitJupiterParams)
}
diff --git a/android/lib/endpoint/build.gradle.kts b/android/lib/endpoint/build.gradle.kts
index 0bf140b743..638be8b122 100644
--- a/android/lib/endpoint/build.gradle.kts
+++ b/android/lib/endpoint/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.endpoint"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -27,4 +27,4 @@ android {
}
}
-dependencies { implementation(Dependencies.Kotlin.stdlib) }
+dependencies { implementation(libs.kotlin.stdlib) }
diff --git a/android/lib/intent-provider/build.gradle.kts b/android/lib/intent-provider/build.gradle.kts
index f63a9c7f69..ca88d7f26f 100644
--- a/android/lib/intent-provider/build.gradle.kts
+++ b/android/lib/intent-provider/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.intent"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -26,6 +26,6 @@ android {
}
dependencies {
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
}
diff --git a/android/lib/map/build.gradle.kts b/android/lib/map/build.gradle.kts
index dee6779d8a..ceef054d35 100644
--- a/android/lib/map/build.gradle.kts
+++ b/android/lib/map/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.composeCompiler) version Versions.kotlin
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.compose)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.map"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -30,10 +30,10 @@ android {
}
dependencies {
- implementation(project(Dependencies.Mullvad.modelLib))
+ implementation(projects.lib.model)
- implementation(Dependencies.AndroidX.lifecycleRuntimeKtx)
- implementation(Dependencies.Compose.ui)
- implementation(Dependencies.Compose.foundation)
- implementation(Dependencies.kermit)
+ implementation(libs.androidx.lifecycle.runtime)
+ implementation(libs.compose.ui)
+ implementation(libs.compose.foundation)
+ implementation(libs.kermit)
}
diff --git a/android/lib/model/build.gradle.kts b/android/lib/model/build.gradle.kts
index 28a5804b5f..0a19eecee5 100644
--- a/android/lib/model/build.gradle.kts
+++ b/android/lib/model/build.gradle.kts
@@ -1,17 +1,18 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.junit5) version Versions.Plugin.junit5
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
- id(Dependencies.Plugin.ksp) version Versions.Plugin.ksp
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
+ alias(libs.plugins.kotlin.ksp)
+
+ id(Dependencies.junit5AndroidPluginId) version Versions.junit5Plugin
}
android {
namespace = "net.mullvad.mullvadvpn.lib.model"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
defaultConfig {
- minSdk = Versions.Android.minSdkVersion
+ minSdk = Versions.minSdkVersion
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
@@ -30,18 +31,18 @@ android {
}
dependencies {
- implementation(Dependencies.jodaTime)
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
- implementation(Dependencies.Arrow.core)
- implementation(Dependencies.Arrow.optics)
- ksp(Dependencies.Arrow.opticsKsp)
+ implementation(libs.jodatime)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
+ implementation(libs.arrow)
+ implementation(libs.arrow.optics)
+ ksp(libs.arrow.optics.ksp)
// Test dependencies
- testRuntimeOnly(Dependencies.junitEngine)
+ testRuntimeOnly(Dependencies.junitJupiterEngine)
- testImplementation(Dependencies.Kotlin.test)
- testImplementation(Dependencies.junitApi)
+ testImplementation(libs.kotlin.test)
+ testImplementation(Dependencies.junitJupiterApi)
- testImplementation(project(Dependencies.Mullvad.commonTestLib))
+ testImplementation(projects.lib.commonTest)
}
diff --git a/android/lib/payment/build.gradle.kts b/android/lib/payment/build.gradle.kts
index 892ce21c75..57a16627a1 100644
--- a/android/lib/payment/build.gradle.kts
+++ b/android/lib/payment/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.payment"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
defaultConfig {
- minSdk = Versions.Android.minSdkVersion
+ minSdk = Versions.minSdkVersion
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
@@ -39,7 +39,7 @@ android {
}
dependencies {
- implementation(Dependencies.Arrow.core)
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
+ implementation(libs.arrow)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
}
diff --git a/android/lib/resource/build.gradle.kts b/android/lib/resource/build.gradle.kts
index f3b1d02faf..c2547d1beb 100644
--- a/android/lib/resource/build.gradle.kts
+++ b/android/lib/resource/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.resource"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -26,6 +26,6 @@ android {
}
dependencies {
- implementation(Dependencies.AndroidX.appcompat)
- implementation(Dependencies.AndroidX.coreSplashscreen)
+ implementation(libs.androidx.appcompat)
+ implementation(libs.androidx.coresplashscreen)
}
diff --git a/android/lib/shared/build.gradle.kts b/android/lib/shared/build.gradle.kts
index a1bf4a9c75..68078c0a6a 100644
--- a/android/lib/shared/build.gradle.kts
+++ b/android/lib/shared/build.gradle.kts
@@ -1,15 +1,16 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
- id(Dependencies.Plugin.junit5) version Versions.Plugin.junit5
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
+
+ id(Dependencies.junit5AndroidPluginId) version Versions.junit5Plugin
}
android {
namespace = "net.mullvad.mullvadvpn.lib.shared"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -27,22 +28,22 @@ android {
}
dependencies {
- implementation(project(Dependencies.Mullvad.commonLib))
- implementation(project(Dependencies.Mullvad.daemonGrpc))
- implementation(project(Dependencies.Mullvad.modelLib))
+ implementation(projects.lib.common)
+ implementation(projects.lib.daemonGrpc)
+ implementation(projects.lib.model)
- implementation(Dependencies.Arrow.core)
- implementation(Dependencies.kermit)
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
- implementation(Dependencies.jodaTime)
+ implementation(libs.arrow)
+ implementation(libs.kermit)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
+ implementation(libs.jodatime)
- testImplementation(Dependencies.Kotlin.test)
- testImplementation(Dependencies.KotlinX.coroutinesTest)
- testImplementation(Dependencies.MockK.core)
- testImplementation(Dependencies.junitApi)
- testImplementation(Dependencies.junitParams)
- testImplementation(Dependencies.turbine)
- testImplementation(project(Dependencies.Mullvad.commonTestLib))
- testRuntimeOnly(Dependencies.junitEngine)
+ testImplementation(libs.kotlin.test)
+ testImplementation(libs.kotlinx.coroutines.test)
+ testImplementation(libs.mockk)
+ testImplementation(Dependencies.junitJupiterApi)
+ testImplementation(Dependencies.junitJupiterParams)
+ testImplementation(libs.turbine)
+ testImplementation(projects.lib.commonTest)
+ testRuntimeOnly(Dependencies.junitJupiterEngine)
}
diff --git a/android/lib/talpid/build.gradle.kts b/android/lib/talpid/build.gradle.kts
index b8426e3a81..353621b30b 100644
--- a/android/lib/talpid/build.gradle.kts
+++ b/android/lib/talpid/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.kotlinParcelizeId)
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.parcelize)
}
android {
namespace = "net.mullvad.talpid"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -25,10 +25,10 @@ android {
}
dependencies {
- implementation(project(Dependencies.Mullvad.modelLib))
+ implementation(projects.lib.model)
- implementation(Dependencies.AndroidX.lifecycleService)
- implementation(Dependencies.kermit)
- implementation(Dependencies.Kotlin.stdlib)
- implementation(Dependencies.KotlinX.coroutinesAndroid)
+ implementation(libs.androidx.lifecycle.service)
+ implementation(libs.kermit)
+ implementation(libs.kotlin.stdlib)
+ implementation(libs.kotlinx.coroutines.android)
}
diff --git a/android/lib/theme/build.gradle.kts b/android/lib/theme/build.gradle.kts
index 33f094fba4..22387a5e8c 100644
--- a/android/lib/theme/build.gradle.kts
+++ b/android/lib/theme/build.gradle.kts
@@ -1,14 +1,14 @@
plugins {
- id(Dependencies.Plugin.androidLibraryId)
- id(Dependencies.Plugin.kotlinAndroidId)
- id(Dependencies.Plugin.composeCompiler) version Versions.kotlin
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.compose)
}
android {
namespace = "net.mullvad.mullvadvpn.lib.theme"
- compileSdk = Versions.Android.compileSdkVersion
+ compileSdk = Versions.compileSdkVersion
- defaultConfig { minSdk = Versions.Android.minSdkVersion }
+ defaultConfig { minSdk = Versions.minSdkVersion }
buildFeatures { compose = true }
@@ -27,7 +27,7 @@ android {
}
dependencies {
- implementation(Dependencies.Compose.material3)
- implementation(Dependencies.Compose.ui)
- implementation(Dependencies.Kotlin.stdlib)
+ implementation(libs.compose.material3)
+ implementation(libs.compose.ui)
+ implementation(libs.kotlin.stdlib)
}