Skip to content

Commit 99407d9

Browse files
authored
Migrate to null-safety (#1029)
* migrate platform interface to null safety * bump dependencies used by platform interface * update cirrus script to use beta channel * change version number used for initial null safety release for platform interface * updated constraints for plugin_platform_interface dependency * remove obsolete todo comment in platform interface tests * fix PendingNotificationRequest class so that title, body and payload are nullable * migrate plugin to null safety and address deprecation warnings for buttons * update entitlements for macos example app to allow for network calls * fix cirrus script to build ios example app on beta channel * fix version mentioned in changelog entry * update version reqs of dependencies used by plugin_platform_interface * update platform interface to go back to null safety prelease of mockito * update cirrus script to use stable channel * change macos image used in cirrus script * restore steps to switch to stable channel when building on macos * bump plugin's dependency on platform interface * update platform interface stable nnbd release * bump plugin for nnbd stable release
1 parent ac730a0 commit 99407d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+623
-628
lines changed

.cirrus.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,24 @@ task:
1111
task:
1212
name: Build iOS example app
1313
osx_instance:
14-
image: catalina-flutter
14+
image: big-sur-xcode-12.4
1515
pub_cache:
1616
folder: ~/.pub-cache
17+
upgrade_script:
18+
- flutter channel stable
19+
- flutter upgrade
1720
build_script:
1821
- cd flutter_local_notifications/example
1922
- flutter build ios --no-codesign --debug
2023

2124
task:
2225
name: Build macOS example app
2326
osx_instance:
24-
image: catalina-flutter
27+
image: big-sur-xcode-12.4
2528
pub_cache:
2629
folder: ~/.pub-cache
2730
upgrade_script:
28-
- flutter channel dev
31+
- flutter channel stable
2932
- flutter upgrade
3033
setup_script:
3134
- flutter config --enable-macos-desktop

analysis_options.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ linter:
77
- always_specify_types
88
- annotate_overrides
99
- avoid_annotating_with_dynamic
10-
- avoid_as
10+
# - avoid_as
1111
- avoid_bool_literals_in_conditional_expressions
1212
- avoid_catches_without_on_clauses
1313
- avoid_catching_errors
@@ -128,7 +128,7 @@ linter:
128128
- slash_for_doc_comments
129129
- sort_child_properties_last
130130
- sort_constructors_first
131-
- sort_pub_dependencies
131+
# - sort_pub_dependencies
132132
- sort_unnamed_constructors_first
133133
- test_types_in_equals
134134
- throw_in_finally

flutter_local_notifications/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# [5.0.0]
2+
3+
* **Breaking change** migrated to null safety. Some arguments that were formerly null (e.g. some boolean values) are now non-nullable with a default value that should retain the old behaviour
4+
15
# [4.0.1+2]
26

37
* [iOS/macOS] fixed issue where not requesting any permissions (i.e. all the boolean flags were set to false) would still cause a permissions prompt to appear. Thanks to the PR from [Andrey Parvatkin](https://github.com/badver)

flutter_local_notifications/example/analysis_options.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ linter:
77
- always_specify_types
88
- annotate_overrides
99
- avoid_annotating_with_dynamic
10-
- avoid_as
10+
# - avoid_as
1111
- avoid_bool_literals_in_conditional_expressions
1212
- avoid_catches_without_on_clauses
1313
- avoid_catching_errors
@@ -128,7 +128,7 @@ linter:
128128
- slash_for_doc_comments
129129
- sort_child_properties_last
130130
- sort_constructors_first
131-
- sort_pub_dependencies
131+
# - sort_pub_dependencies
132132
- sort_unnamed_constructors_first
133133
- test_types_in_equals
134134
- throw_in_finally

flutter_local_notifications/example/integration_test/flutter_local_notifications_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @dart = 2.9
2+
13
import 'dart:io';
24

35
import 'package:flutter_local_notifications/flutter_local_notifications.dart';

flutter_local_notifications/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)