Skip to content

Commit

Permalink
add firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ivzb committed Feb 23, 2020
1 parent e593702 commit d18a179
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'androidx.navigation.safeargs.kotlin'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion rootProject.compileSdkVersion
Expand All @@ -21,6 +22,7 @@ android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -78,6 +80,9 @@ dependencies {
implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion"
annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.glideVersion"

// Firebase
implementation "com.google.firebase:firebase-analytics:$rootProject.firebaseVersion"

// Utils
implementation "org.jsoup:jsoup:$rootProject.jsoupVersion"
}
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": "674812619902",
"firebase_url": "https://arch-76b02.firebaseio.com",
"project_id": "arch-76b02",
"storage_bucket": "arch-76b02.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:674812619902:android:739e263cac53539949fc2f",
"android_client_info": {
"package_name": "com.ivzb.arch"
}
},
"oauth_client": [
{
"client_id": "674812619902-higje72cjdis9rd689j86ggluq4laa9o.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDMNXoaub9twC6L09XLRmRCYYT0-5VND0M"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "674812619902-higje72cjdis9rd689j86ggluq4laa9o.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<data android:mimeType="text/plain" />
</intent-filter>

<intent-filter android:label="@string/app_name">
<intent-filter android:label="@string/app_description">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<resources>
<string name="app_name">Arch - Fast, secure notes and links</string>
<string name="app_name">Arch</string>
<string name="app_description">Arch - Fast, secure notes and links</string>
<string name="version_name">Version %s</string>

<string name="title_home">Arch</string>
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ buildscript {
espressoVersion = '3.1.1'
glideVersion = "4.6.1"
jsoupVersion = "1.11.3"
googleServicesVersion = "4.3.3"
firebaseVersion = "17.2.2"
}

repositories {
Expand All @@ -41,6 +43,7 @@ buildscript {
classpath "com.android.tools.build:gradle:$gradleVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "com.google.gms:google-services:$googleServicesVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down

0 comments on commit d18a179

Please sign in to comment.