chore: target android 16 (api level 36) - #3226
Open
zlshames wants to merge 1 commit into
Open
Conversation
Google Play requires apps to target within one year of the latest Android release. compileSdk was already 36; only targetSdkVersion was left at 35, which is what the Play Console flagged. No dependency was holding this back. Audited the Android 16 target-36 behavior changes against the app: - Edge-to-edge enforcement: the app never used windowOptOutEdgeToEdgeEnforcement and already runs SystemUiMode.edgeToEdge with windowDrawsSystemBarBackgrounds=false, so nothing changes. - Predictive back: onBackPressed() is no longer called and KEYCODE_BACK is no longer dispatched. Neither MainActivity nor BubbleActivity overrides onBackPressed, and the Dart side routes back through PopScope, so the behavior is already correct. Declared enableOnBackInvokedCallback explicitly to pin the contract. - Large-screen adaptive layouts: no manifest sets screenOrientation or an aspect ratio, resizeableActivity is already true, and both activities declare configChanges for orientation/screenSize/screenLayout/density, so they resize in place instead of being recreated. Deliberately not opting out via PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY: the app is already adaptive, and that escape hatch stops working at API 37. - Not applicable: scheduleAtFixedRate, MediaStore.getVersion, BODY_SENSORS, elegantTextHeight, and Bluetooth bonding are all unused, and strict intent matching is opt-in only.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Google Play requires apps to target within one year of the latest Android release. compileSdk was already 36; only targetSdkVersion was left at 35, which is what the Play Console flagged. No dependency was holding this back.
Audited the Android 16 target-36 behavior changes against the app: