diff --git a/geolocator_android/android/build.gradle b/geolocator_android/android/build.gradle index 35f2dc312..57808fed7 100644 --- a/geolocator_android/android/build.gradle +++ b/geolocator_android/android/build.gradle @@ -1,5 +1,6 @@ group 'com.baseflow.geolocator' version '1.0' +def args = ["-Xlint:deprecation","-Xlint:unchecked"] buildscript { repositories { @@ -22,14 +23,13 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { - if (project.android.hasProperty("namespace")) { - namespace("com.baseflow.geolocator") - } + namespace "com.baseflow.geolocator" + - compileSdk flutter.compileSdkVersion + compileSdk 34 defaultConfig { - minSdkVersion flutter.minSdkVersion + minSdkVersion 26 } lintOptions { disable 'InvalidPackage' diff --git a/geolocator_android/lib/src/types/foreground_settings.dart b/geolocator_android/lib/src/types/foreground_settings.dart index 22983e09e..09ad60f86 100644 --- a/geolocator_android/lib/src/types/foreground_settings.dart +++ b/geolocator_android/lib/src/types/foreground_settings.dart @@ -119,7 +119,7 @@ class ForegroundNotificationConfig { 'notificationText': notificationText, 'notificationChannelName': notificationChannelName, 'setOngoing': setOngoing, - 'color': color?.toARGB32(), + 'color': color?.value, }; } } diff --git a/geolocator_android/pubspec.yaml b/geolocator_android/pubspec.yaml index 4ccff58ca..fccdd7133 100644 --- a/geolocator_android/pubspec.yaml +++ b/geolocator_android/pubspec.yaml @@ -5,8 +5,7 @@ issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissu version: 5.0.1+1 environment: - sdk: ^3.5.0 - flutter: ">=2.17.0" + sdk: '>=3.4.0 <4.0.0' flutter: plugin: