|
| 1 | +// Copyright 2022, the Chromium project authors. Please see the AUTHORS file |
| 2 | +// for details. All rights reserved. Use of this source code is governed by a |
| 3 | +// BSD-style license that can be found in the LICENSE file. |
| 4 | + |
| 5 | +// File generated by FlutterFire CLI. |
| 6 | +// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members |
| 7 | +import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; |
| 8 | +import 'package:flutter/foundation.dart' |
| 9 | + show defaultTargetPlatform, TargetPlatform; |
| 10 | + |
| 11 | +/// Default [FirebaseOptions] for use with your Firebase apps. |
| 12 | +/// |
| 13 | +/// Example: |
| 14 | +/// ```dart |
| 15 | +/// import 'firebase_options.dart'; |
| 16 | +/// // ... |
| 17 | +/// await Firebase.initializeApp( |
| 18 | +/// options: DefaultFirebaseOptions.currentPlatform, |
| 19 | +/// ); |
| 20 | +/// ``` |
| 21 | +class DefaultFirebaseOptions { |
| 22 | + static FirebaseOptions get currentPlatform { |
| 23 | + switch (defaultTargetPlatform) { |
| 24 | + case TargetPlatform.linux: |
| 25 | + // Note: To find out if you are using the Tizen platform, refer to the link below. |
| 26 | + // https://github.com/flutter-tizen/flutter-tizen/issues/482#issuecomment-1441139704 |
| 27 | + return tizen; |
| 28 | + default: |
| 29 | + throw UnsupportedError( |
| 30 | + 'DefaultFirebaseOptions are not supported for this platform.', |
| 31 | + ); |
| 32 | + } |
| 33 | + } |
| 34 | + |
| 35 | + // For firebase_storage test |
| 36 | + static FirebaseOptions get baseOptions { |
| 37 | + return FirebaseOptions( |
| 38 | + apiKey: 'PLACEHOLDER', |
| 39 | + appId: 'PLACEHOLDER', |
| 40 | + messagingSenderId: 'PLACEHOLDER', |
| 41 | + projectId: 'PLACEHOLDER', |
| 42 | + databaseURL: 'PLACEHOLDER', |
| 43 | + storageBucket: 'PLACEHOLDER', |
| 44 | + ); |
| 45 | + } |
| 46 | + |
| 47 | + static const FirebaseOptions tizen = FirebaseOptions( |
| 48 | + apiKey: 'PLACEHOLDER', |
| 49 | + appId: 'PLACEHOLDER', |
| 50 | + messagingSenderId: 'PLACEHOLDER', |
| 51 | + projectId: 'PLACEHOLDER', |
| 52 | + databaseURL: 'PLACEHOLDER', |
| 53 | + storageBucket: 'PLACEHOLDER', |
| 54 | + ); |
| 55 | + |
| 56 | + static String get emulatorHost { |
| 57 | + return 'PLACEHOLDER'; |
| 58 | + } |
| 59 | +} |
0 commit comments