Browse Source

tentative solution for #5 ???

main
James Fenn 1 year ago
parent
commit
48b12f99c4
3 changed files with 8 additions and 5 deletions
  1. +1
    -1
      README.md
  2. +0
    -4
      example-android/build.gradle
  3. +7
    -0
      gitrest/build.gradle

+ 1
- 1
README.md View File

@@ -48,7 +48,7 @@ implementation "dev.horrific.code.james.git-rest-wrapper:gitrest:$gitrest_versio

#### Note: fixing duplicate META-INF files

Kotlin Multiplatform has a weird issue with dependency management that I haven't quite worked out. Hopefully there'll be a better solution to this in the future, but for now it's enough to just add the following to your Android modules:
Kotlin Multiplatform has a weird issue with dependency management that I haven't quite worked out; (#5)[https://code.horrific.dev/james/git-rest-wrapper/issues/5] documents some of my encounters with it. Hopefully you won't encounter this problem at all, but if you do, it should be enough to just add the following to your Android modules:

```groovy
android {


+ 0
- 4
example-android/build.gradle View File

@@ -21,10 +21,6 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

packagingOptions {
merge 'META-INF/*.kotlin_module'
}
}

repositories {


+ 7
- 0
gitrest/build.gradle View File

@@ -20,6 +20,13 @@ 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 {


Loading…
Cancel
Save