Repository navigation
DEV-1401: ShimmerCapture targets API 36 (Google Play requirement) - #149
Conversation
Play Console refused the 1.3.4 draft: apps must target at least API level 36. versionCode goes to 36 too, because Play keeps the versionCode 35 APK from that draft and will not accept the code again; versionName stays 1.3.4. compileSdk stays 34, as it did with target 35: Play checks only the target. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tested on Android 16 (emulator, API 36)Debug build of this branch ( Phone (portrait locked, as before)
Back at the root screen: goes home, and the process stays alive. MainActivity is destroyed, so the next launch is warm and shows the location notice again. Same at targetSdk 35 (built and tested side by side), so this is not from this PR. Tablet (≥600dp): the one visible change. As expected, Android 16 ignores Android 14 (Samsung Galaxy A13 on the bench): this build, 1.3.4 / versionCode 36 / targetSdk 36, is installed there already. |
…ated Targeting API 36, Android ignores screenOrientation="portrait" on displays 600dp and wider, so ShimmerCapture rotates on tablets. Each rotation recreated MainActivity, which re-showed the location notice and logged a WindowLeaked for the previous one. configChanges for orientation and screen size keeps the activity; it has no orientation-specific resources, so the views reflow as they are. Phones still lock to portrait. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tablet rotation fixedAdded Retested on the Android 16 Pixel Tablet emulator: five rotations, then
Debug and release builds pass, release including lint-vital. Phones still lock to portrait, so they are unaffected. |
Replaces #148, closed when its branch was renamed for the new ticket.
Play Console refused the ShimmerCapture 1.3.4 draft: "Your app currently targets API level 35 and must target at least API level 36".
Change (
shimmerServiceExample/build.gradle,AndroidManifest.xml)targetSdkVersion35 → 36.versionCode35 → 36. Play keeps the versionCode 35 APK uploaded with the refused draft and will not accept that code again.versionNamestays 1.3.4: the release is re-created under the same name.compileSdkstays 34, as it already did with target 35. Play checks only the target, and moving compileSdk would need a newer Android Gradle Plugin than the repo's 8.2.2.What targeting 36 changes for this app
Checked against the Android 16 behaviour changes for apps targeting 36:
onBackPressed()is no longer called. The app does not override it, nor handleKEYCODE_BACK: no change.android:screenOrientation="portrait", soMainActivitycan rotate there. Phones are unaffected. Rotating recreated MainActivity, re-showing the location notice each time, soAndroidManifest.xmlnow gives itconfigChangesfor orientation and screen size: it reflows instead of being recreated.Tested
:shimmerServiceExample:assembleReleasepasses, including lint-vital. The APK readsversionCode='36' versionName='1.3.4' targetSdkVersion:'36'.After merge
ShimmerCapture_v1.3.4release and tag, which hold the refused versionCode 35 APK.🤖 Generated with Claude Code