Skip to content

Commit

Permalink
example app: make to build to Gradle/AGP 8, set java bytecode to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed May 6, 2024
1 parent 1afdcd3 commit 502d376
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ android {
versionName = flutterVersionName
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}

buildTypes {
release {
// Signing with the debug keys for now, so `flutter run --release` works.
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" package="vn.hunghd.flutter_downloader_example">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28"/>
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:
flutter: ">=3.10.0"

dependencies:
device_info_plus: ^8.0.0
device_info_plus: ^10.1.0
flutter:
sdk: flutter
flutter_downloader:
Expand Down

0 comments on commit 502d376

Please sign in to comment.