diff --git a/Package.swift b/Package.swift index a1018bf..8837830 100644 --- a/Package.swift +++ b/Package.swift @@ -1,9 +1,7 @@ // swift-tools-version:5.3 import PackageDescription -let remoteKotlinUrl = "https://maven.pkg.github.com/touchlab/KmmBridgeIntegrationTest-SPMWithoutCommit/co/touchlab/kmmbridge/test/spmmanualcommit/shared-kmmbridge/1.5.1/shared-kmmbridge-1.5.1.zip" -let remoteKotlinChecksum = "acbb331bf8632a461633dbc84c6d1210afe75d6eddebd1014dfc16fbbff6df0a" -let packageName = "shared" +let packageName = "KmmBridgeIntegrationTestSPMManualCommit" let package = Package( name: packageName, @@ -19,8 +17,7 @@ let package = Package( targets: [ .binaryTarget( name: packageName, - url: remoteKotlinUrl, - checksum: remoteKotlinChecksum + path: "./shared/build/XCFrameworks/debug/\(packageName).xcframework" ) , ] diff --git a/ios-spm/KmmBridgeIntegrationTestSpm/KmmBridgeIntegrationTestSpmApp.swift b/ios-spm/KmmBridgeIntegrationTestSpm/KmmBridgeIntegrationTestSpmApp.swift index 7c1a578..aa527ee 100644 --- a/ios-spm/KmmBridgeIntegrationTestSpm/KmmBridgeIntegrationTestSpmApp.swift +++ b/ios-spm/KmmBridgeIntegrationTestSpm/KmmBridgeIntegrationTestSpmApp.swift @@ -6,7 +6,7 @@ // import SwiftUI -import shared +import KmmBridgeIntergrationTestSPMWithoutCommit @main struct KmmBridgeIntegrationTestSpmApp: App { diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 9fdc455..0fb7a44 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -1,8 +1,10 @@ +import org.jetbrains.kotlin.gradle.plugin.mpp.Framework +import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget + plugins { kotlin("multiplatform") version "1.7.20" - kotlin("native.cocoapods") version "1.7.20" id("com.android.library") version "7.2.2" - id("co.touchlab.faktory.kmmbridge") version "999" + id("co.touchlab.faktory.kmmbridge") version "0.3.5" `maven-publish` } @@ -17,11 +19,18 @@ repositories { kotlin { android() - iosX64() iosArm64() iosSimulatorArm64() + targets.withType { + binaries { + framework("KmmBridgeIntegrationTestSPMManualCommit") { + isStatic = true + } + } + } + sourceSets { val commonMain by getting val commonTest by getting {