Skip to content

Commit

Permalink
fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Sep 11, 2024
1 parent 4e2a5be commit bc4f6e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ app.*.map.json
/android/app/release
/android/app/google-services.json
/ios/firebase_app_id_file.json
/lib/firebase_options.dart
/macos/firebase_app_id_file.json

ios/Runner/GoogleService-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_data_connect/firebase_data_connect.dart';
import 'package:firebase_data_connect_example/firebase_options.dart';
import 'package:firebase_data_connect_example/generated/movies.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';

import 'firebase_options.dart';
import 'generation_e2e.dart';
import 'instance_e2e.dart';
import 'query_e2e.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,23 @@
// BSD-style license that can be found in the LICENSE file.

import 'package:firebase_app_check/firebase_app_check.dart';
import 'package:firebase_data_connect_example/login.dart';

import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
// Uncomment this line after running flutterfire configure
// import 'firebase_options.dart';
import 'package:firebase_data_connect/firebase_data_connect.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_data_connect_example/firebase_options.dart';
import 'package:firebase_data_connect_example/login.dart';
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';

import 'generated/movies.dart';

const appCheckEnabled = false;
const configureEmulator = false;

// Required for web. Set equal to `DefaultFirebaseOptions.currentPlatform`
FirebaseOptions? options;

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: options);
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
if (appCheckEnabled) {
await FirebaseAppCheck.instance.activate(
// You can also use a `ReCaptchaEnterpriseProvider` provider instance as an
Expand Down

0 comments on commit bc4f6e8

Please sign in to comment.