-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(messaging)!: migrate to NNBD #4909
Conversation
@@ -5,28 +5,28 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f | |||
version: 8.0.0-dev.14 | |||
|
|||
environment: | |||
sdk: ">=2.12.0-0 <3.0.0" | |||
sdk: '>=2.12.0-133.7.beta <3.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migration tool applied these versions; can someone confirm what we're sticking with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine
@@ -4,19 +4,19 @@ version: 1.0.0-dev.10 | |||
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging/firebase_messaging_platform_interface | |||
|
|||
environment: | |||
sdk: ">=2.12.0-0 <3.0.0" | |||
sdk: '>=2.12.0-133.7.beta <3.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migration tool applied this; can someone confirm versions?
@@ -4,27 +4,27 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f | |||
version: 0.1.0-dev.5 | |||
|
|||
environment: | |||
sdk: ">=2.12.0-0 <3.0.0" | |||
sdk: '>=2.12.0-133.7.beta <3.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO confirm version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some minor changes
packages/firebase_messaging/firebase_messaging/example/lib/main.dart
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging/example/lib/permissions.dart
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging/lib/src/messaging.dart
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging/lib/src/messaging.dart
Outdated
Show resolved
Hide resolved
@@ -5,28 +5,28 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f | |||
version: 8.0.0-dev.14 | |||
|
|||
environment: | |||
sdk: ">=2.12.0-0 <3.0.0" | |||
sdk: '>=2.12.0-133.7.beta <3.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine
...g/firebase_messaging_platform_interface/lib/src/method_channel/method_channel_messaging.dart
Show resolved
Hide resolved
...g/firebase_messaging_platform_interface/lib/src/method_channel/method_channel_messaging.dart
Outdated
Show resolved
Hide resolved
...g/firebase_messaging_platform_interface/lib/src/method_channel/method_channel_messaging.dart
Outdated
Show resolved
Hide resolved
...se_messaging_platform_interface/test/method_channel_tests/method_channel_messaging_test.dart
Outdated
Show resolved
Hide resolved
...ging_platform_interface/test/platform_interface_tests/platform_interface_messaging_test.dart
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging/example/pubspec.yaml
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging/example/pubspec.yaml
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging_web/pubspec.yaml
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging_web/pubspec.yaml
Outdated
Show resolved
Hide resolved
packages/firebase_messaging/firebase_messaging_web/pubspec.yaml
Outdated
Show resolved
Hide resolved
….yaml Co-authored-by: Mike Diarmid <[email protected]>
….yaml Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
…ace/pubspec.yaml Co-authored-by: Mike Diarmid <[email protected]>
…ace/pubspec.yaml Co-authored-by: Mike Diarmid <[email protected]>
…ace/pubspec.yaml Co-authored-by: Mike Diarmid <[email protected]>
…ace/pubspec.yaml Co-authored-by: Mike Diarmid <[email protected]>
…ace/pubspec.yaml Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Co-authored-by: Mike Diarmid <[email protected]>
Description
This PR converts the
firebase_messaging
plugin to non-null.This PR also removes a number of deprecations:
iOSNotificationSettings
has been removed.requestNotificationPermissions
- userequestPermission
instead.autoInitEnabled()
- usesetAutoInitEnabled()
instead.deleteInstanceID()
- usedeleteToken()
instead.FirebaseMessaging()
- useFirebaseMessaging.instance
instead.Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?