Hi all, I use KMMBridge to consume my kotlin modul...
# touchlab-tools
a
Hi all, I use KMMBridge to consume my kotlin modules in ios code , I am currently the only developer in my team, so I don't have any pipeline setup , I. use
/.gradlew spmDevBuild
to make the framework and then archive my ios project directly through xcode , I was just wondering is there any way here to make the release version of the framework as AFAIK, this produces a debug version of the Kotlin code.
k
spmDevBuild
is, as the name would imply, for dev. You should be able to override the build type and set release in KMMBridge config, but I can't recall ever needing that. Published builds were previously release, but since we added the ability to debug from binaries, that was changed. I don't recall off-hand if you can specify release with gradle params on the command line, but that would seem like an obvious feature (so I feel like it's there, but I haven't looked in quite a while, TBH).
Ah, yes. You can. That seemed like something I remember was added: https://github.com/touchlab/KMMBridgeSPMQuickStart/blob/main/.github/workflows/Base-Publish.yml#L61
-PNATIVE_BUILD_TYPE=RELEASE