Skip to content

AB#287059 feat: add adact support in sdk - #103

Merged
graciecooper merged 2 commits into
masterfrom
adact-sdk
Aug 10, 2026
Merged

AB#287059 feat: add adact support in sdk#103
graciecooper merged 2 commits into
masterfrom
adact-sdk

Conversation

@maksymba-opti

@maksymba-opti maksymba-opti commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Adact mini games support to GamifyWidgetSDK so Android apps can open embedded campaigns in a fullscreen WebView dialog, matching the Web / iOS contract.

What's included

  • initialize(widgetUrl, adactUrl) — optional adactUrl from onboarding/retrieval (SDK does not map regions)
  • API:
    • openAdactCampaign(activity, OpenAdactParams)
    • closeAdactCampaign() / closeWidget()
    • buildAdactCampaignUrl(...) / getAdactUrl()
  • OpenAdactParams (campaignId, cid?, token?)
  • Builds {adactUrl}/embedded/{campaignId}?cid=&customerIdToken=
  • No loyalty READY→INIT handshake for Adact (identity via query params)
  • Loyalty and Adact are independent surfaces; only one fullscreen overlay at a time
  • Bridge handles { type: "CLOSE" } in addition to closeWidget()
  • Demo app: Adact section on Gamify screen (URL, campaign ID, cid, token)
  • Version bump to 7.16.0 (gradle.properties + CHANGELOG)
  • Unit tests for URL building / initialize; ProGuard keep for OpenAdactParams

Test plan

  • Run demo app → Open Gamify Widget → Adact section → open campaign
  • Confirm WebView loads /embedded/{campaignId} with optional cid / customerIdToken
  • Missing adactUrl / campaignId / non-HTTPS → no-op
  • closeAdactCampaign() closes Adact only; closeWidget() closes loyalty only
  • Opening Adact closes an open loyalty overlay (and the reverse)
  • Unit tests: com.optimove.android.gamifywidgetsdk.* pass

@wiz-9860460c11

wiz-9860460c11 Bot commented Jul 29, 2026

Copy link
Copy Markdown

Wiz Scan Summary

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

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

@graciecooper graciecooper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM :)

@graciecooper
graciecooper merged commit a992ba8 into master Aug 10, 2026
8 checks passed
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