Skip to content

Commit 2ab3c5a

Browse files
authored
bumped desugaring library dependency (#2054)
1 parent 18da9d5 commit 2ab3c5a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

flutter_local_notifications/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* [Android] **Breaking change** renamed the `requestPermission()` associated with the `AndroidFlutterLocalNotificationsPlugin` class to `requestNotificationsPermission()`. This was done to be more explicit given another method (`requestExactAlarmsPermission()`) has been added that also requests a permission (more details below).
44
* [Android] **Breaking change** the plugin now only declares the bare minimum in its `AndroidManifest.xml`. This means applications making use of either scheduled notifications, full-screen intent notifications or notification actions will now require changes in the application's own `AndroidManifest.xml` file. Please check the [AndroidManifest.xml setup](https://pub.dev/packages/flutter_local_notifications#androidmanifestxml-setup) section of the readme for more details. The reason this was done was because not all applications will leverage all of the plugin's features. Doing this will now allow applications to only request the appropriate permissions needed for their application. This addresses issue [1687](https://github.com/MaikuB/flutter_local_notifications/issues/1687)
55
* [Android] added the ability to request permission to schedule exact alarms via the `requestExactAlarmsPermission()` method that has been added to the `AndroidFlutterLocalNotificationsPlugin` class that represents the Android implementation of the plugin. This has been done in response to behaviour changes introduced in Android 14 (API level 34) when comes to using exact alarms. See the official documentation about these changes [here](https://developer.android.com/about/versions/14/changes/schedule-exact-alarms). This change addresses issue [1906](https://github.com/MaikuB/flutter_local_notifications/issues/1906)
6-
6+
* [Android] bumped Java desugaring dependency and updated readme accordingly to also mention Gradle version that is used by plugin
77

88
# [15.1.0+1]
99

flutter_local_notifications/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,18 @@ android {
194194
}
195195
196196
dependencies {
197-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
197+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
198198
}
199199
```
200200

201-
Note that the plugin uses Android Gradle plugin 4.2.2 to leverage this functionality so applications would also need to use that version at a **minimum**. For a Flutter project, this is specified in `android/build.gradle` and the main parts would look similar to the following
201+
Note that the plugin uses Android Gradle plugin 7.3.1 to leverage this functionality so to errr on the safe side, applications should aim to use the same version at a **minimum**. Using a higher version is also needed as at point, Android Studio bundled a newer version of the Java SDK that will only work with Gradle 7.3 or higher (see [here](https://docs.flutter.dev/release/breaking-changes/android-java-gradle-migration-guide) for more details). For a Flutter project, this is specified in `android/build.gradle` and the main parts would look similar to the following
202202

203203
```gradle
204204
buildscript {
205205
...
206206
207207
dependencies {
208-
classpath 'com.android.tools.build:gradle:4.2.2'
208+
classpath 'com.android.tools.build:gradle:7.3.1'
209209
...
210210
}
211211
```

flutter_local_notifications/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ android {
4242
}
4343

4444
dependencies {
45-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
45+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
4646
implementation "androidx.core:core:1.3.0"
4747
implementation "androidx.media:media:1.1.0"
4848
implementation "com.google.code.gson:gson:2.8.9"

flutter_local_notifications/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ dependencies {
7171
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
7272
implementation 'androidx.window:window:1.0.0'
7373
implementation 'androidx.window:window-java:1.0.0'
74-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
74+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
7575

7676
testImplementation 'junit:junit:4.12'
7777
androidTestImplementation 'androidx.test:runner:1.2.0'

0 commit comments

Comments
 (0)