File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
packages/firebase_core/firebase_core_platform_interface Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ library firebase_core_platform_interface;
8
8
import 'dart:async' ;
9
9
10
10
import 'package:flutter/cupertino.dart' ;
11
+ import 'package:flutter/foundation.dart' ;
11
12
import 'package:flutter/services.dart' ;
12
13
import 'package:meta/meta.dart' show required;
13
14
import 'package:plugin_platform_interface/plugin_platform_interface.dart' ;
14
15
import 'package:quiver/core.dart' ;
15
- import 'package:universal_platform/universal_platform.dart' ;
16
16
17
17
part 'src/firebase_core_exceptions.dart' ;
18
18
Original file line number Diff line number Diff line change @@ -37,19 +37,19 @@ FirebaseException noDefaultAppInitialization() {
37
37
FirebaseException coreNotInitialized () {
38
38
String message;
39
39
40
- if (UniversalPlatform .isWeb ) {
40
+ if (kIsWeb ) {
41
41
message =
42
42
'''Firebase has not been correctly initialized. Have you added the Firebase import scripts to your index.html file?
43
43
44
44
View the Web Installation documentation for more information: https://firebaseextended.github.io/flutterfire/docs/installation/web
45
45
''' ;
46
- } else if (UniversalPlatform .isAndroid ) {
46
+ } else if (defaultTargetPlatform == TargetPlatform .android ) {
47
47
message =
48
48
'''Firebase has not been correctly initialized. Have you added the "google-services.json" file to the project?
49
49
50
50
View the Android Installation documentation for more information: https://firebaseextended.github.io/flutterfire/docs/installation/android
51
51
''' ;
52
- } else if (UniversalPlatform .isIOS ) {
52
+ } else if (defaultTargetPlatform == TargetPlatform .iOS ) {
53
53
message =
54
54
'''Firebase has not been correctly initialized. Have you added the "GoogleService-Info.plist" file to the project?
55
55
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ dependencies:
11
11
meta : ^1.1.8
12
12
plugin_platform_interface : ^1.0.2
13
13
quiver : " >=2.0.0 <3.0.0"
14
- universal_platform : ^0.1.3
15
14
16
15
dev_dependencies :
17
16
pedantic : ^1.8.0
You can’t perform that action at this time.
0 commit comments