-
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
chore: Migrate firebase_core to nnbd #4656
Conversation
Future<FirebaseAppPlatform> initializeApp({ | ||
String? name, | ||
FirebaseOptions? options, | ||
}) async { | ||
return FakeFirebaseAppPlatform(); | ||
} | ||
|
||
@override | ||
FirebaseAppPlatform app([String name = defaultFirebaseAppName]) { | ||
return null; | ||
return FakeFirebaseAppPlatform(); | ||
} | ||
|
||
@override | ||
List<FirebaseAppPlatform> get apps => null; | ||
List<FirebaseAppPlatform> get apps => []; |
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.
These changes were necessary to make the tests compile. Afaik this doesn't matter but it'd be worth double checking that this doesn't change the behaviour of the related tests
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.
This change looks ok to me
f3687e3
to
a47a75b
Compare
40da1c4
to
03f904c
Compare
packages/firebase_core/firebase_core_platform_interface/lib/src/firebase_options.dart
Outdated
Show resolved
Hide resolved
packages/firebase_core/firebase_core_platform_interface/lib/src/firebase_options.dart
Outdated
Show resolved
Hide resolved
...base_core_platform_interface/test/method_channel_tests/method_channel_firebase_app_test.dart
Show resolved
Hide resolved
fix tests
Description
This migrates
firebase_core
,firebase_core_platform_interface
andfirebase_core_web
to non-nullable type (but notfirebase_core/example
)Related Issues
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?