Skip to content

Multiple instances of hyperservices - #97

Draft
yuvrajjsingh0 wants to merge 8 commits into
mainfrom
multiple-instances-of-hyperservices
Draft

Multiple instances of hyperservices#97
yuvrajjsingh0 wants to merge 8 commits into
mainfrom
multiple-instances-of-hyperservices

Conversation

@yuvrajjsingh0

Copy link
Copy Markdown
Contributor

No description provided.

@Yaswanth0606
Yaswanth0606 force-pushed the multiple-instances-of-hyperservices branch from 75e7263 to 82874ea Compare August 23, 2026 18:23
Yaswanth Polisetti and others added 6 commits August 24, 2026 16:02
Android:
- restore legacy API parity (instance field, terminate/re-create, isNull)
- key ProcessActivity callbacks per instance; per-instance back-press routing
- per-instance merchant view registration with process-wide fallback
- forward permission/activity results to every live instance
- instance-aware HyperFragmentView with per-view props; invalidate() cleanup
- thread-safe keyed maps; reserved/duplicate key guards
- resolve ReactHost reflectively so the module compiles on RN < 0.74
- fix rnVersion Groovy scoping crash in isNewArchitectureEnabled (ext.rnVersion)

iOS:
- fix compile errors in keyed methods; per-key SdkDelegate lifecycle
- keyed event channels registered in supportedEvents; dict access synchronized
- terminateWithKey/invalidate cleanup; no legacy-delegate hijack
- accept PKCS#8 keys and PEM armor in podspec-built merchant view path
- podspec: fix RN version detection for dev layouts; apply folly compiler flags

JS:
- lazy linking error (no import-time throw); platform guards for iOS-only gaps
- HyperFragmentView instance prop; per-instance merchant view APIs
- document multi-instance integration in README

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- upgrade to React Native 0.79.7 (react 19), AGP 8.9 via RNGP, Gradle 8.13
- Android: compileSdk 36, targetSdk 35, minSdk 24, NDK 27.1, Kotlin 2.0.21
- re-enable Jetifier (Juspay micro-SDKs still reference android.support.*)
  with react-android/hermes-android on the ignorelist
- iOS: RN 0.79 Podfile, bundleURL AppDelegate, folly flags, min iOS 15.1
- generateSign accepts PKCS#8/PKCS#1 and PEM armor on both platforms with
  descriptive errors surfaced in the UI
- demo flows fully instance-aware: doProcess routing, instance back-press,
  fragment view binding, merchant views via activeInstance, picker UX
- remove Flipper (dropped by React Native itself)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
All early returns that skip processing (null key, null activity, missing
instance, duplicate/reserved key) now emit a Log.w under the HyperSdkReact
tag alongside the existing SdkTracker telemetry, so silent no-ops are
visible while debugging.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
React method calls arrive on a single NativeModules thread, so the
initiate/terminate race the outer synchronized blocks guarded against
cannot occur in practice; the shared helpers still synchronize the work.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Creates are serialized by the NativeModules thread and the map is a
ConcurrentHashMap, so the guard-then-put needs no additional locking.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants