diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index bc7e4363..9c76f32d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -25,6 +25,8 @@ androidx-activity = "1.8.0" androidx-lifecycle = "2.6.2" androidx-startup = "1.1.1" androidx-appcompat = "1.6.1" +androidx-runner = "1.5.2" + [libraries] @@ -36,5 +38,6 @@ androidx-activity-compose = { module = "androidx.activity:activity-compose", ver androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "androidx-lifecycle" } androidx-startup-runtime = { module = "androidx.startup:startup-runtime", version.ref = "androidx-startup" } androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" } +androidx-runner = { module = "androidx.test:runner", version.ref = "androidx-runner" } co-touchlab-kermit = { module = "co.touchlab:kermit", version.ref = "kermit" } diff --git a/libphonenumber/build.gradle.kts b/libphonenumber/build.gradle.kts index 626c396d..44d49884 100644 --- a/libphonenumber/build.gradle.kts +++ b/libphonenumber/build.gradle.kts @@ -93,9 +93,13 @@ kotlin { val jsMain by getting { dependsOn(nonJvmMain) } - val androidUnitTest by getting { + val androidInstrumentedTest by getting { dependsOn(jvmCommonTest) + dependencies { + implementation(libs.androidx.runner) + } } + val androidUnitTest by getting {} val nativeMain by creating { dependsOn(nonJvmMain) } @@ -115,10 +119,11 @@ kotlin { android { namespace = "io.michaelrocks.libphonenumber.kotlin" - compileSdk = 33 + compileSdk = 34 defaultConfig { - minSdk = 21 + minSdk = 23 + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } buildTypes {