diff --git a/app/build.gradle b/app/build.gradle index 326fae5..0631e39 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/google-services.json b/app/google-services.json new file mode 100644 index 0000000..f94b4ca --- /dev/null +++ b/app/google-services.json @@ -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" +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f00be0a..fa55e23 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -23,4 +23,9 @@ -dontwarn sun.misc.Unsafe -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement -dontwarn org.bitcoinj.store** --dontwarn org.slf4j.** \ No newline at end of file +-dontwarn org.slf4j.** + +# Firabase Crashlytics +-keepattributes *Annotation* +-keepattributes SourceFile,LineNumberTable +-keep public class * extends java.lang.Exception \ No newline at end of file diff --git a/build.gradle b/build.gradle index c22b77e..08b192e 100644 --- a/build.gradle +++ b/build.gradle @@ -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/' + } + } }