Commit bb19a19
committed
Align example Android NDK and Java target with the Flutter template
Two divergences from what `flutter create` generates, both surfaced as
build warnings:
- ndkVersion was pinned to 27.0.12077973 while connectivity_plus,
device_info_plus, flutter_background, flutter_webrtc and jni all
require 28.2.13676358. Use `flutter.ndkVersion` (the template's own
reference, currently 28.2.13676358) so this tracks the SDK instead of
drifting again.
- Java source/target compatibility was VERSION_1_8, which now warns
"source/target value 8 is obsolete and will be removed in a future
release". The template uses VERSION_17.
kotlinOptions.jvmTarget moves to 17 alongside it; leaving it at 1_8 would
fail with inconsistent JVM-target compatibility.
Both warnings are gone from the build output and the APK still builds.1 parent 0bdb9e1 commit bb19a19
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments