From db5094f259c5bc3aaa066d0e2d7c2fd232ae656c Mon Sep 17 00:00:00 2001 From: Kevin Galligan Date: Tue, 3 Dec 2024 11:02:37 -0500 Subject: [PATCH] CocoaPods Gradle Fix --- .github/workflows/KMMBridgePublish.yaml | 11 ++--------- allshared/build.gradle.kts | 6 ++++-- gradle.properties | 3 ++- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/KMMBridgePublish.yaml b/.github/workflows/KMMBridgePublish.yaml index bf531c8..38f9103 100644 --- a/.github/workflows/KMMBridgePublish.yaml +++ b/.github/workflows/KMMBridgePublish.yaml @@ -32,7 +32,7 @@ jobs: - uses: extractions/netrc@v1 with: - machine: api.github.com + machine: maven.pkg.github.com username: "cirunner" password: ${{ secrets.GITHUB_TOKEN }} @@ -62,11 +62,4 @@ jobs: - name: Build Main run: ./gradlew kmmBridgePublish -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-daemon --info --stacktrace env: - GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m" - - - uses: touchlab/ga-update-release-tag@v1 - id: update-release-tag - with: - commitMessage: "KMP CocoaPods package release for ${{ steps.versionPropertyValue.outputs.propVal }}" - tagMessage: "KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}" - tagVersion: ${{ steps.versionPropertyValue.outputs.propVal }} \ No newline at end of file + GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m" \ No newline at end of file diff --git a/allshared/build.gradle.kts b/allshared/build.gradle.kts index c12a0fb..335e91c 100644 --- a/allshared/build.gradle.kts +++ b/allshared/build.gradle.kts @@ -9,7 +9,7 @@ plugins { kotlin { listOf( -// iosX64(), + iosX64(), iosArm64(), iosSimulatorArm64() ) @@ -35,8 +35,10 @@ kotlin { } } +addGithubPackagesRepository() + kmmbridge { - gitHubReleaseArtifacts() + mavenPublishArtifacts() // Must be the SSH url cocoapods("git@github.com:touchlab/KMMBridgeCocoaTest-releases.git") } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index f96ec48..b55b61d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,5 +2,6 @@ kotlin.code.style=official android.useAndroidX=true org.gradle.jvmargs=-Xmx4g -LIBRARY_VERSION=0.2.0 +LIBRARY_VERSION=0.2.7 GROUP=co.touchlab.kmmbridgecocoapodsquickstart +org.gradle.configuration-cache=true \ No newline at end of file