Skip to content

Align Android app module to Java 17 and bump wakelock_plus#208

Merged
zjs81 merged 1 commit into
zjs81:mainfrom
Specter242:codex/java17-wakelock-alignment
Feb 22, 2026
Merged

Align Android app module to Java 17 and bump wakelock_plus#208
zjs81 merged 1 commit into
zjs81:mainfrom
Specter242:codex/java17-wakelock-alignment

Conversation

@Specter242

Copy link
Copy Markdown
Contributor

Summary

This PR aligns Android build settings with current plugin requirements by moving the app module to Java/Kotlin 17 and updating wakelock_plus.

Why

main already uses newer plugin versions (including package_info_plus 9.x), but the Android app module still targets Java 11. This can cause avoidable toolchain mismatch issues.

Changes

  • android/app/build.gradle.kts
    • sourceCompatibility: JavaVersion.VERSION_11 -> JavaVersion.VERSION_17
    • targetCompatibility: JavaVersion.VERSION_11 -> JavaVersion.VERSION_17
    • kotlinOptions.jvmTarget: 11 -> 17
  • pubspec.yaml
    • wakelock_plus: ^1.2.8 -> ^1.4.0

Validation

  • flutter build apk --debug --no-pub (pass)

Scope / Risk

  • Small, focused change (2 files).
  • No app feature logic changes.
  • Requires Java 17 availability in local/CI Android build environments.

Issue

Closes #207

@zjs81

zjs81 commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Thanks

@zjs81 zjs81 merged commit 700e85b into zjs81:main Feb 22, 2026
6 checks passed
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.

Align Android app module to Java 17 for plugin/toolchain compatibility

2 participants