Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -19,8 +17,7 @@ let package = Package(
targets: [
.binaryTarget(
name: packageName,
url: remoteKotlinUrl,
checksum: remoteKotlinChecksum
path: "./shared/build/XCFrameworks/debug/\(packageName).xcframework"
)
,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import SwiftUI
import shared
import KmmBridgeIntergrationTestSPMWithoutCommit

@main
struct KmmBridgeIntegrationTestSpmApp: App {
Expand Down
15 changes: 12 additions & 3 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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`
}

Expand All @@ -17,11 +19,18 @@ repositories {

kotlin {
android()

iosX64()
iosArm64()
iosSimulatorArm64()

targets.withType<KotlinNativeTarget> {
binaries {
framework("KmmBridgeIntegrationTestSPMManualCommit") {
isStatic = true
}
}
}

sourceSets {
val commonMain by getting
val commonTest by getting {
Expand Down