Skip to content

chore(android): lower minSdk to 21 to match native SDK floor#34

Draft
mahmoud-elmorabea wants to merge 1 commit into
mainfrom
android-min-sdk-21
Draft

chore(android): lower minSdk to 21 to match native SDK floor#34
mahmoud-elmorabea wants to merge 1 commit into
mainfrom
android-min-sdk-21

Conversation

@mahmoud-elmorabea

Copy link
Copy Markdown

Lowers the Android floor from 24 → 21 (jist library + example app) so Jist matches the customerio-android SDK's minSdk and can be consumed everywhere that SDK is supported. First step of the Visual Inbox "Jist publishing foundation" milestone.

Changes

  • android/jist and android/example: minSdk 24 → 21.
  • android/jist: enforce NewApi lint as an error so any future above-floor API call without a version guard fails the build.

Notes

  • The only above-floor API in use is java.time (Instant/ZoneId/DateTimeFormatter), already covered by the existing core-library desugaring. Coil3 and the Compose BOM support API 21. No source changes were needed.
  • compileSdk is intentionally left at 35 (AGP 8.7.3) to keep the change surgical and avoid shifting Paparazzi baselines.

Validation

  • ./gradlew :jist:lintDebug — green (NewApi as error, no violations at the new floor).
  • ./gradlew :example:verifyPaparazziDebug — green against the existing baselines (no re-recording; any snapshot diff would be treated as a regression from this bump).

🤖 Generated with Claude Code

Lower the Android floor from 24 to 21 (jist library + example app) so Jist
matches the customerio-android SDK's minSdk and can be consumed everywhere
the SDK is supported. java.time usage is already covered by the existing
core-library desugaring; Coil3 and the Compose BOM support API 21.

Enforce NewApi lint as an error on the jist library so any future
above-floor API call without a version guard fails the build.

compileSdk is intentionally left at 35 (AGP 8.7.3) to keep the change
surgical and avoid shifting Paparazzi baselines.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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