v1.0.9
This commit is contained in:
parent
d086fc1f36
commit
895fe0d022
@ -1,5 +1,8 @@
|
|||||||
Workout Test and Diet 4 You Common Util Functions
|
Workout Test and Diet 4 You Common Util Functions
|
||||||
|
|
||||||
|
Version 1.0.9
|
||||||
|
Firebase web config
|
||||||
|
|
||||||
Version 1.0.8
|
Version 1.0.8
|
||||||
mombership model error fix
|
mombership model error fix
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import 'dart:math' as math;
|
import 'dart:math' as math;
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:crypto/crypto.dart';
|
import 'package:crypto/crypto.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:workouttest_util/model/cache.dart';
|
import 'package:workouttest_util/model/cache.dart';
|
||||||
import 'package:workouttest_util/util/logging.dart' as logger;
|
import 'package:workouttest_util/util/logging.dart' as logger;
|
||||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||||
@ -34,7 +35,21 @@ class FirebaseApi with logger.Logging {
|
|||||||
Future<void> initializeFlutterFire() async {
|
Future<void> initializeFlutterFire() async {
|
||||||
try {
|
try {
|
||||||
// Wait for Firebase to initialize and set `_initialized` state to true
|
// Wait for Firebase to initialize and set `_initialized` state to true
|
||||||
|
if (kIsWeb) {
|
||||||
|
await Firebase.initializeApp(
|
||||||
|
options: const FirebaseOptions(
|
||||||
|
apiKey: "AIzaSyBLn7Bz73Z1hB-OhqphBDsskOyGmpI7J8E",
|
||||||
|
authDomain: "diet4you-cb540.firebaseapp.com",
|
||||||
|
projectId: "diet4you-cb540",
|
||||||
|
storageBucket: "diet4you-cb540.appspot.com",
|
||||||
|
messagingSenderId: "534189506381",
|
||||||
|
appId: "1:534189506381:web:e885436c9be71ab4998104",
|
||||||
|
measurementId: "G-9YY4B98J99"
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
await Firebase.initializeApp();
|
await Firebase.initializeApp();
|
||||||
|
}
|
||||||
|
|
||||||
appleSignInAvailable = await SignInWithApple.isAvailable();
|
appleSignInAvailable = await SignInWithApple.isAvailable();
|
||||||
|
|
||||||
|
@ -13,9 +13,9 @@ dependencies:
|
|||||||
|
|
||||||
crypto: ^3.0.2
|
crypto: ^3.0.2
|
||||||
|
|
||||||
firebase_auth: ^4.2.5
|
firebase_auth: ^4.2.9
|
||||||
firebase_analytics: ^10.1.0
|
firebase_analytics: ^10.1.0
|
||||||
firebase_core: ^2.5.0
|
firebase_core: ^2.7.0
|
||||||
firebase_messaging: ^14.2.1
|
firebase_messaging: ^14.2.1
|
||||||
firebase_remote_config: ^3.0.9
|
firebase_remote_config: ^3.0.9
|
||||||
flutter_facebook_auth: ^5.0.7
|
flutter_facebook_auth: ^5.0.7
|
||||||
|
Loading…
Reference in New Issue
Block a user