From 502d3760125110c5dc510b1f0389306655c66177 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Mon, 6 May 2024 22:44:25 +0100 Subject: [PATCH] example app: make to build to Gradle/AGP 8, set java bytecode to 8 --- example/android/app/build.gradle | 9 +++++++++ example/android/app/src/main/AndroidManifest.xml | 2 +- example/pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index dfe16c87..a4d5275e 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -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. diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 7796dc82..d5e3a033 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 2c2cae78..71146098 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -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: