KamilH
10/18/2021, 12:49 PM- data - has pod dependency on any library, eg. AFNetworking and is using this
- shared - has dependency on data module and uses its code
- iosApp - has dependency on shared module and uses its code
I’m trying to connect the dots, but when I’m trying to build an app I’m getting following error:
> Task :data:cinteropAFNetworkingIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/2q/gjhd6ng16j51tnmw772w02k40000gp/T/10252343052379226466.m:1:9: fatal error: module 'AFNetworking' not found
shared
module I simply do:
val commonMain by getting {
dependencies {
api(project(":data"))
}
}
data
and shared
modules like that:
pod("AFNetworking") {
version = "~> 4.0.0"
}
solves a problem. It seems like a workaround, but I haven’t found a better solution so far, so it’s good enough for meIgor Maric
10/19/2021, 2:31 PM