Skip to content

Commit e171f5b

Browse files
add pragma entry point (#1069)
* add pragma entry point added entry point to resolve 3.3.0 lookup issue * bump version Co-authored-by: Miguel Beltran <[email protected]>
1 parent f33d5db commit e171f5b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/android_alarm_manager_plus/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.7
2+
3+
- Add pragma('vm:entry-point') to alarm manager callback to avoid tree shaking.
4+
15
## 2.0.6+1
26

37
- Add issue_tracker link.

packages/android_alarm_manager_plus/lib/android_alarm_manager_plus.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const String _backgroundName =
1818
// from the native portion of the plugin. This allows for the plugin to perform
1919
// any necessary processing in Dart (e.g., populating a custom object) before
2020
// invoking the provided callback.
21+
@pragma('vm:entry-point')
2122
void _alarmManagerCallbackDispatcher() {
2223
// Initialize state necessary for MethodChannels.
2324
WidgetsFlutterBinding.ensureInitialized();

packages/android_alarm_manager_plus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: android_alarm_manager_plus
22
description: Flutter plugin for accessing the Android AlarmManager service, and
33
running Dart code in the background when alarms fire.
4-
version: 2.0.6+1
4+
version: 2.0.7
55
homepage: https://plus.fluttercommunity.dev/
66
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/
77
issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/android_alarm_manager_plus

0 commit comments

Comments
 (0)