-
-
Notifications
You must be signed in to change notification settings - Fork 287
perf(flutter): Move Android JNI work to core worker to avoid work on main isolate #3713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
buenaflor
merged 29 commits into
main
from
buenaflor/ref/android-core-worker-fire-forget
May 26, 2026
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e4de028
perf(flutter): Optimize Android scope sync
buenaflor 3640d58
docs(flutter): Document JNI payload guidance
buenaflor b85800e
style(flutter): Wrap JNI JSON reader helper
buenaflor e15b49d
style(flutter): Apply ktlint when-branch formatting
buenaflor 7d8ec5f
ref(flutter): Reuse native data normalizer
buenaflor b43bb60
fix(flutter): Preserve nulls in Android JSON bridge
buenaflor a713631
perf(flutter): Reuse Android JSON deserializers
buenaflor c666afd
ref(flutter): Use SDK JSON object reader
buenaflor ab3bce0
Merge branch 'main' into perf/android-scope-sync-json
buenaflor f9a84b1
docs(flutter): Clarify JSON reader parsing
buenaflor 0c34206
fix(flutter): Wrap Android primitive contexts
buenaflor f4d8991
fix(flutter): Release Android JNI refs
buenaflor e2bd84b
test(flutter): Expect wrapped Android contexts
buenaflor 68412d3
fix(flutter): Release replay JNI refs safely
buenaflor f5c65b6
Merge branch 'perf/android-scope-sync-json' into buenaflor/fix/flutte…
buenaflor bdc2b8f
ref(flutter): Move Android JNI work to core worker
buenaflor 696867d
Merge branch 'main' into buenaflor/fix/flutter-android-jni-leaks
buenaflor d484926
Merge branch 'buenaflor/fix/flutter-android-jni-leaks' into buenaflor…
buenaflor 73efad7
Merge main into branch
buenaflor 310effb
fix(flutter): Harden Android core worker
buenaflor 716eada
Merge branch 'main' into buenaflor/ref/android-core-worker-fire-forget
buenaflor f4d9e97
fix(flutter): Await Android scope worker sync
buenaflor b163866
fix(flutter): Serialize Android scope updates
buenaflor 5d9efbc
fix(flutter): Skip Android worker reads after close
buenaflor 099cefb
style(flutter): Format Android core worker
buenaflor 95727b7
ref(flutter): Expand Android worker update helpers
buenaflor d010d5e
ref(flutter): Reuse Android scope normalizer
buenaflor 739f508
ref(flutter): Use normalize for worker payloads
buenaflor 73a206c
Merge branch 'main' into buenaflor/ref/android-core-worker-fire-forget
buenaflor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
737 changes: 737 additions & 0 deletions
737
packages/flutter/lib/src/native/java/android_core_worker.dart
Large diffs are not rendered by default.
Oops, something went wrong.
120 changes: 0 additions & 120 deletions
120
packages/flutter/lib/src/native/java/android_envelope_sender.dart
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.