Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
62 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
packages/firebase_core/firebase_core/example/android/app/google-services.json
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
packages/firebase_core/firebase_core/example/test_driver/config.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:firebase_core/firebase_core.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class TestFirebaseConfig { | ||
static FirebaseOptions get platformOptions { | ||
if (kIsWeb) { | ||
// Web | ||
return const FirebaseOptions( | ||
appId: '1:448618578101:web:0b650370bb29e29cac3efc', | ||
apiKey: 'AIzaSyAgUhHU8wSJgO5MVNy95tMT07NEjzMOfz0', | ||
projectId: 'react-native-firebase-testing', | ||
messagingSenderId: '448618578101', | ||
); | ||
} else if (Platform.isIOS || Platform.isMacOS) { | ||
// iOS and MacOS | ||
return const FirebaseOptions( | ||
appId: '1:448618578101:ios:0b650370bb29e29cac3efc', | ||
apiKey: 'AIzaSyAgUhHU8wSJgO5MVNy95tMT07NEjzMOfz0', | ||
projectId: 'react-native-firebase-testing', | ||
messagingSenderId: '448618578101', | ||
iosBundleId: 'io.flutter.plugins.firebasecoreexample', | ||
); | ||
} else { | ||
// Android | ||
return const FirebaseOptions( | ||
appId: '1:448618578101:android:0446912d5f1476b6ac3efc', | ||
apiKey: 'AIzaSyCuu4tbv9CwwTudNOweMNstzZHIDBhgJxA', | ||
projectId: 'react-native-firebase-testing', | ||
messagingSenderId: '448618578101', | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters