Shan
01/12/2020, 8:22 AM//project: android-local
//android config omitted
dependencies {
api(project(":android-remote"))
}
and then I have a mpp (in the same repo, different module)
//project: android-remote
kotlin {
jvm()
sourceSets {
val commonMain by getting {
dependencies {
implementation("core-lib") //an example
}
}
val jvmMain by getting {
//depends on commonMain by default
}
}
}
using api(project(":android-remote"))
does not add anything from android-remote
to the dependencies of android-local
. Is there some way I need to specify the target it since android-remote
is a MPP? Or is this not possible?Ugi
01/12/2020, 1:11 PMenableFeaturePreview("GRADLE_METADATA")
In your project settings.gradle
Shan
01/13/2020, 9:22 PMUgi
01/14/2020, 11:25 PMimplementation("com.ionspin.kotlin:bignum:0.1.5")
with implementation(project(":bignum"))
. Maybe you'll spot some differences there that could help you.sikri
01/19/2020, 8:45 AMShan
01/19/2020, 8:51 AMsikri
01/19/2020, 8:54 AMplugins {
id("com.android.application")
kotlin("multiplatform")
kotlin("android.extensions")
kotlin("kapt")
id("kotlinx-serialization")
}
after android { ... }
put
kotlin {
android()
}
The only problem is with kapt
, as for now I have to write "kapt"(someDep)
instead of kapt(someDep)
Shan
01/19/2020, 10:39 PMjvmDefault
configuration in order to get the project sources to point to the correct project instead of the sources jar. I added the multiplatform plugin to my android library and used the android()
setup as specified above, but used jvmDefault
as the configuration for the project as I didn't want a specific android target on my android-remote
mpp. Everything works great now!