SkateSpots/src/lib
shakespeare.diy def67d4df2 Fix "Capacitor Amber plugin not available" on upload/signing (v1.0.71)
Root cause (same class as the camera bug): capacitorAmberSigner.ts used
`await import('nostr-signer-capacitor-plugin')`, but that package is marked
external in vite.config.ts and the native build uses inlineDynamicImports, so
the bare specifier survives in the APK bundle and the Android WebView can't
resolve it at runtime. The import threw, getPlugin() returned null, and every
Amber signing op — including the Blossom upload auth event that a Crew logo
upload needs — failed with "Capacitor Amber plugin not available".

Fix: access the native signer via Capacitor's registerPlugin('NostrSignerPlugin')
from the bundled @capacitor/core, and reimplement the plugin's thin JS wrapper
logic directly against the native bridge (options-object API per the plugin's
main source). This removes the broken dynamic import entirely and is version-
independent as long as the native plugin is registered. Covers both native
Amber login (getAmberPublicKeyViaPlugin) and all signing/encryption paths.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-07-24 19:57:55 +07:00
..
stubs feat: map as homepage, 3D globe, camera fix, Sasquatch upgrades, UI/UX polish 2026-07-22 22:47:39 +07:00
wallet fix: remove orphaned canvas code from RiderCardPage causing ctx/Printer is not defined crash 2026-06-16 17:02:59 +07:00
amber.ts fix: Amber intent: format + # in callbackUrl breaks intent parsing 2026-07-08 11:36:03 +07:00
capacitorAmberSigner.ts Fix "Capacitor Amber plugin not available" on upload/signing (v1.0.71) 2026-07-24 19:57:55 +07:00
crewAgent.ts Crew Agent Phases 0–2: opt-in AI guide (🐝 Sasquatch) per crew 2026-07-24 19:26:19 +07:00
exchangeRateService.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
genUserName.test.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
genUserName.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
lightningAddress.ts Add duration tiers + layered NIP-57 zap verification, extend featured/Pro to tours 2026-07-24 16:18:15 +07:00
mintReachability.ts Platform-aware wallet mints (Option C: native + browser scoping) 2026-07-24 17:22:41 +07:00
nip06.test.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
nip06.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
offlineCache.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
platform.ts Platform-aware wallet mints (Option C: native + browser scoping) 2026-07-24 17:22:41 +07:00
polyfills.ts New project created with Shakespeare 2026-06-15 19:49:07 +07:00
quickCapture.ts Fix Quick Snap opening gallery instead of camera on native (v1.0.70) 2026-07-24 19:47:36 +07:00
relatr.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
sanitizeUrl.ts security: implement all 8 protection measures 2026-06-18 14:03:15 +07:00
sasquatchBrain.ts Crew Agent Phases 0–2: opt-in AI guide (🐝 Sasquatch) per crew 2026-07-24 19:26:19 +07:00
skateboardRating.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
skateTags.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
types.ts Crew Agent Phases 0–2: opt-in AI guide (🐝 Sasquatch) per crew 2026-07-24 19:26:19 +07:00
utils.ts New project created with Shakespeare 2026-06-15 19:49:07 +07:00
weather.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00