Fix: explicitly set kotlin module name.

Closes https://github.com/zcash/zcash-android-wallet-sdk/issues/222
This commit is contained in:
Kevin Gorham 2021-04-26 17:36:15 -04:00
parent 49acf6476a
commit 26a84efdd6
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ android {
jvmTarget = "1.8"
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.FlowPreview"
// Tricky: fix: By default, the kotlin_module name will not include the version. Instead it has a colon, which breaks compilation on Windows. This is one way to set it explicitly to the proper value. See https://github.com/zcash/zcash-android-wallet-sdk/issues/222 for more info.
freeCompilerArgs += ["-module-name", "${config.publish.artifactId}-${config.publish.versionName}_${config.publish.target}"]
}
packagingOptions {