kpgalligan
10/13/2019, 5:35 PMbinaries {
framework {
export project(':dependency')
// Export transitively.
transitiveExport = true
}
}
Config block from here: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.htmlalex009
10/14/2019, 1:05 AMkpgalligan
10/14/2019, 2:33 PMiosX64("ios"){
binaries.all {
freeCompilerArgs += "-Xg0"
if(it instanceof org.jetbrains.kotlin.gradle.plugin.mpp.Framework) {
isStatic = true
}
}
}
I just added the export
line to that.
iosX64("ios"){
binaries.all {
freeCompilerArgs += "-Xg0"
if(it instanceof org.jetbrains.kotlin.gradle.plugin.mpp.Framework) {
isStatic = true
export 'co.touchlab:crashkios:0.2.2'
}
}
}
kpgalligan
10/14/2019, 3:51 PMexport
doesn’t actually work. I don’t see those classes in the output. Adding transitiveExport = true
triggers an error that the exported dependency needs to be an api
dependency. Changing that works, but then I get a compiler error that is really weird. I’m working off of Kotlin Native master, though, so issues aren’t a huge surprise.alex009
10/14/2019, 3:52 PMcocoapods
gradle plugin by what reason? only for podspec generation or to connect pods into kotlin?kpgalligan
10/14/2019, 4:16 PMcocoapods
kpgalligan
10/14/2019, 4:18 PMFabio Bombardi
02/04/2020, 11:18 AM