Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/android_alarm_manager_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.2

- Fix build issue introduced in 1.3.1.

## 1.3.1

- Fix `PendingIntent`s for Android 12+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Handler;
import android.util.Log;
import androidx.core.app.AlarmManagerCompat;
Expand Down Expand Up @@ -136,7 +137,7 @@ private static void scheduleAlarm(
context,
requestCode,
alarm,
(Build.VERSION >= 23 ? PendingIntent.FLAG_IMMUTABLE : 0)
(Build.VERSION.SDK_INT >= 23 ? PendingIntent.FLAG_IMMUTABLE : 0)
| PendingIntent.FLAG_UPDATE_CURRENT);

// Use the appropriate clock.
Expand Down Expand Up @@ -225,7 +226,7 @@ public static void cancel(Context context, int requestCode) {
context,
requestCode,
alarm,
(Build.VERSION >= 23 ? PendingIntent.FLAG_IMMUTABLE : 0)
(Build.VERSION.SDK_INT >= 23 ? PendingIntent.FLAG_IMMUTABLE : 0)
| PendingIntent.FLAG_NO_CREATE);
if (existingIntent == null) {
Log.i(TAG, "cancel: broadcast receiver not found");
Expand Down
2 changes: 1 addition & 1 deletion packages/android_alarm_manager_plus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: android_alarm_manager_plus
description: Flutter plugin for accessing the Android AlarmManager service, and
running Dart code in the background when alarms fire.
version: 1.3.1
version: 1.3.2
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

Expand Down