Skip to content

Commit

Permalink
updated firebase_options
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSena19 committed May 31, 2023
1 parent 2d44e50 commit 2600717
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 11 deletions.
7 changes: 7 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
{
"client_id": "476872845583-e2lol0qd425pu2ntubp3u4q9qr264cf8.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "476872845583-okgcgeu1phos03r6c3ombdtskjdp91s4.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.example.healthWatch"
}
}
]
}
Expand Down
30 changes: 22 additions & 8 deletions lib/firebase_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,15 @@ import 'package:flutter/foundation.dart'
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for web - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
return web;
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for macos - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
return macos;
case TargetPlatform.windows:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for windows - '
Expand All @@ -49,6 +43,16 @@ class DefaultFirebaseOptions {
}
}

static const FirebaseOptions web = FirebaseOptions(
apiKey: 'AIzaSyDfuU_CldU9ebthY164OIrTcZzB1ZwVE48',
appId: '1:476872845583:web:dbaf30fdcc0e2f75e6767a',
messagingSenderId: '476872845583',
projectId: 'health-watch-4e3db',
authDomain: 'health-watch-4e3db.firebaseapp.com',
storageBucket: 'health-watch-4e3db.appspot.com',
measurementId: 'G-9K1YR45422',
);

static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyAvUBkzW_l0tOMhviGf9rvyqkffEkUQlxQ',
appId: '1:476872845583:android:965dbf56342b37aee6767a',
Expand All @@ -66,4 +70,14 @@ class DefaultFirebaseOptions {
iosClientId: '476872845583-okgcgeu1phos03r6c3ombdtskjdp91s4.apps.googleusercontent.com',
iosBundleId: 'com.example.healthWatch',
);

static const FirebaseOptions macos = FirebaseOptions(
apiKey: 'AIzaSyDL7s7ZnNGvUusxhPwTgSuaMuBziDVrTpQ',
appId: '1:476872845583:ios:876205fe24881806e6767a',
messagingSenderId: '476872845583',
projectId: 'health-watch-4e3db',
storageBucket: 'health-watch-4e3db.appspot.com',
iosClientId: '476872845583-okgcgeu1phos03r6c3ombdtskjdp91s4.apps.googleusercontent.com',
iosBundleId: 'com.example.healthWatch',
);
}
5 changes: 2 additions & 3 deletions lib/screens/login_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:email_validator/email_validator.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:health_watch/utilities/appbar_widget.dart';
import 'package:health_watch/utilities/show_error_dialog.dart';
import 'package:health_watch/constants/routes.dart';

Expand Down Expand Up @@ -40,9 +41,7 @@ class _LoginScreenState extends State<LoginScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.lightBlueAccent,
),
appBar: appbarWidget(''),
body: Padding(
padding: const EdgeInsets.all(10),
child: ListView(
Expand Down
34 changes: 34 additions & 0 deletions macos/Runner/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http:https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>476872845583-okgcgeu1phos03r6c3ombdtskjdp91s4.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.476872845583-okgcgeu1phos03r6c3ombdtskjdp91s4</string>
<key>API_KEY</key>
<string>AIzaSyDL7s7ZnNGvUusxhPwTgSuaMuBziDVrTpQ</string>
<key>GCM_SENDER_ID</key>
<string>476872845583</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.example.healthWatch</string>
<key>PROJECT_ID</key>
<string>health-watch-4e3db</string>
<key>STORAGE_BUCKET</key>
<string>health-watch-4e3db.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:476872845583:ios:876205fe24881806e6767a</string>
</dict>
</plist>
7 changes: 7 additions & 0 deletions macos/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:476872845583:ios:876205fe24881806e6767a",
"FIREBASE_PROJECT_ID": "health-watch-4e3db",
"GCM_SENDER_ID": "476872845583"
}

3 comments on commit 2600717

@vercel
Copy link

@vercel vercel bot commented on 2600717 May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

health-watch – ./lib

health-watch-manuelsena19.vercel.app
health-watch.vercel.app
health-watch-git-main-manuelsena19.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2600717 May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2600717 May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.