From b5f413d5b5a71f63dfa4f854d847f3c777c796d6 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 --- android/build.gradle | 6 +++--- example/android/app/build.gradle | 9 +++++++++ example/android/app/src/main/AndroidManifest.xml | 2 +- example/pubspec.yaml | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 38ff2bd9..78f9b70b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -50,7 +50,7 @@ android { } dependencies { - compileOnly("androidx.annotation:annotation:1.6.0") - implementation("androidx.core:core-ktx:1.13.1") - implementation("androidx.work:work-runtime:2.9.0") + compileOnly "androidx.annotation:annotation:1.6.0" + implementation "androidx.core:core-ktx:1.13.1" + implementation "androidx.work:work-runtime:2.9.0" } 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: