Skip to content

Multiple fixes and improvements#2

Merged
Gustavo Hoirisch (gugahoi) merged 9 commits into
mainfrom
android-fix
Apr 24, 2026
Merged

Multiple fixes and improvements#2
Gustavo Hoirisch (gugahoi) merged 9 commits into
mainfrom
android-fix

Conversation

@gugahoi

@gugahoi Gustavo Hoirisch (gugahoi) commented Apr 23, 2026

Copy link
Copy Markdown
Contributor
  • fix(android): guard against null activity/window during teardown
  • fix(ios): resolve key window via connectedScenes
  • chore(ci): use node 24 when publishing
  • chore(node): set node 18 as min version
  • chore(prettier): remove java files from prettier cmd
  • docs: fix import and release section
  • chore(format): auto fix formatting
  • chore(biome): use schema from node modules
  • fix(ci): add pipelines for PRs

Closes #1

Capture the activity once and reject the call if null; re-check the
window inside the UI-thread lambda. Avoids NPEs when the activity is
torn down between scheduling and executing the flag update.
UIApplication.shared.windows is deprecated and returns windows across
all scenes, which picks the wrong one in iPad split-view and
multi-window apps. Walk connectedScenes to find the foreground window
scene's key window, falling back to foregroundInactive since
willResignActive can fire after the scene leaves the active state.
@gugahoi

Copy link
Copy Markdown
Contributor Author

I can cut a new release after we review and merge this

@gugahoi
Gustavo Hoirisch (gugahoi) merged commit 50770cf into main Apr 24, 2026
1 check 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.

v0.2.0 code review: bugs, missing tests, and improvements

2 participants