How does producing a framework from modules with a...
# multiplatform
m
How does producing a framework from modules with api dependencies work ? I have this:
Copy code
//mpp-module-1/build.gradle
kotlin {
    macosX64 {
        binaries {
            framework()
        }
    }
    sourceSets {
        val commonMain by getting {
            dependencies {
                api(project(":mpp-module-2"))
            }
        }
    }
}
And it looks like the classes from
mpp-module-2
are not exported in the .framework ? Is that expected ?
Some of them are, not all. Looks like the framework only exposes the classes that are exposed by the
mpp-module-1
api
y
try
export
Copy code
binaries {
  framework() {
    export(project(":mpp-module-2"))
  }
}
m
That looks promising 🙂
My build time increased 50% but it's working like a charm ! Thanks !
👍 1