Skip to content

Commit

Permalink
added: kmmbridge support
Browse files Browse the repository at this point in the history
 - Publish KMMBridge
  • Loading branch information
hanrw committed Feb 2, 2024
1 parent c1b6361 commit 10983e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
12 changes: 9 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ dependencies {
kover(project(":shared"))
}

val autoVersion = project.property(
if (project.hasProperty("AUTO_VERSION")) {
"AUTO_VERSION"
} else {
"LIBRARY_VERSION"
}
) as String

subprojects {
val GROUP: String by project
val LIBRARY_VERSION: String by project

group = GROUP
version = LIBRARY_VERSION
version = autoVersion
}

koverReport {
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ kotlin.mpp.enableCInteropCommonization=true

#Development
development=true
# `ENABLE_PUBLISHING` - Gradle parameter. For local dev, by default we avoid certain operations that are only necessary if you are publishing. Pass in
# Package.swift will use binaryTarget path or binaryTarget url
ENABLE_PUBLISHING=true

LIBRARY_VERSION=0.1
GROUP=com.snacks.lemonsqueezy
11 changes: 6 additions & 5 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ kotlin {
jvm()
listOf(
macosArm64(),
iosX64(),
iosArm64(),
iosSimulatorArm64()
// iosX64(),
// iosArm64(),
// iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "Shared"
Expand Down Expand Up @@ -51,6 +51,9 @@ multiplatformSwiftPackage {
}
}


addGithubPackagesRepository() // <- Add the GitHub Packages repo

kmmbridge {
/**
* reference: https://kmmbridge.touchlab.co/docs/artifacts/MAVEN_REPO_ARTIFACTS#github-packages
Expand All @@ -69,8 +72,6 @@ kmmbridge {
// }
}

addGithubPackagesRepository() // <- Add the GitHub Packages repo

tasks {
named<Test>("jvmTest") {
useJUnitPlatform()
Expand Down

0 comments on commit 10983e7

Please sign in to comment.