Skip to content

Commit

Permalink
feat: add firebase support
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetschwartz committed Mar 5, 2022
1 parent 9aaf831 commit 1b9d878
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'kotlin-android'
id 'jacoco'
}
apply plugin: 'com.google.gms.google-services'

android {
compileSdk 31
Expand Down Expand Up @@ -46,6 +47,12 @@ dependencies {
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:29.0.0')

// Declare the dependency for the Cloud Firestore library
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-firestore-ktx'
}
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
Expand Down
39 changes: 39 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"project_info": {
"project_number": "896605409351",
"project_id": "rps-sdp",
"storage_bucket": "rps-sdp.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:896605409351:android:2e2400835d053e3463a162",
"android_client_info": {
"package_name": "ch.epfl.sweng.rps"
}
},
"oauth_client": [
{
"client_id": "896605409351-a1hlsfr6dkigthpbeul0ug46c8774uoa.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAdcohQUAuqHrgmKyTD8Tx2JOxuOXWBn6o"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "896605409351-a1hlsfr6dkigthpbeul0ug46c8774uoa.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'

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

task clean(type: Delete) {
delete rootProject.buildDir
}

0 comments on commit 1b9d878

Please sign in to comment.