Marc Reichelt
06/03/2026, 1:33 PMmoduleName and flattenPackage that can be set when exporting modules. Are those a must?
I've tried the following with Kotlin 2.4.0 - the Gradle Kotlin DSL compiles, but the exported umbrella module does not contain the exported types from the other modules:
swiftExport {
moduleName = "Shared"
flattenPackage = "com.example.sandbox"
// is this possible?
export(project(":featureA"))
export(project(":featureB"))
export(project(":featureC"))
// ...
}Marc Reichelt
06/03/2026, 1:35 PMsourceSets {
commonMain {
dependencies {
api(project(":featureA"))
api(project(":featureB"))
api(project(":featureC"))Artem Olkov
06/03/2026, 4:26 PMThe official docs mention aNo, there is no required fields for Swift Export. One can even omit theandmoduleNamethat can be set when exporting modules. Are those a must?flattenPackage
swiftExport block entirely - all the names for modules would be calculated from the maven coordinates of a project(or from local name).
I've tried the following with Kotlin 2.4.0 - the Gradle Kotlin DSL compiles, but the exported umbrella module does not contain the exported types from the other modulesI assume that the problem is that you are looking for the declarations under
exported umbrella module ?
If you take a look at our sample with the setup you desire - you can see that with swift export one has to import each of those modules separately. Swift Export keeps the original module separation. IIRC, :featureC would have FeatureC as a result of automatic conversion.Marc Reichelt
06/03/2026, 4:41 PMMarc Reichelt
06/03/2026, 4:43 PMGuilherme Delgado
06/03/2026, 7:18 PM