diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 17e5c165b..000000000 --- a/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 20d848a83..5694b17a3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -34,6 +34,8 @@ android { jvmTarget = '1.8' } } +apply plugin: 'com.android.application' +apply plugin: 'com.google.gms.google-services' dependencies { @@ -47,6 +49,8 @@ dependencies { androidTestImplementation 'androidx.test:runner:1.4.0' androidTestImplementation 'androidx.test:rules:1.4.0' androidTestImplementation 'androidx.test.espresso:espresso-intents:3.4.0' + implementation platform('com.google.firebase:firebase-bom:29.1.0') + implementation 'com.google.firebase:firebase-analytics-ktx' } tasks.withType(Test) { diff --git a/app/google-services.json b/app/google-services.json new file mode 100644 index 000000000..f21f26f92 --- /dev/null +++ b/app/google-services.json @@ -0,0 +1,39 @@ +{ + "project_info": { + "project_number": "7687769601", + "project_id": "vibester-sdp", + "storage_bucket": "vibester-sdp.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:7687769601:android:28d7dc817a81937c417a00", + "android_client_info": { + "package_name": "ch.sdp.vibester" + } + }, + "oauth_client": [ + { + "client_id": "7687769601-qiqrp6kt48v89ub76k9lkpefh9ls36ha.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyBENfKsqZt2RM98Gfqvs9uKbrWDxUc2XCE" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "7687769601-qiqrp6kt48v89ub76k9lkpefh9ls36ha.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0ccd671ec..0bfff5d94 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,24 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. +buildscript { + repositories { + google() // Google's Maven repository + } + dependencies { + classpath 'com.google.gms:google-services:4.3.10' + } +} plugins { id 'com.android.application' version '7.1.2' apply false id 'com.android.library' version '7.1.2' apply false id 'org.jetbrains.kotlin.android' version '1.6.10' apply false } +allprojects { + repositories { + google() // Google's Maven repository + } +} + task clean(type: Delete) { delete rootProject.buildDir } \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index c4fe2f4d6..62cda408f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,10 +6,11 @@ pluginManagement { } } dependencyResolutionManagement { - repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) repositories { google() mavenCentral() + maven { url 'https://jitpack.io' } } } rootProject.name = "Vibester"