Skip to content

Commit b8f2886

Browse files
committed
Integrasikan firebase auth untuk platform Android
1 parent 0a15940 commit b8f2886

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

android/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ flutter {
5757
dependencies {
5858
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
5959
}
60+
61+
apply plugin: 'com.google.gms.google-services'

android/app/google-services.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"project_info": {
3+
"project_number": "396467899033",
4+
"firebase_url": "https://flutter-all-in-one-testing.firebaseio.com",
5+
"project_id": "flutter-all-in-one-testing",
6+
"storage_bucket": "flutter-all-in-one-testing.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:396467899033:android:293efdef4ae94f7f664608",
12+
"android_client_info": {
13+
"package_name": "id.net.bengkelrobot.flutter_muzik_app"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "396467899033-f369devr0bkl7mretk44m7u2gouv12sj.apps.googleusercontent.com",
19+
"client_type": 1,
20+
"android_info": {
21+
"package_name": "id.net.bengkelrobot.flutter_muzik_app",
22+
"certificate_hash": "29065073dc5849930854978a96f9f09f783760a3"
23+
}
24+
},
25+
{
26+
"client_id": "396467899033-1hj1k9v577s64qe256rfdtnl38a93eg2.apps.googleusercontent.com",
27+
"client_type": 3
28+
}
29+
],
30+
"api_key": [
31+
{
32+
"current_key": "AIzaSyCmBKlnBuFW9vzUEEltHa0vIGnKFdymd3E"
33+
}
34+
],
35+
"services": {
36+
"appinvite_service": {
37+
"other_platform_oauth_client": [
38+
{
39+
"client_id": "396467899033-1hj1k9v577s64qe256rfdtnl38a93eg2.apps.googleusercontent.com",
40+
"client_type": 3
41+
},
42+
{
43+
"client_id": "396467899033-5no88lnqfc0bcmkrafoicnaa98tor995.apps.googleusercontent.com",
44+
"client_type": 2,
45+
"ios_info": {
46+
"bundle_id": "com.example.flutterFirebaseStorage"
47+
}
48+
}
49+
]
50+
}
51+
}
52+
}
53+
],
54+
"configuration_version": "1"
55+
}

android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.4.32'
33
repositories {
44
google()
55
jcenter()
@@ -8,6 +8,7 @@ buildscript {
88
dependencies {
99
classpath 'com.android.tools.build:gradle:4.1.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11+
classpath 'com.google.gms:google-services:4.3.5'
1112
}
1213
}
1314

0 commit comments

Comments
 (0)