John O'Reilly
04/04/2024, 6:28 PMkmmbridge {
frameworkName.set("ConfettiKit")
mavenPublishArtifacts()
//githubReleaseVersions()
spm()
//versionPrefix.set("0.8")
}John O'Reilly
04/04/2024, 6:35 PMJohn O'Reilly
04/04/2024, 6:36 PMAn explicit setting of versionPrefix in the plugin config should be removed. By default, version is read from Gradle, and that is the version published. There is no concept of versionPrefix in the current build.John O'Reilly
04/04/2024, 6:36 PMversion is read from GradleJohn O'Reilly
04/04/2024, 6:44 PMversion is defined in https://kmmbridge.touchlab.co/docs/general/CONFIGURATION_OVERVIEWJohn O'Reilly
04/04/2024, 6:46 PMtimestampVersions if you want KMMBridge to "increment" version each time?John O'Reilly
04/04/2024, 8:34 PM- In plugin 'org.gradle.api.publish.maven.plugins.MavenPublishPlugin$Inject' type 'org.gradle.api.publish.maven.tasks.PublishToMavenRepository' property 'credentials.username' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'credentials.username'.
2. Mark property 'credentials.username' as optional.John O'Reilly
04/05/2024, 10:56 AMkpgalligan
04/05/2024, 3:09 PMkpgalligan
04/05/2024, 3:09 PMJohn O'Reilly
04/05/2024, 3:09 PMJohn O'Reilly
04/05/2024, 3:09 PMkpgalligan
04/05/2024, 3:10 PMkpgalligan
04/05/2024, 3:12 PMJohn O'Reilly
04/05/2024, 3:12 PMJohn O'Reilly
04/05/2024, 3:21 PMmavenPublishArtifacts be necessary....if just publishing swift package?kpgalligan
04/05/2024, 3:29 PMYou must apply an artifact manager! Call `artifactManager.set(...)` or a configuration function like `mavenPublishArtifacts()` in your `kmmbridge` block.John O'Reilly
04/05/2024, 3:38 PMkpgalligan
04/05/2024, 3:39 PMkpgalligan
04/05/2024, 3:39 PMremoteKotlinUrl in the diff on the right.John O'Reilly
04/05/2024, 3:40 PMkpgalligan
04/05/2024, 3:40 PMkpgalligan
04/05/2024, 3:40 PMkpgalligan
04/05/2024, 3:42 PMkpgalligan
04/05/2024, 3:43 PMJohn O'Reilly
04/05/2024, 3:46 PMmavenPublishArtifacts but was getting that property 'credentials.username' doesn't have a configured value. error....was that related to something else?kpgalligan
04/05/2024, 3:47 PMaddGithubPackagesRepository()kpgalligan
04/05/2024, 3:47 PMJohn O'Reilly
04/05/2024, 3:48 PMJohn O'Reilly
04/05/2024, 3:49 PMkmmbridge block?kpgalligan
04/05/2024, 3:49 PMkpgalligan
04/05/2024, 3:50 PMJohn O'Reilly
04/05/2024, 3:50 PMkpgalligan
04/05/2024, 3:50 PMkpgalligan
04/05/2024, 3:50 PMJohn O'Reilly
04/05/2024, 3:56 PMJohn O'Reilly
04/05/2024, 3:58 PMkpgalligan
04/05/2024, 4:03 PMJohn O'Reilly
04/05/2024, 4:04 PMkpgalligan
04/05/2024, 4:04 PMPackage.xmi file is still there in the commit and tag, but not in main or any other (visible) branch.kpgalligan
04/05/2024, 4:05 PMPackage.xml file and can't have the whole thing auto-gen, then it's more complicated, but I think doable.kpgalligan
04/05/2024, 4:06 PMJohn O'Reilly
04/05/2024, 4:07 PMkpgalligan
04/05/2024, 4:07 PMI hear you had an earthquake in NY!?Yeah, I was on a call with one person in Europe, and another also in NY, and both NY folks were like "oh shit!" I've felt an earthquake here before, but not like that. Still, for a CA resident, it would've been a joke.
John O'Reilly
04/05/2024, 4:07 PMJohn O'Reilly
04/05/2024, 4:08 PMkpgalligan
04/05/2024, 4:10 PMparticularly for iOS client with idea that as we know an iOS dev would be happier to just pull in a swift package to use"know" is a strong word. They can't debug anything, or (maybe) put in some log statements to see what's happening. I suspect an iOS dev interested enough in using a KMP-based core for a conf app might not entirely agree once they start trying to actually use it.
kpgalligan
04/05/2024, 4:10 PMkpgalligan
04/05/2024, 4:11 PMJohn O'Reilly
04/05/2024, 4:11 PMJohn O'Reilly
04/05/2024, 4:11 PMkpgalligan
04/05/2024, 4:12 PMJohn O'Reilly
04/05/2024, 4:13 PMkpgalligan
04/05/2024, 4:13 PMJohn O'Reilly
04/05/2024, 4:14 PMkpgalligan
04/05/2024, 4:15 PMJohn O'Reilly
04/05/2024, 4:15 PMkpgalligan
04/05/2024, 4:19 PMJohn O'Reilly
04/05/2024, 4:27 PMJohn O'Reilly
04/05/2024, 4:31 PMJohn O'Reilly
04/05/2024, 4:31 PMkpgalligan
04/05/2024, 5:30 PMJohn O'Reilly
04/05/2024, 5:31 PMkpgalligan
04/05/2024, 5:52 PMkpgalligan
04/05/2024, 5:52 PMJohn O'Reilly
04/05/2024, 6:00 PMJohn O'Reilly
04/05/2024, 6:02 PMJohn O'Reilly
04/05/2024, 9:45 PM> Failed to publish publication 'KMMBridgeFramework' to repository 'GitHubPackages'
> Could not PUT '<https://maven.pkg.github.com/joreilly/Confetti/Confetti/shared-kmmbridge/1.0/shared-kmmbridge-1.0.zip>'. Received status code 409 from server: ConflictJohn O'Reilly
04/05/2024, 9:46 PMJohn O'Reilly
04/05/2024, 9:47 PMThe 409 conflict is because you are publishing the same file name to the same path twice.John O'Reilly
04/05/2024, 9:52 PMJohn O'Reilly
04/05/2024, 9:55 PMpublishing section in build file as seems defaults should work in that case....kpgalligan
04/05/2024, 10:27 PMkpgalligan
04/05/2024, 10:28 PM1.0 https://github.com/joreilly/Confetti/packages/2115001. They should start incrementing: 0.9.0, 0.9.1, 0.9.2, etc. From LIBRARY_VERSION=0.9John O'Reilly
04/05/2024, 11:06 PMkpgalligan
04/05/2024, 11:59 PMJohn O'Reilly
04/06/2024, 12:01 AMkpgalligan
04/06/2024, 12:16 AM<https://maven.pkg.github.com/joreilly/Confetti/Confetti/shared-kmmbridge/1.0/shared-kmmbridge-1.0.zip>kpgalligan
04/06/2024, 12:16 AMkpgalligan
04/06/2024, 12:16 AMJohn O'Reilly
04/06/2024, 7:24 AM> Failed to publish publication 'KMMBridgeFramework' to repository 'maven'
> Could not PUT '<https://repo.repsy.io/mvn/joreilly/confetti/Confetti/shared-kmmbridge/1.0/shared-kmmbridge-1.0.zip>'. Received status code 413 from server: Request Entity Too LargeJohn O'Reilly
04/06/2024, 8:02 AMJohn O'Reilly
04/06/2024, 9:40 AMJohn O'Reilly
04/06/2024, 9:49 AMPackage.swift but maybe this is one of changes from 0.3.x version I had before....Stylianos Gakis
04/06/2024, 9:52 AMJohn O'Reilly
04/06/2024, 9:55 AMJohn O'Reilly
04/06/2024, 9:59 AMJohn O'Reilly
04/06/2024, 9:59 AMJohn O'Reilly
04/06/2024, 10:12 AM// swift-tools-version:5.3
import PackageDescription
// BEGIN KMMBRIDGE VARIABLES BLOCK (do not edit)
let remoteKotlinUrl = "<https://maven.pkg.github.com/joreilly/Confetti/Confetti/shared-kmmbridge/0.9.7/shared-kmmbridge-0.9.7.zip>"
let remoteKotlinChecksum = "ed0b6e9ae1a0018e41ead73d0036bd9f3e90adc34efd085a47a391c2f31d32f5"
let packageName = "ConfettiKit"
// END KMMBRIDGE BLOCK
let package = Package(
name: packageName,
platforms: [
.iOS(.v13)
],
products: [
.library(
name: packageName,
targets: [packageName]
),
],
targets: [
.binaryTarget(
name: packageName,
url: remoteKotlinUrl,
checksum: remoteKotlinChecksum
)
,
]
)John O'Reilly
04/06/2024, 10:54 AMkpgalligan
04/06/2024, 2:21 PM~/.netrc file config? https://touchlab.co/kmmbridge-quick-start#xcodekpgalligan
04/06/2024, 2:22 PMJohn O'Reilly
04/06/2024, 4:06 PMJohn O'Reilly
04/06/2024, 4:11 PMJohn O'Reilly
04/06/2024, 4:12 PM<http://maven.pkg.github.com|maven.pkg.github.com>kpgalligan
04/06/2024, 4:26 PMJohn O'Reilly
04/06/2024, 4:30 PMJohn O'Reilly
04/06/2024, 4:30 PMJohn O'Reilly
04/06/2024, 4:30 PMkpgalligan
04/06/2024, 4:31 PMJohn O'Reilly
04/06/2024, 4:31 PMJohn O'Reilly
04/06/2024, 4:31 PMkpgalligan
04/06/2024, 4:32 PMkpgalligan
04/06/2024, 4:32 PMJohn O'Reilly
04/06/2024, 4:32 PM~/.netrc but still failing....but likely that git-lfs will cause issue anywayJohn O'Reilly
04/06/2024, 4:33 PMkpgalligan
04/06/2024, 4:35 PMkpgalligan
04/06/2024, 4:35 PMJohn O'Reilly
04/06/2024, 4:40 PMkpgalligan
04/06/2024, 4:43 PMJohn O'Reilly
04/06/2024, 4:43 PMJohn O'Reilly
04/06/2024, 4:44 PMln -s /opt/homebrew/bin/git-lfs /Applications/Xcode-15.2.0.app/Contents/Developer/usr/bin/git-lfsJohn O'Reilly
04/06/2024, 4:44 PMmachine <http://maven.pkg.github.com|maven.pkg.github.com>
login [your username]
password [your PAT]John O'Reilly
04/06/2024, 4:46 PMkpgalligan
04/06/2024, 4:47 PMJohn O'Reilly
04/06/2024, 5:04 PMJohn O'Reilly
04/06/2024, 5:04 PMkpgalligan
04/06/2024, 5:05 PMkpgalligan
04/06/2024, 5:06 PMJohn O'Reilly
04/06/2024, 6:13 PM