Skip to content

Commit

Permalink
attempt to fix android instrumented tests... not working
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Nov 1, 2023
1 parent 95ded84 commit 1efd2d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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" }
11 changes: 8 additions & 3 deletions libphonenumber/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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 {
Expand Down

0 comments on commit 1efd2d0

Please sign in to comment.