File tree Expand file tree Collapse file tree
ios-spm/KmmBridgeIntegrationTestSpm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// swift-tools-version:5.3
22import PackageDescription
33
4- 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 "
5- let remoteKotlinChecksum = " acbb331bf8632a461633dbc84c6d1210afe75d6eddebd1014dfc16fbbff6df0a "
6- let packageName = " shared "
4+ let packageName = " KmmBridgeIntegrationTestSPMManualCommit "
75
86let package = Package (
97 name: packageName,
@@ -19,8 +17,7 @@ let package = Package(
1917 targets: [
2018 . binaryTarget(
2119 name: packageName,
22- url: remoteKotlinUrl,
23- checksum: remoteKotlinChecksum
20+ path: " ./shared/build/XCFrameworks/debug/ \( packageName) .xcframework "
2421 )
2522 ,
2623 ]
Original file line number Diff line number Diff line change 66//
77
88import SwiftUI
9- import shared
9+ import KmmBridgeIntergrationTestSPMWithoutCommit
1010
1111@main
1212struct KmmBridgeIntegrationTestSpmApp : App {
Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.plugin.mpp.Framework
2+ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
3+
14plugins {
25 kotlin(" multiplatform" ) version " 1.7.20"
3- kotlin(" native.cocoapods" ) version " 1.7.20"
46 id(" com.android.library" ) version " 7.2.2"
5- id(" co.touchlab.faktory.kmmbridge" ) version " 999 "
7+ id(" co.touchlab.faktory.kmmbridge" ) version " 0.3.5 "
68 `maven- publish`
79}
810
@@ -17,11 +19,18 @@ repositories {
1719
1820kotlin {
1921 android()
20-
2122 iosX64()
2223 iosArm64()
2324 iosSimulatorArm64()
2425
26+ targets.withType<KotlinNativeTarget > {
27+ binaries {
28+ framework(" KmmBridgeIntegrationTestSPMManualCommit" ) {
29+ isStatic = true
30+ }
31+ }
32+ }
33+
2534 sourceSets {
2635 val commonMain by getting
2736 val commonTest by getting {
You can’t perform that action at this time.
0 commit comments