Skip to content

build(android): target API 36 for Play updates - #155

Merged
Quick104 merged 3 commits into
mainfrom
t3code/target-android-api-36
Jul 31, 2026
Merged

Quick104 merged 3 commits into
mainfrom
t3code/target-android-api-36

Conversation

@Quick104

@Quick104 Quick104 commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • target Android 16 / API 36 in both Play-distributed app modules
  • keep the baseline-profile harness aligned with the phone target
  • adapt the phone player orientation control to Android 16 large-screen behavior
  • migrate Android TV Back routing to supported target-36 callbacks
  • update SDK policy assertions and current SDK documentation
  • retain Android 7 support (minSdk = 24)

Android 16 compatibility review

  • Phone already opts into edge-to-edge with enableEdgeToEdge(); TV already owns edge-to-edge insets with WindowCompat.setDecorFitsSystemWindows(window, false).
  • Android TV Back routing uses supported callbacks with screen/popup → shell → Navigation priority; Key.Back remains only as an Escape/pre-Android-16 fallback.
  • On Android 16 displays at sw600dp+, the platform ignores requested orientation. The player now keeps those layouts adaptive, releases any prior activity lock, and disables/relabels the no-op lock control while preserving the saved preference for smaller displays.
  • Android 16 local-network protection is still opt-in at API 36, so SiloCast/pairing NSD does not require a new runtime permission for this target update.
  • No temporary Android 16 compatibility opt-outs were added.

Validation

  • ./gradlew :androidApp:testDebugUnitTest :androidTvApp:testDebugUnitTest
  • ./gradlew :androidApp:assembleDebug
  • ./gradlew :androidTvApp:assembleDebug
  • ./gradlew --no-daemon -Dorg.gradle.jvmargs="-Xmx6g -Dfile.encoding=UTF-8" :androidApp:bundleRelease
  • ./gradlew --no-daemon -Dorg.gradle.jvmargs="-Xmx6g -Dfile.encoding=UTF-8" :androidTvApp:bundleRelease
  • release merged manifests verified as minSdkVersion=24, targetSdkVersion=36
  • focused orientation policy coverage for Android 15/16, phone, tablet, and future API behavior
  • Android TV 16 AVD installed package reported minSdk=24, targetSdk=36; runtime Back checks covered Movies content → tab focus → Home, filter values → filter list → close, and player error → item detail, with no crashes or ANRs
  • :androidTvApp:lintDebug passed. The standalone phone lintDebug task still reports its existing eight unrelated errors (notification permission check, Media3 opt-ins, and restricted media-router API); release lint-vital passes in the bundle build.

Summary by CodeRabbit

  • Improvements
    • Updated Android mobile, TV, and baseline profile builds to target Android API 36.
    • Refined player orientation-lock controls to reflect support, improve accessibility messaging, and disable the action on Android 16+ large screens.
    • Improved Android TV back navigation for filters, pickers, panels, menus, search, and nested routes, while retaining legacy keyboard and remote controls.
  • Tests
    • Updated Android API targeting checks and added orientation-lock support coverage.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Android app, TV app, and baseline profile configurations now target SDK 36. Player orientation locking is gated on Android 16 large-screen support. Android TV back handling is centralized across shell destinations and local overlays, with legacy input fallbacks retained.

Changes

Android API 36 and player orientation

Layer / File(s) Summary
Target SDK configuration
androidApp/build.gradle.kts, androidTvApp/build.gradle.kts, baselineprofile/build.gradle.kts, README.md
Updates configured and documented Android target SDK values from 35 to 36.
Policy test alignment
androidApp/src/androidUnitTest/kotlin/..., androidTvApp/src/androidUnitTest/kotlin/...
Updates target SDK assertions, test names, and the Robolectric pinning comment for API 36.
Orientation support policy and tests
androidApp/src/androidMain/kotlin/.../PlayerOrientationPolicy.kt, androidApp/src/androidUnitTest/kotlin/.../PlayerOrientationPolicyTest.kt
Adds SDK and smallest-width checks for orientation-lock support and tests supported and unsupported combinations.
Player orientation flow and controls
androidApp/src/androidMain/kotlin/.../PlayerScreen.kt, PlayerOverlay.kt, PlayerControls.kt
Computes orientation-lock support, releases orientation when unsupported, gates state updates, and updates control labels, icons, and enabled states.

Android TV back navigation

Layer / File(s) Summary
TV overlay back handling
androidTvApp/src/androidMain/kotlin/.../TvLibraryBrowseControls.kt, TvPlayerHud.kt, TvPlayerScreen.kt
Adds system Back handling for browse filters and player pickers while retaining screen dismissal and legacy key-event behavior.
TV shell back routing
androidTvApp/src/androidMain/kotlin/.../TvMainShell.kt, androidTvApp/src/androidUnitTest/kotlin/.../TvLibraryReviewWiringSourceTest.kt
Centralizes state-aware shell Back routing, installs handlers within navigation destinations, migrates routes to shellComposable, and updates the wiring source test.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested reviewers: rxwatcher

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the primary change: updating the Android apps to target API 36 for Play distribution.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t3code/target-android-api-36

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eef1176575

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread androidApp/build.gradle.kts Resolved
@Quick104
Quick104 force-pushed the t3code/target-android-api-36 branch from a5c230b to 6132605 Compare July 30, 2026 22:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61326054c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread androidTvApp/build.gradle.kts Resolved
@Quick104
Quick104 merged commit 3b2044c into main Jul 31, 2026
2 checks passed
@Quick104
Quick104 deleted the t3code/target-android-api-36 branch July 31, 2026 00:47
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.

1 participant