ribesg
03/05/2019, 10:23 AMsourceSets {
val commonMain by getting {
dependencies {
api("mygroup:mympplib:0.0.1-SNAPSHOT")
}
}
val androidMain by getting {
dependencies {
}
}
for (iosTarget in iosTargets) {
getByName("${iosTarget.name}Main") {
dependencies {
}
}
}
}
Could not resolve mygroup:mylib:0.0.1-SNAPSHOT.
Could not resolve mygroup:mylib:0.0.1-SNAPSHOT.
But the configure is successful. When building, the references to the lib are not found, but IDEA sees everything and does’t give any errorRiccardo Montagnin
03/05/2019, 10:30 AMribesg
03/05/2019, 10:32 AMsourceSets {
val commonMain by getting {
dependencies {
api("mygroup:mylib:0.0.1-SNAPSHOT")
}
}
val androidMain by getting {
dependencies {
}
}
for (iosTarget in iosTargets) {
getByName("${iosTarget.name}Main") {
dependencies {
}
}
}
}
val Http = HttpClient {
install(JsonFeature) {
serializer = KotlinxSerializer(Json.nonstrict)
}
}
Http
, but it’s not found on compilation of Android Kotlin Debug sourcesobject HttpClientFactory {
fun create(): HttpClient = HttpClient {
install(JsonFeature) {
serializer = KotlinxSerializer(Json.nonstrict)
}
}
}
and using that instead worksOleg Yukhnevich
03/05/2019, 1:00 PMapi(project(":mympplib"))
ribesg
03/05/2019, 1:10 PM