Giuliopime
10/21/2023, 5:53 PMframeworkName.set("name...")
setting?
'cause with this setup
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
isStatic = true
}
}
// Rest of the file...
kmmbridge {
frameworkName.set("ZenBreakCoreKit")
spm()
mavenPublishArtifacts()
}
I get Only one framework name currently allowed. Found ZenBreakCoreKit and shared-core
and the docs don't mention anything about this
Additionally, previously I was setting the baseName inside the framework block, and I was getting a wrong name in the github packages, like shared-core-kmmbridge with unspecified versionunspecified
version in github packages, @kpgalligan can you help with that, it's quite weird 'cause I retried like 10 times with different configs and can't get it to workkpgalligan
10/24/2023, 1:38 PMversion
to be set.Giuliopime
10/24/2023, 1:43 PMversion
are you referring to?kpgalligan
10/24/2023, 2:00 PMversion
property. KMMBridge uses that. I was looking through the docs to find where that's clearly explained, and it's not, so we need to update that. The docs are mostly around using the tutorial, then just "docs". Anyway, version
needs to be set on Gradle https://github.com/touchlab/KMMBridgeSKIETemplate/blob/main/build.gradle.kts#L28, then the docs that talk about it are here https://kmmbridge.touchlab.co/docs/general/CONFIGURATION_OVERVIEW#versionmanager, but they're not clear about version, so we'll need to update that.version
. To try it, set something like:
version = '0.1.2'
and publish. You should see 0.1.2
in your repoGiuliopime
10/24/2023, 2:10 PMkpgalligan
10/24/2023, 2:11 PMGiuliopime
10/24/2023, 2:11 PMkpgalligan
10/24/2023, 2:13 PMGiuliopime
10/24/2023, 2:13 PMkpgalligan
10/24/2023, 2:16 PM1.2
as your prefix and 1.2.12
(for example) as the dev/published version for KMMBridge builds? If your app version is 1.2
I haven't tested that scenario, but SPM should prefer 1.2.12
over 1.2
, so I would assume that should be fine. If you can explain a bit better how your version releases would work, it might be easier to comment and test it out.Giuliopime
10/24/2023, 2:18 PMkpgalligan
10/24/2023, 2:39 PMGiuliopime
10/24/2023, 2:40 PMkpgalligan
10/24/2023, 2:40 PMGiuliopime
10/24/2023, 2:46 PM