Add Firebase required libraries and configuration to Bitsy and enable Crashlytics.

master
Severiano Jaramillo 2018-12-14 15:23:12 -06:00
parent 47e122e46c
commit a2c2c315b9
4 changed files with 77 additions and 1 deletions

View File

@ -3,6 +3,8 @@ apply plugin: "androidx.navigation.safeargs"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
@ -63,6 +65,10 @@ dependencies {
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
//Firebase
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-crash:16.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
// Others
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
implementation 'org.bitcoinj:bitcoinj-core:0.14.3'

55
app/google-services.json Normal file
View File

@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "644483315839",
"firebase_url": "https://bitsy-wallet.firebaseio.com",
"project_id": "bitsy-wallet",
"storage_bucket": "bitsy-wallet.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:644483315839:android:4984a6b363726b70",
"android_client_info": {
"package_name": "cy.agorise.bitsybitshareswallet"
}
},
"oauth_client": [
{
"client_id": "644483315839-q813epbu919ise2peubfeagbi0hcuphc.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "cy.agorise.bitsybitshareswallet",
"certificate_hash": "0807b8ec7b1e00822924a808a6ad84761cd2691a"
}
},
{
"client_id": "644483315839-l19le5quoa3a96dernh2m6v3e76rqd8p.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyB5N3o3CRWyiWyFw6zDprWYWIt2d1AI6Ns"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "644483315839-l19le5quoa3a96dernh2m6v3e76rqd8p.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}

View File

@ -23,4 +23,9 @@
-dontwarn sun.misc.Unsafe
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn org.bitcoinj.store**
-dontwarn org.slf4j.**
-dontwarn org.slf4j.**
# Firabase Crashlytics
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception

View File

@ -5,11 +5,17 @@ buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha08"
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.27.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@ -20,6 +26,10 @@ allprojects {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
}
}