Skip to content

Commit

Permalink
Setting Firebase settings 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaamirkhan committed Feb 8, 2020
1 parent a11ffba commit bf0bf77
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 29
Expand All @@ -25,6 +26,8 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-ml-vision:24.0.1'
implementation 'com.google.firebase:firebase-ml-vision-face-model:19.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Expand Down
40 changes: 40 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"project_info": {
"project_number": "494767165341",
"firebase_url": "https://mlkitdemo-asmaamir.firebaseio.com",
"project_id": "mlkitdemo-asmaamir",
"storage_bucket": "mlkitdemo-asmaamir.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:494767165341:android:d481987a493d1f1adda974",
"android_client_info": {
"package_name": "com.asmaamir.mlkitdemo"
}
},
"oauth_client": [
{
"client_id": "494767165341-0da5dk4nd7t7md0usj4qgt7f0a0j2atj.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAWPFZqDwGY0v1cGXveL0lkBtyLodMfEy8"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "494767165341-0da5dk4nd7t7md0usj4qgt7f0a0j2atj.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.firebase.ml.vision.DEPENDENCIES"
android:value="face" />
</application>

</manifest>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0-alpha09"

classpath 'com.google.gms:google-services:4.3.3' // Google Services plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down

0 comments on commit bf0bf77

Please sign in to comment.