|  | 
| 1 |  | -import 'dart:async'; | 
| 2 |  | - | 
| 3 |  | -import 'firebase_mixin.dart'; | 
| 4 |  | -import 'src/app_options.dart'; | 
| 5 |  | -import 'src/firebase_product_service.dart'; | 
| 6 | 1 | export 'package:tekartik_firebase/src/app_options.dart' | 
| 7 | 2 |     show AppOptions, FirebaseAppOptions, FirebaseAppOptionsMixin; | 
| 8 |  | - | 
| 9 |  | -export 'package:tekartik_firebase/src/firebase.dart' | 
| 10 |  | -    show firebaseAppNameDefault; | 
| 11 | 3 | export 'package:tekartik_firebase/src/firebase_app_product.dart' | 
| 12 | 4 |     show FirebaseAppProductService, FirebaseAppProduct; | 
| 13 | 5 | export 'package:tekartik_firebase/src/firebase_mixin.dart' | 
| 14 | 6 |     show FirebaseProductServiceMixin; | 
| 15 |  | -export 'src/firebase_product_service.dart' show FirebaseProductService; | 
| 16 |  | - | 
| 17 |  | -/// Async interface, needed for flutter. | 
| 18 |  | -abstract class FirebaseAsync { | 
| 19 |  | -  /// Initialize the app with the given options. | 
| 20 |  | -  Future<App> initializeAppAsync({AppOptions? options, String? name}); | 
| 21 |  | - | 
| 22 |  | -  /// Retrieves an existing instance of an App. | 
| 23 |  | -  Future<App> appAsync({String? name}); | 
| 24 |  | -} | 
| 25 |  | - | 
| 26 |  | -/// Firebase interface. | 
| 27 |  | -abstract class Firebase extends FirebaseAsync { | 
| 28 |  | -  /// Initialize the app with the given options. | 
| 29 |  | -  // @deprecated use async version | 
| 30 |  | -  App initializeApp({AppOptions? options, String? name}); | 
| 31 |  | - | 
| 32 |  | -  /// Retrieves an existing instance of an App. | 
| 33 |  | -  App app({String? name}); | 
| 34 |  | - | 
| 35 |  | -  /// True if firebase is local (i.e. FirebaseLocal, not rest, nor node, nor flutter | 
| 36 |  | -  bool get isLocal; | 
| 37 |  | -} | 
| 38 |  | - | 
| 39 |  | -/// This is the new type, App will be deprecated in the future | 
| 40 |  | -typedef App = FirebaseApp; | 
| 41 | 7 | 
 | 
| 42 |  | -/// Firebase app. | 
| 43 |  | -abstract class FirebaseApp { | 
| 44 |  | -  /// The app name | 
| 45 |  | -  String get name; | 
| 46 |  | - | 
| 47 |  | -  /// The app options | 
| 48 |  | -  AppOptions get options; | 
| 49 |  | - | 
| 50 |  | -  /// Deletes this app and frees up system resources. | 
| 51 |  | -  /// | 
| 52 |  | -  /// Once deleted, any plugin functionality using this app instance will throw | 
| 53 |  | -  /// an error. | 
| 54 |  | -  /// | 
| 55 |  | -  /// Deleting the default app is not possible and throws an exception. | 
| 56 |  | -  Future<void> delete(); | 
| 57 |  | - | 
| 58 |  | -  /// Add a service and calls its init method. | 
| 59 |  | -  /// | 
| 60 |  | -  /// Upon delete, close will be called | 
| 61 |  | -  Future<void> addService(FirebaseProductService service); | 
| 62 |  | - | 
| 63 |  | -  /// Get firebase | 
| 64 |  | -  Firebase get firebase; | 
| 65 |  | - | 
| 66 |  | -  /// True if local (nor node, nor rest, nor flutter) | 
| 67 |  | -  bool get isLocal; | 
| 68 |  | - | 
| 69 |  | -  /// True if it has admin credentials | 
| 70 |  | -  bool get hasAdminCredentials; | 
| 71 |  | - | 
| 72 |  | -  /// The latest initialized firebase app instance. | 
| 73 |  | -  static FirebaseApp get instance => | 
| 74 |  | -      FirebaseMixin.latestFirebaseInstanceOrNull!; | 
| 75 |  | -} | 
|  | 8 | +export 'src/firebase.dart' show Firebase, FirebaseAsync; | 
|  | 9 | +export 'src/firebase_app.dart' | 
|  | 10 | +    show firebaseAppNameDefault, FirebaseApp, App, TekartikFirebaseAppExt; | 
|  | 11 | +export 'src/firebase_product_service.dart' show FirebaseProductService; | 
0 commit comments