Skip to content

chore(shared-core): bump the SharedCore SPM pin to 0.7.0 - #803

Merged
bmc08gt merged 1 commit into
mainfrom
chore/bump-shared-core-0.7.0
Sep 18, 2026
Merged

bmc08gt merged 1 commit into
mainfrom
chore/bump-shared-core-0.7.0

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Picks up flipcash-shared-core-spm 0.7.0, published from
code-payments/code-android-app#1503.

SharedCoreKit's Data.kotlinByteArray copied one byte per Objective-C message send
into the Kotlin/Native runtime. DiscreteBondingCurve passes two 3,360,016-byte tables
through it, so SharedBondingCurve.initialize made roughly 6.7M bridge calls — 1915.9 ms
on the main thread, inside session construction, before state = .loggedIn. 0.7.0 adds
SharedBytes, which converts NSData and ByteArray with usePinned + memcpy; the
6,720,032-byte round trip in SharedCoreKitTests goes 1.013 s to 0.002 s.

Every other caller of that bridge passes 32–64 bytes, which is why it stayed invisible
until the curve tables went through it.

The version floor moves at four sites — FlipcashCore, FlipcashUI and
CrossPlatformVectors manifests plus the Xcode project's package reference — because
they resolve as one graph and upToNextMinor makes 0.6.x and 0.7.x disjoint. A site left
at 0.6.0 fails resolution outright rather than quietly pinning low.

0.7.0 carries the bulk byte-array bridge: SharedBytes converts NSData and
ByteArray with usePinned + memcpy, so Data+KotlinByteArray makes one bridge
call per direction instead of one per byte. The two 3.4 MB bonding-curve
tables were costing ~1.9 s of Objective-C message sends on the main thread
during session construction; the round trip is 1.013 s -> 0.002 s in
SharedCoreKitTests.

Move the version floor in the three package manifests and the Xcode project's
package reference together, then re-resolve. The manifests and the project
resolve as one graph, and upToNextMinor makes 0.6.x and 0.7.x disjoint, so a
site left behind fails to resolve rather than quietly pinning low.
@bmc08gt bmc08gt self-assigned this Sep 18, 2026
@bmc08gt
bmc08gt merged commit 0b04422 into main Sep 18, 2026
1 check passed
@bmc08gt
bmc08gt deleted the chore/bump-shared-core-0.7.0 branch October 5, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant