Browse Source

move dependency exclusion to specific target

main 0.0.4
James Fenn 1 year ago
parent
commit
bdcda332e6
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      gitrest/build.gradle

+ 4
- 8
gitrest/build.gradle View File

@@ -20,13 +20,6 @@ android {

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'

configurations.all {
resolutionStrategy {
// excluding "-common" dependencies from Android to prevent duplicate META-INF bugs
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-serialization-runtime-common"
}
}
}

sourceSets {
@@ -117,7 +110,10 @@ kotlin {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
implementation "io.ktor:ktor-client-android:$ktor_version"
implementation "io.ktor:ktor-client-json-jvm:$ktor_version"
implementation "io.ktor:ktor-client-serialization-jvm:$ktor_version"
implementation ("io.ktor:ktor-client-serialization-jvm:$ktor_version") {
// excluding "-common" dependencies from Android to prevent duplicate META-INF bugs
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-serialization-runtime-common"
}
}
}
androidTest {


Loading…
Cancel
Save