Skip to content

Commit 502d376

Browse files
committed
example app: make to build to Gradle/AGP 8, set java bytecode to 8
1 parent 1afdcd3 commit 502d376

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

example/android/app/build.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ android {
3535
versionName = flutterVersionName
3636
}
3737

38+
compileOptions {
39+
sourceCompatibility = JavaVersion.VERSION_1_8
40+
targetCompatibility = JavaVersion.VERSION_1_8
41+
}
42+
43+
kotlinOptions {
44+
jvmTarget = JavaVersion.VERSION_1_8
45+
}
46+
3847
buildTypes {
3948
release {
4049
// Signing with the debug keys for now, so `flutter run --release` works.

example/android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
xmlns:tools="http://schemas.android.com/tools" package="vn.hunghd.flutter_downloader_example">
2+
xmlns:tools="http://schemas.android.com/tools">
33

44
<uses-permission android:name="android.permission.INTERNET"/>
55
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28"/>

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
flutter: ">=3.10.0"
99

1010
dependencies:
11-
device_info_plus: ^8.0.0
11+
device_info_plus: ^10.1.0
1212
flutter:
1313
sdk: flutter
1414
flutter_downloader:

0 commit comments

Comments
 (0)