Skip to content

feat(android): add ANDROID_MIN_SDK env var to plugin and android.lock#74

Merged
abueide merged 1 commit into
mainfrom
feat/android-min-sdk-env
May 12, 2026
Merged

feat(android): add ANDROID_MIN_SDK env var to plugin and android.lock#74
abueide merged 1 commit into
mainfrom
feat/android-min-sdk-env

Conversation

@abueide
Copy link
Copy Markdown
Contributor

@abueide abueide commented May 8, 2026

Summary

  • Adds ANDROID_MIN_SDK (default: 24) as a plugin env var that flows through android.lock, drift detection, and init-hook
  • Example build.gradle files now read minSdkVersion from the env var instead of hardcoding it

Changes

  • plugin.json: Add ANDROID_MIN_SDK env var
  • devices.sh: Include ANDROID_MIN_SDK in android_generate_android_lock() output
  • drift.sh: Add to drift detection config var list
  • init-hook.sh: Add to config keys exported to android.json
  • Examples: Update build.gradle/.kts files to read from System.getenv("ANDROID_MIN_SDK")
  • Examples: Add ANDROID_MIN_SDK: 24 to existing android.lock files

Why

Allows projects to control minSdkVersion via devbox environment config, consistent with how compileSdk and targetSdk already work.


🤖 Generated with Claude Code

The plugin now exposes ANDROID_MIN_SDK (default: 24) as a configurable env
var that flows through android.lock, drift detection, and init-hook. Example
build.gradle files read minSdkVersion from the env instead of hardcoding it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abueide abueide added the feature New feature or functionality label May 8, 2026
@abueide abueide marked this pull request as ready for review May 12, 2026 18:51
@abueide abueide merged commit 5001b24 into main May 12, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant