Skip to content

feat: upgrade pubky native bindings to 0.10 - #39

Open
pwltr wants to merge 1 commit into
mainfrom
feat/upgrade-pubky-core-ffi
Open

feat: upgrade pubky native bindings to 0.10#39
pwltr wants to merge 1 commit into
mainfrom
feat/upgrade-pubky-core-ffi

Conversation

@pwltr

@pwltr pwltr commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update vendored pubky-core-ffi mobile bindings/artifacts for pubky 0.10.
  • Make Grant auth the default JS API for signUp, signIn, startAuthFlow, and awaitAuthApproval.
  • Add explicit *Grant and legacy *Cookie methods so the React Native package mirrors the native binding surface.
  • Expose parseDeepLink for the new upstream deeplink parser, including Grant auth, direct signup, and Ring secret export links.
  • Remove stale iOS session export/docs and update examples for Grant clientId and grant_secret.
  • Upgrade the example app to React Native 0.87.0 / React 19.2.3, including iOS pods and Android Gradle/AGP compatibility updates.
  • Add an example app parseDeepLink button that logs representative deeplink parser output.
  • Bump package version to 0.14.0.

Dependency

Depends on pubky/pubky-core-ffi#27

Verification

  • yarn typecheck
  • yarn lint
  • yarn bob build
  • cd example/android && ./gradlew app:installDebug -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a
  • cd example/ios && xcodebuild -workspace PubkyExample.xcworkspace -configuration Debug -scheme PubkyExample -destination 'id=15411FFC-13A5-418B-B02F-A92B133A9355' -quiet build
  • git diff --check HEAD
  • Packed @synonymdev/[email protected] locally and verified the package includes the updated Android .so and iOS .a binaries
  • Verified installed Android binary exposes Grant FFI symbols, including sign_up_grant, sign_in_grant, start_grant_auth_flow, and grant_secret
  • Installed the packed package into pubky-ring and ran:
    • yarn typecheck
    • yarn test --runInBand
    • cd ios && xcodebuild -workspace pubkyring.xcworkspace -scheme pubkyring -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' build
    • cd android && ./gradlew compileDebugKotlin

Notes

  • Android install succeeds with AGP deprecation warnings from the RN/AGP 9 toolchain.
  • iOS example build succeeds with RN template deprecation warnings and the existing empty NSLocationWhenInUseUsageDescription warning.
  • GitHub warns that the vendored iOS static libraries are larger than 50 MB; those artifacts are intentionally tracked for downstream native consumers.

@pwltr
pwltr force-pushed the feat/upgrade-pubky-core-ffi branch 2 times, most recently from f05ab6b to a296517 Compare August 20, 2026 12:23
@pwltr
pwltr force-pushed the feat/upgrade-pubky-core-ffi branch from a296517 to 5dcde85 Compare August 20, 2026 12:48
@pwltr
pwltr marked this pull request as draft August 20, 2026 12:55
@pwltr
pwltr force-pushed the feat/upgrade-pubky-core-ffi branch from 5dcde85 to b5aec05 Compare August 20, 2026 13:04
@pwltr
pwltr force-pushed the feat/upgrade-pubky-core-ffi branch from b5aec05 to 59063e7 Compare August 20, 2026 13:24
@pwltr
pwltr force-pushed the feat/upgrade-pubky-core-ffi branch from 59063e7 to 2329d5d Compare August 21, 2026 09:53
@pwltr
pwltr marked this pull request as ready for review August 21, 2026 12:19
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