Dmitry Stakhov
03/07/2024, 10:44 AMtransitiveExport = true
configuration in umbrella module cocoapods seting up, the KMP plugin generates the ObjC classes as they are named in Kotlin:
__attribute__((swift_name("Classname")))
but if I remove exporting transitives, the class name in ObjC is being changed and has a module prefix now:
__attribute__((swift_name("ModulenameClassname")))
Is there a way to avoid adding module prefix, while also removing transitive export?Michael Krussel
03/07/2024, 12:16 PMDmitry Stakhov
03/07/2024, 4:59 PMcocoapods {
block and there are few gradle modules that contain classes. The dependency for other modules is included using export like this:
cocoapods {
name = "UmberllaModule"
version = "1.0"
ios.deploymentTarget = "12.0"
framework {
baseName = "UmberllaModule"
isStatic = false
export(projects.module1)
export(projects.module2)
// transitiveExport = true
}
}
Michael Krussel
03/07/2024, 6:30 PMDmitry Stakhov
03/08/2024, 4:50 AMframework {
export(projects.module1)
// transitiveExport = true
}
module 1:
sourceSets {
commonMain.dependencies {
api(projects.module2)
}
}
The classes that have the domain prefix now are placed in module 2 (that is added in module 1)Michael Krussel
03/08/2024, 12:58 PM