ahmedre
02/14/2019, 1:54 PMfromPreset(presets.iosX64, 'ios') {
compilations.main.outputKinds('FRAMEWORK')
}
in order to get one framework, but I notice that:
1. I have to have code within this module in order for it to build a framework
2. the framework doesn’t include the dependencies
I’ve tried also adding the set of dependencies explicitly under iosMain
(with api
instead of implementation
and the implementation
counterparts in commonMain
), and tried adding a block with:
iosX64("ios").binaries {
framework {
export project(":one")
export project(':two')
export project(":three")
transitiveExport = true
}
}
but the framework i am getting only has the files from this specific module without the dependencies. if i explicitly reference a class from one of these dependent modules, the header file that is generated grows, but i want a way to include them without manually referencing something from each module.
may someone point me to the right direction on how to combine the klibs from these multiple modules into one single iOS framework?svyatoslav.scherbina
02/14/2019, 2:02 PMsvyatoslav.scherbina
02/14/2019, 2:04 PMexport
directives should actually help. Can you share you build.gradle
?svyatoslav.scherbina
02/14/2019, 2:05 PMapi
configuration and to export
directive at the same time?ahmedre
02/14/2019, 2:08 PMahmedre
02/14/2019, 2:58 PMsvyatoslav.scherbina
02/15/2019, 7:34 AMcompilations.main.outputKinds('FRAMEWORK')
This line defines the framework which doesn’t export its dependencies.
https://github.com/ahmedre/mppdemo/blob/cf764f0a21e527e85456adeace8c0828a74ff00b/everything/build.gradle#L47
iosX64("ios").binaries {
framework {
export project(":core")
export project(":data")
export project(":extra")
transitiveExport = true
}
}
This block defines the framework which does export its dependencies.
So your build script defines two frameworks, one of them doesn’t export dependencies.
Remove compilations.main.outputKinds('FRAMEWORK')
and try again.ahmedre
02/15/2019, 10:51 AM