Alexander Suslov
06/14/2019, 8:07 PMbinaries {
framework('CoreModule') {
export project(":CommonModule")
}
}
Now I'm trying to migrate to the new CocoaPods Gradle plugin but receive a Use of undeclared type '<class>'
error for classes from CommonModule. I've tried to apply cocoapods plugin to CommonModule and import both frameworks to swift files but it didn't help - I got 2 versions of each of CommonModule's classes that are incompartible between each other.
Is there any analogue for export(project(":exported"))
instruction in the new CocoaPods Gradle plugin?Alexander Suslov
06/14/2019, 8:50 PMtypealias <class> = Commonmodule<class>
instructions. But I some classes still can't be found in swift - they are object
and companion object
in a sealed class
.Marc Knaup
06/15/2019, 12:00 PMCoreModule
in Gradle instead of configuring the default created framework. The result is probably two frameworks: The one which CocoaPods links into the Xcode project and another one which has the export and isn't linked at all.
I do something along these lines:
listOf(DEBUG, RELEASE).forEach { buildType ->
getFramework(buildType).apply {
baseName = "CoreModule"
isStatic = false
export("com.github.fluidsonic:fluid-stdlib-$dependencySuffix:0.9.21")
export("com.github.fluidsonic:fluid-time-$dependencySuffix:0.9.10")
export("io.ktor:ktor-http-$dependencySuffix:1.2.1")
}
}
(dependencySuffix
in my case is the platform, e.g. ios64
)Alexander Suslov
06/20/2019, 9:23 AM