Skip to content

chore: Bump targetSdk to API 36 (Android 16 Baklava) for Play Store compliance #7

Closed

Description

@stozo04

Problem

OpenRang currently targets API 34 (Android 14 UpsideDownCake). Google Play's target API level policy requires:

Deadline Requirement
Now New apps must target API 35+ (Android 15) to be submitted
August 31, 2026 All new apps and updates must target API 36+ (Android 16 Baklava)

We are two major versions behind the upcoming deadline. If we submit to the Play Store without bumping, the submission will be rejected.

Source: Meet Google Play's target API level requirement

Current State

// app/build.gradle.kts
compileSdk = 34
targetSdk = 34
minSdk = 26

Steven already has Android 16 (API 36.1) installed in Android Studio SDK Manager. The SDK tooling is ready.

What Needs to Change

1. Bump SDK versions in app/build.gradle.kts

compileSdk = 36
targetSdk = 36
// minSdk = 26 (keep — still supports Android 8.0+)

2. Update AGP and Kotlin if needed

Android 16 may require a newer Android Gradle Plugin. Current AGP is 8.3.2 — check if this supports compileSdk = 36 or if we need to bump to 8.5+. Kotlin 1.9.22 should be fine but verify Compose compiler compatibility.

3. Review Android 16 behavior changes

Google documents breaking changes for apps targeting API 36. Review and address:

Key areas to audit for OpenRang:

  • Camera/media changes — any CameraX or Media3 behavior differences?
  • Permission model changes — any new restrictions on CAMERA or RECORD_AUDIO?
  • Storage changes — any impact on filesDir or DataStore?
  • Foreground service changes — not applicable (we don't use foreground services)

4. Test on Android 16 device/emulator

Run the full app flow on an API 36 emulator:

  • Onboarding → DataStore persistence → permission flow
  • Burst capture → preview → gallery
  • Verify all 19 unit tests + 6 UI tests still pass

5. Update documentation

  • CLAUDE.md — update Tech Stack table (compileSdk 36, targetSdk 36)
  • PRD-mission-control.md — update target SDK reference
  • docs/ANDROID_STANDARDS.md — update Play Store requirements section (currently flags API 35, will need to say 36)

Android Version Context (NOT an LTS model)

Clarification: Android doesn't use a formal LTS (Long Term Support) model like Linux. Each major version gets security patches for several years, but Google's enforcement mechanism is the Play Store target API requirement — that's what matters for app developers. The cadence is one annual bump per year, tied to the major API level.

As of May 2026:

  • Android 16 (API 36, "Baklava") — latest stable, currently on QPR2
  • Android 17 — in developer preview
  • Android 15 (API 35) — previous major release
  • Android 14 (API 34) — our current target (two behind)

Source: Android Releases

Acceptance Criteria

  • compileSdk = 36 and targetSdk = 36 in build.gradle.kts
  • App builds and runs without errors on API 36 emulator
  • All behavior changes from Android 15 and 16 reviewed and addressed
  • AGP/Kotlin versions bumped if required for API 36 compatibility
  • All existing tests pass (19 unit + 6 UI)
  • Documentation updated (CLAUDE.md, PRD, ANDROID_STANDARDS.md)
  • Ready for Play Store submission before August 31, 2026 deadline

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions