AB#281037 - add gamifyWidgetOpen bridge#27
Open
dmytro-b-optimove wants to merge 2 commits intomainfrom
Open
Conversation
- Bump Android SDK dependency to 7.13.0, add gamify-widget-sdk artifact - Add gamifyWidgetOpen to TurboModule spec - Add static JS facade (userId/token optional) - Android: UI-thread dispatch via FragmentActivity - iOS: no-op stub pending iOS SDK availability Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The gamify-widget-sdk module has no Maven publishing config in the Android SDK repo — it is not a separate published artifact. Depend only on optimove-android:7.13.0 until the publishing strategy for the gamify module is decided upstream. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GamifyWidgetSDK.open(), added in v7.13.0) to React Native via the existing TurboModule pattern7.13.0and addsgamify-widget-sdk:7.13.0artifactChanges
android/build.gradleoptimove-androidto 7.13.0, addgamify-widget-sdk:7.13.0src/NativeOptimoveReactNative.tsgamifyWidgetOpentoSpecinterfacesrc/index.tsstatic gamifyWidgetOpen(widgetUrl, userId?, token?)facadeandroid/.../OptimoveReactNativeModule.java@Override gamifyWidgetOpen— UI-thread dispatch viaFragmentActivityios/OptimoveReactNative.swiftios/OptimoveReactNative.mmRCT_EXTERN_METHODdeclarationUsage
Test plan
gamifyWidgetOpenfrom example app — widget bottom sheet opensuserId/token— widget opens without auth paramsFragmentActivity— no crash, silent no-opgamifyWidgetOpen— no crash, warning printed to consoleNotes
🤖 Generated with Claude Code