Eric Williams
10/28/2022, 1:15 PMEric Williams
10/28/2022, 1:19 PMkpgalligan
10/28/2022, 1:20 PM~/.netrc
configkpgalligan
10/28/2022, 1:21 PMkpgalligan
10/28/2022, 1:21 PM~/.netrc
kpgalligan
10/28/2022, 1:22 PMmachine <http://maven.pkg.github.com|maven.pkg.github.com>
kpgalligan
10/28/2022, 1:23 PMmachine <http://api.github.com|api.github.com>
Eric Williams
10/28/2022, 1:23 PMEric Williams
10/28/2022, 1:26 PM~/.netrc
:
machine <http://maven.pkg.github.com|maven.pkg.github.com>
login ewilliamsfleetio
password XXXXXXX
Curious, the file Xcode is trying to fetch is <https://api.github.com/repos/ewilliamsfleetio/richtexteditor/releases/assets/82396203.zip>
kpgalligan
10/28/2022, 1:27 PMkpgalligan
10/28/2022, 1:27 PMkpgalligan
10/28/2022, 1:28 PM<https://api.github.com>
is the key there. The Package file is maybe old, or (more likely) our docs arenât all up to the latest (sorry)Eric Williams
10/28/2022, 1:29 PMkmmbridge {
githubReleaseArtifacts()
githubReleaseVersions()
addGithubPackagesRepository() <-- I added this (I think?)
versionPrefix.set("0.1")
spm()
}
kpgalligan
10/28/2022, 1:30 PMkmmbridge {
mavenPublishArtifacts()
githubReleaseVersions()
versionPrefix.set("0.1")
spm()
}
addGithubPackagesRepository()
Eric Williams
10/28/2022, 1:31 PMkpgalligan
10/28/2022, 1:32 PMmavenPublishArtifacts()
is the ânewâ thing, and the repo needs to go at the root. Also, I just noticed we didnât add the followingâŚ
plugins {
kotlin("multiplatform")
//etc
id("co.touchlab.faktory.kmmbridge") version "0.3.1"
`maven-publish`
}
kpgalligan
10/28/2022, 1:33 PMmaven-publish
Eric Williams
10/28/2022, 1:35 PM@Suppress("DSL_SCOPE_VIOLATION")
plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
id("co.touchlab.faktory.kmmbridge")
`maven-publish`
}
kotlin {
ios()
// Note: iosSimulatorArm64 target requires that all dependencies have M1 support
iosSimulatorArm64()
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":breeds"))
api(project(":analytics"))
}
}
val commonTest by getting {
dependencies {
implementation(libs.bundles.shared.commonTest)
}
}
val iosMain by getting
val iosTest by getting
val iosSimulatorArm64Main by getting {
dependsOn(iosMain)
}
val iosSimulatorArm64Test by getting {
dependsOn(iosTest)
}
}
cocoapods {
summary = "KMMBridgeKickStart sample"
homepage = "<https://www.touchlab.co>"
ios.deploymentTarget = "13.5"
extraSpecAttributes["libraries"] = "'c++', 'sqlite3'"
framework {
export(project(":analytics"))
isStatic = true
}
}
}
addGithubPackagesRepository()
kmmbridge {
mavenPublishArtifacts()
githubReleaseVersions()
spm()
// cocoapods("git@github.com:touchlab/PodSpecs.git")
}
Eric Williams
10/28/2022, 1:35 PMkpgalligan
10/28/2022, 1:35 PMkpgalligan
10/28/2022, 1:36 PMEric Williams
10/28/2022, 1:37 PMkpgalligan
10/28/2022, 1:38 PMkpgalligan
10/28/2022, 1:38 PMEric Williams
10/28/2022, 1:38 PM// swift-tools-version:5.3
import PackageDescription
let remoteKotlinUrl = "<https://maven.pkg.github.com/touchlab/KMMBridgeKickStart/co/touchlab/kmmbridgekickstart/allshared-kmmbridge/0.13.0/allshared-kmmbridge-0.13.0.zip>"
let remoteKotlinChecksum = "fe57822fa8ae5806e791558b1a632c3cd3af6f185d8e866ff4e132f40f68a6d4"
let packageName = "allshared"
let package = Package(
name: packageName,
platforms: [
.iOS(.v13)
],
products: [
.library(
name: packageName,
targets: [packageName]
),
],
targets: [
.binaryTarget(
name: packageName,
url: remoteKotlinUrl,
checksum: remoteKotlinChecksum
)
,
]
)
Eric Williams
10/28/2022, 1:38 PMkpgalligan
10/28/2022, 1:38 PMEric Williams
10/28/2022, 1:41 PMEric Williams
10/28/2022, 1:41 PMkpgalligan
10/28/2022, 1:42 PMkpgalligan
10/28/2022, 1:46 PMEric Williams
10/28/2022, 1:49 PMkpgalligan
10/28/2022, 1:50 PMEric Williams
10/28/2022, 1:51 PMkpgalligan
10/28/2022, 1:53 PMkpgalligan
10/28/2022, 1:54 PMEric Williams
10/28/2022, 1:54 PMEric Williams
10/28/2022, 1:54 PMkpgalligan
10/28/2022, 1:54 PMEric Williams
10/28/2022, 1:54 PMkpgalligan
10/28/2022, 1:55 PMEric Williams
10/28/2022, 1:55 PMkpgalligan
10/28/2022, 1:56 PMEric Williams
10/28/2022, 1:56 PMEric Williams
10/28/2022, 1:56 PMkpgalligan
10/28/2022, 1:56 PM~/.netrc
config, but one thing at a timeEric Williams
10/28/2022, 1:57 PMkpgalligan
10/28/2022, 1:57 PMNot like thereâs anything in it other than your code hahahaYes, much easier to debug. Iâve been staring at this for weeks
Eric Williams
10/28/2022, 2:10 PMEric Williams
10/28/2022, 2:17 PMEric Williams
10/28/2022, 4:05 PMkpgalligan
10/28/2022, 4:06 PMEric Williams
11/15/2022, 11:52 PMkpgalligan
11/15/2022, 11:53 PMkevinskrei
12/06/2022, 10:01 PM~/.netrc
here: https://touchlab.github.io/KMMBridge/artifacts/GITHUB_RELEASE_ARTIFACTS
When I switched to machine <http://maven.pkg.github.com|maven.pkg.github.com>
it worked like a charm. Thank you for this tool. Its very slick!