Stefan Oltmann
03/17/2022, 9:49 AMcompileKotlinMetadata
?
I set org.gradle.parallel=true
in settings and even call it with --parallel, but this tasks takes 3 minutes for me - even on a beefy M1 Pro
(8 performance cores) it tooks as long as on an M1.
So this tasks does not benefit from more cores...
What can I do to cut down compiling time here?christophsturm
03/17/2022, 10:00 AMStefan Oltmann
03/17/2022, 10:03 AMStefan Oltmann
03/17/2022, 10:16 AMStefan Oltmann
03/17/2022, 10:20 AMStefan Oltmann
03/17/2022, 10:21 AMGrégory Lureau
03/17/2022, 10:26 AMStefan Oltmann
03/17/2022, 10:40 AMGrégory Lureau
03/17/2022, 11:02 AMval xcf = XCFramework("MyLib")
ios {
binaries {
framework("MyLib") {
isStatic = true
projectsToExport().forEach { export(it) }
xcf.add(this)
and
fun projectsToExport() =
rootProject.allprojects
.filter {
it.childProjects.isEmpty() &&
<your export rules> &&
it != project
}
Grégory Lureau
03/17/2022, 11:04 AMGrégory Lureau
03/17/2022, 11:05 AMexport(..)
the XCFramework will contain classes transitively used by the "top-level module" but renamed with the module name. Adding export(..)
ensure all classes of the package will be provided, and without the name trick.Stefan Oltmann
03/17/2022, 11:23 AM