Skip to content

Commit

Permalink
Merge pull request #1234 from joreilly/kmmbridge
Browse files Browse the repository at this point in the history
update kmmbridge
  • Loading branch information
joreilly authored Apr 4, 2024
2 parents ac311fa + ed8a6c9 commit a003a6a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 33 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/publish-kmmbridge.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
name: Publish KMMBridge

name: iOS Publish
on:
workflow_dispatch:

env:
MAVEN_USERNAME: ${{ secrets.REPSY_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.REPSY_PASSWORD }}

# push:
# branches:
# - "main"
jobs:
kmm-publish:
runs-on: macos-12
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17

- name: Setup Gradle
uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true

- name: Build
run:
./gradlew -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} kmmBridgePublish

call-kmmbridge-publish:
permissions:
contents: write
packages: write
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/[email protected]
with:
jvmVersion: 17
versionBaseProperty: LIBRARY_VERSION
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies {
implementation(libs.plugin.kotlin.serialization)
implementation(libs.plugin.kotlin.spring)
implementation(libs.plugin.spring.boot)
implementation(libs.plugin.kmmbridge)
implementation(libs.plugin.google.services)
implementation(libs.plugin.firebase.crashlytics) {
// Crashlytics depends on datastore v1.0 but we're using v1.1
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true

kotlin.experimental.tryK2=true
kotlin.experimental.tryK2=true

# KMMBridge
LIBRARY_VERSION=0.9
GROUP=dev.johnoreilly.confetti
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ io-coil-kt = "2.6.0"
io-coil3-kt = "3.0.0-alpha06"
kmp-nativecoroutines = "1.0.0-ALPHA-25"
kmm-viewmodel = "1.0.0-ALPHA-20"
kmmbridge = "0.5.2"
koin-android = "3.5.3"
koin-android-compose = "3.5.3"
koin-compose-multiplatform = "1.1.2"
Expand Down Expand Up @@ -166,7 +167,6 @@ plugin-android-application = "com.android.tools.build:gradle:8.2.2"
plugin-apollo = { module = "com.apollographql.apollo3:apollo-gradle-plugin", version.ref = "apollo" }
plugin-firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-gradle", version = "2.9.9" }
plugin-google-services = "com.google.gms:google-services:4.4.1"
plugin-kmmbridge = "co.touchlab.faktory:kmmbridge:0.3.7"
plugin-kmp-nativecoroutines = { module = "com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin", version.ref = "kmp-nativecoroutines" }
plugin-kotlin-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
plugin-kotlin-spring = { module = "org.jetbrains.kotlin:kotlin-allopen", version.ref = "kotlin" }
Expand Down Expand Up @@ -209,4 +209,5 @@ multiplatform-settings = ["multiplatform-settings", "multiplatform-settings-coro
apollo = ["apollo-normalized-cache-in-memory", "apollo-normalized-cache-sqlite", "apollo-adapters"]

[plugins]
buildkonfig = { id = "com.codingfeline.buildkonfig", version.ref = "buildkonfig" }
buildkonfig = { id = "com.codingfeline.buildkonfig", version.ref = "buildkonfig" }
kmmbridge = { id = "co.touchlab.kmmbridge", version.ref = "kmmbridge" }
7 changes: 4 additions & 3 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ plugins {
id("com.apollographql.apollo3")
id("org.jetbrains.compose")
id("com.google.devtools.ksp")
id("co.touchlab.faktory.kmmbridge")
id("com.squareup.wire")
id("maven-publish")
id("kotlinx-serialization")
id("io.github.luca992.multiplatform-swiftpackage") version "2.2.1"
alias(libs.plugins.kmmbridge)
alias(libs.plugins.buildkonfig)
}

Expand Down Expand Up @@ -218,12 +218,13 @@ dependencies {
coreLibraryDesugaring(libs.desugar)
}

version = "0.9"
kmmbridge {
frameworkName.set("ConfettiKit")
addGithubPackagesRepository()
mavenPublishArtifacts()
githubReleaseVersions()
spm()
versionPrefix.set("0.8")
timestampVersions()
}

kotlin.sourceSets.all {
Expand Down

0 comments on commit a003a6a

Please sign in to comment.