Skip to content

AB#280444 - Add Gamify Widget SDK module and QA app integration#91

Merged
rustam-k-optimove merged 7 commits intomasterfrom
feature/280444-gamify-widget-sdk-integration
Apr 20, 2026
Merged

AB#280444 - Add Gamify Widget SDK module and QA app integration#91
rustam-k-optimove merged 7 commits intomasterfrom
feature/280444-gamify-widget-sdk-integration

Conversation

@dmytro-b-optimove
Copy link
Copy Markdown
Contributor

@dmytro-b-optimove dmytro-b-optimove commented Apr 8, 2026

image image image

Summary

  • Introduces gamify-widget-sdk as a new standalone Android library module (mirrors optimove-sdk structure for future Maven publishing)
  • Adds GamifyWidgetSDK entry point with init(widgetUrl) and open(fragmentManager) API
  • Renders the widget in a BottomSheetDialogFragment via WebView with a JavaScript bridge (AndroidBridge) for widget-to-native communication
  • Adds GamifyWidgetActivity + GamifyWidgetScreen to the QA app: Tenant, User ID, and environment (Dev / Prod US / Prod EU) inputs persisted in SharedPreferences
  • Widget URL constructed as {baseUrl}/{tenant}/{userId} with three real environment base URLs

Test plan

  • Open QA app → tap "Open Gamify Widget"
  • Verify GamifyWidgetActivity opens with Tenant, User ID, and env selector fields
  • Enter tenant 60033, user ID e7776ce5-a430-4408-8bf4-050b377ec2aa, select Dev
  • Tap "Open Widget" — verify https://opti-ls-widget-dev.optimove.net/60033/e7776ce5-a430-4408-8bf4-050b377ec2aa loads in the bottom sheet
  • Close the bottom sheet, reopen GamifyWidgetActivity — verify values are still populated
  • Verify Prod US and Prod EU env selections produce correct base URLs
  • Run unit tests: ./gradlew :gamify-widget-sdk:test

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wiz-190b289812
Copy link
Copy Markdown
Contributor

wiz-190b289812 Bot commented Apr 8, 2026

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings 5 Medium
Software Management Finding Software Management Findings -
Total 5 Medium

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

dmytro-b-optimove and others added 2 commits April 8, 2026 14:45
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dmytro-b-optimove dmytro-b-optimove marked this pull request as ready for review April 8, 2026 11:58
dmytro-b-optimove and others added 2 commits April 9, 2026 15:14
… AndroidBridge

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@graciecooper graciecooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on emulator and happy LGTM

graciecooper
graciecooper previously approved these changes Apr 9, 2026
Copy link
Copy Markdown
Contributor

@graciecooper graciecooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind and bump the version numbers and update the CHANGELOG 😸

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rustam-k-optimove rustam-k-optimove merged commit 24e6704 into master Apr 20, 2026
8 checks passed
@rustam-k-optimove rustam-k-optimove deleted the feature/280444-gamify-widget-sdk-integration branch April 20, 2026 11:36
@kris-opti kris-opti restored the feature/280444-gamify-widget-sdk-integration branch April 21, 2026 10:02
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.

4 participants