How do I configure KMMBridge for multiple modules ...
# touchlab-tools
l
How do I configure KMMBridge for multiple modules in a single repo? Running
spmDevBuild
on the project updates
Package.swift
to only the latest module. For example for a project structure as,
Copy code
- root
  - domain
    - build.gradle.kts // kmmBridge { .. } implemented
  - strings
    - build.gradle.kts // kmmBridge { .. } implemented
  - util
    - build.gradle.kts // kmmBridge { .. } implemented
When I run
./gradlew spmDevBuild
the
Package.swift
is always
Copy code
// swift-tools-version:5.3
import PackageDescription

let packageName = "util"

let package = Package(
    name: packageName,
    platforms: [
        .iOS(.v13)
    ],
    products: [
        .library(
            name: packageName,
            targets: [packageName]
        ),
    ],
    targets: [
        .binaryTarget(
            name: packageName,
            path: "./core-util/build/XCFrameworks/debug/\(packageName).xcframework"
        )
        ,
    ]
)
I would have to manually update the Package.swift finally in CI ? 🤔
r
We haven't done a ton of testing around using multiple frameworks, so there's a decent chance there's bugs in the local dev flow. Feel free to log an issue on Github.
k
a
@lilypuchi Where you able to figure out a way to do this?