Skip to content

Commit c8f8072

Browse files
committed
Added firebase to the app
1 parent 1321874 commit c8f8072

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

android/app/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,21 @@ if (flutterVersionName == null) {
2222
}
2323

2424
apply plugin: 'com.android.application'
25+
apply plugin: 'com.google.gms.google-services'
2526
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2627

28+
dependencies {
29+
// Import the Firebase BoM
30+
implementation platform('com.google.firebase:firebase-bom:26.1.1')
31+
32+
// Add the dependency for the Firebase SDK for Google Analytics
33+
// When using the BoM, don't specify versions in Firebase dependencies
34+
implementation 'com.google.firebase:firebase-analytics'
35+
36+
// Add the dependencies for any other desired Firebase products
37+
// https://firebase.google.com/docs/android/setup#available-libraries
38+
}
39+
2740
def keystoreProperties = new Properties()
2841
def keystorePropertiesFile = rootProject.file('key.properties')
2942
if (keystorePropertiesFile.exists()) {

android/app/google-services.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"project_info": {
3+
"project_number": "1012545476549",
4+
"firebase_url": "https://malaysia-waktu-solat.firebaseio.com",
5+
"project_id": "malaysia-waktu-solat",
6+
"storage_bucket": "malaysia-waktu-solat.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:1012545476549:android:631d6aab3ef111555a9dac",
12+
"android_client_info": {
13+
"package_name": "live.iqfareez.waktusolatmalaysia"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "1012545476549-jcmsjvts9jfqimaa37di7lvhg91e7gh2.apps.googleusercontent.com",
19+
"client_type": 3
20+
}
21+
],
22+
"api_key": [
23+
{
24+
"current_key": "AIzaSyC508-2dTQmgoh-FpGY0O9AU0Xb5wogtgw"
25+
}
26+
],
27+
"services": {
28+
"appinvite_service": {
29+
"other_platform_oauth_client": [
30+
{
31+
"client_id": "1012545476549-jcmsjvts9jfqimaa37di7lvhg91e7gh2.apps.googleusercontent.com",
32+
"client_type": 3
33+
}
34+
]
35+
}
36+
}
37+
}
38+
],
39+
"configuration_version": "1"
40+
}

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66

77
dependencies {
88
classpath 'com.android.tools.build:gradle:3.5.0'
9+
classpath 'com.google.gms:google-services:4.3.4'
910
}
1011
}
1112

0 commit comments

Comments
 (0)