Skip to content

Commit b5f413d

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

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

android/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050
}
5151

5252
dependencies {
53-
compileOnly("androidx.annotation:annotation:1.6.0")
54-
implementation("androidx.core:core-ktx:1.13.1")
55-
implementation("androidx.work:work-runtime:2.9.0")
53+
compileOnly "androidx.annotation:annotation:1.6.0"
54+
implementation "androidx.core:core-ktx:1.13.1"
55+
implementation "androidx.work:work-runtime:2.9.0"
5656
}

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)