Skip to content

Release 5.0.0#250

Closed
e271828- wants to merge 4 commits into
mainfrom
rel/5.0
Closed

Release 5.0.0#250
e271828- wants to merge 4 commits into
mainfrom
rel/5.0

Conversation

@e271828-

Copy link
Copy Markdown
Contributor

No description provided.

e271828- and others added 4 commits March 19, 2026 09:06
Keep Compose dialog dimming aligned with the View SDK when loading is disabled.

Intended behavior:
- If loading=false, the dialog should start without the dim-behind backdrop while the captcha is still hidden/loading.
- If a visible checkbox is rendered, the dialog should regain its normal dimmed backdrop as soon as the checkbox is shown.
- If an invisible flow escalates into a visible challenge, the dialog should regain its normal dimmed backdrop when that visible state is entered.
- Unchanged flows such as embedded rendering, dialog cancellation, and preloaded WebView reuse should keep their prior behavior.

Implementation:
- Track dialog dimming as Compose state instead of repeatedly mutating the window from a global layout listener.
- Restore dim on the same semantic transitions used by the View SDK: Loaded for checkbox sizes, Opened for invisible flows.
- Centralize window flag updates in a dialog setup helper that preserves and restores the window's original dim configuration.

Tests:
- Add emulator-backed coverage for the loading=false hidden state.
- Add emulator-backed coverage for dim restoration when a checkbox becomes visible.
- Add emulator-backed coverage for the invisible-flow dim restoration state transition.
- Preserve existing Compose behavior checks for embedded mode, dialog cancellation, and WebView reuse.
* chore: allow change siteKey in runtime

* chore: remove no-op Setup button and setupArmed state

* fix(sdk): prevent stale readyForInteraction after dialog dismiss

---------

Co-authored-by: Aliaksandr Babrykovich <aliaksandr.babrykovich@callstack.com>
# Conflicts:
#	example-compose-app/src/main/java/com/hcaptcha/example/compose/ComposeActivity.kt
@github-actions

Copy link
Copy Markdown

Diffuse report:

OLD: sdk-main.aar
NEW: sdk-pr.aar

 AAR      │ old       │ new       │ diff 
──────────┼───────────┼───────────┼──────
      jar │  94.7 KiB │  94.7 KiB │ -1 B 
 manifest │     411 B │     411 B │  0 B 
      res │  28.3 KiB │  28.3 KiB │  0 B 
    other │     1 KiB │     1 KiB │  0 B 
──────────┼───────────┼───────────┼──────
    total │ 124.4 KiB │ 124.4 KiB │ -1 B 

 JAR     │ old │ new │ diff      
─────────┼─────┼─────┼───────────
 classes │  61 │  61 │ 0 (+0 -0) 
 methods │ 800 │ 800 │ 0 (+0 -0) 
  fields │ 270 │ 270 │ 0 (+0 -0)
AAR
 size     │ diff │ path          
──────────┼──────┼───────────────
 94.7 KiB │ -1 B │ ∆ classes.jar 
──────────┼──────┼───────────────
 94.7 KiB │ -1 B │ (total)

@e271828- e271828- closed this Mar 23, 2026
@e271828- e271828- deleted the rel/5.0 branch March 23, 2026 19:21
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