Marc Reichelt
02/22/2022, 12:17 PMkotlin {
jvm()
ios()
sourceSets {
commonMain {
dependencies {
api(project(":ModuleOne"))
api(project(":ModuleTwo"))
}
}
}
// ...
}
But: the generated lib only has 261 bytes, it only contains the META-INF/MANIFEST.MF
and that’s it. No classes compiled. What should I be doing instead?Marc Reichelt
02/22/2022, 12:24 PMephemient
02/22/2022, 12:30 PMephemient
02/22/2022, 12:33 PMMarc Reichelt
02/22/2022, 12:34 PMephemient
02/22/2022, 12:34 PMMarc Reichelt
02/22/2022, 12:35 PMephemient
02/22/2022, 12:35 PMdependencies { api(project(":Module")) }
does not bundle it, it sets up the artifact's metadata to include the dependency by name+versionephemient
02/22/2022, 12:35 PMMarc Reichelt
02/22/2022, 12:36 PMMarc Reichelt
02/22/2022, 12:40 PMephemient
02/22/2022, 12:42 PMMarc Reichelt
02/22/2022, 12:45 PMMarc Reichelt
02/22/2022, 12:46 PMMarc Reichelt
02/22/2022, 12:47 PMephemient
02/22/2022, 12:56 PMephemient
02/22/2022, 12:58 PMade
02/22/2022, 12:58 PMephemient
02/22/2022, 12:59 PMade
02/22/2022, 1:02 PMMarc Reichelt
02/22/2022, 1:09 PMMarc Reichelt
02/22/2022, 1:09 PMMarc Reichelt
02/22/2022, 1:11 PMephemient
02/22/2022, 1:12 PMrepositories { ... }
and include it like any other binary dependencyMarc Reichelt
02/22/2022, 1:12 PMade
02/22/2022, 1:13 PMephemient
02/22/2022, 1:13 PMmavenLocal()
for local testingade
02/22/2022, 1:13 PMMarc Reichelt
02/22/2022, 1:14 PMFeatureA
, FeatureB
, FeatureC
into a single Multiplatform.xcframework
Marc Reichelt
02/22/2022, 1:14 PMFeatureA.jar
and FeatureB.jar
and FeatureC.jar
are actually good 👍ade
02/22/2022, 1:15 PMade
02/22/2022, 1:16 PMMarc Reichelt
02/22/2022, 1:16 PMephemient
02/22/2022, 1:16 PMade
02/22/2022, 1:19 PMMarc Reichelt
02/22/2022, 1:42 PMMarc Reichelt
02/22/2022, 5:11 PMXCFramework
with the blog post you mentioned @ade - but unfortunately it doesn’t compile anything for me - it doesn’t even create a single framework 😕Marc Reichelt
02/22/2022, 5:11 PMXCFramework
task?ade
02/22/2022, 5:40 PMMarc Reichelt
02/22/2022, 6:10 PMXCFramework
task that creates the framework, and we started creating the swift package ourselves (because in the end it’s just a plain Package.swift
file with the framework, zipped together). Still, using that plugin as well as using XCFramework
: we need to find out how to integrate the different feature modules FeatureA
, FeatureB
etc.