From ea6f9f6e004a8a0c1ef10b67785151085cf89fc2 Mon Sep 17 00:00:00 2001 From: "Alexandre.T" Date: Wed, 21 Aug 2024 17:14:44 +0200 Subject: [PATCH 1/2] [FIX] Bump compileSdk version and AGP >8.0.0 compatibility --- android/build.gradle | 6 +++++- example/android/app/build.gradle | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 886b41a..384b853 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,7 +22,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { - compileSdkVersion 30 + compileSdkVersion 34 + + if (project.android.hasProperty("namespace")) { + namespace 'com.hemanthraj.fluttercompass' + } defaultConfig { minSdkVersion 20 diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index da20053..1a9ede2 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -15,7 +15,11 @@ apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 34 + + if (project.android.hasProperty("namespace")) { + namespace 'com.hemanthraj.fluttercompass' + } lintOptions { disable 'InvalidPackage' From baec67a346740cb1296a87298a1c7e5037cafc31 Mon Sep 17 00:00:00 2001 From: "Alexandre.T" Date: Wed, 21 Aug 2024 17:23:06 +0200 Subject: [PATCH 2/2] update version and CHANGELOG.md and README.md --- CHANGELOG.md | 4 ++++ README.md | 2 +- pubspec.yaml | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c904c98..e3ac14a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.1 +* Bump the compileSdkVersion to 34 to support Android 14 +* Support the AGP >= 8 + ## 0.8.0 * Add guard on web (Web always returns an empty stream) * Heading accounts for orientation on iOS diff --git a/README.md b/README.md index f197bab..6063c35 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ To use this plugin, add `flutter_compass` as a [dependency in your pubspec.yaml ```yaml dependencies: - flutter_compass: '^0.7.0' + flutter_compass: '^0.8.1' ``` ### iOS diff --git a/pubspec.yaml b/pubspec.yaml index fe6b107..4aa3c09 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_compass description: A Flutter compass. The heading varies from 0-360, 0 being north. -version: 0.8.0 +version: 0.8.1 homepage: https://github.com/hemanthrajv/flutter_compass dependencies: @@ -8,8 +8,8 @@ dependencies: sdk: flutter environment: - sdk: '>=2.12.0 <4.0.0' - flutter: '>=1.10.0' + sdk: ">=2.12.0 <4.0.0" + flutter: ">=1.10.0" # For information on the generic Dart part of this file, see the # following page: https://www.dartlang.org/tools/pub/pubspec