Skip to content
Permalink
Browse files

Migrage to Firebase Crashlytics

  • Loading branch information...
n8ebel committed Nov 3, 2017
1 parent d79c255 commit 80bb37b6c84e38e2a3bd3bef1cb005735b61d750
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'

android {
@@ -32,6 +33,7 @@ dependencies {
implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
transitive = true;
}
implementation 'com.google.firebase:firebase-core:11.4.2'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
@@ -0,0 +1,42 @@
{
"project_info": {
"project_number": "YOUR_PROJECT_NUMBER_HERE",
"firebase_url": "YOUR_FIREBASE_URL_HERE",
"project_id": "YOUR_PROJECT_ID_HERE",
"storage_bucket": "YOUR_BUCKET_NAME"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "YOUR_ID_HERE",
"android_client_info": {
"package_name": "YOUR_PACKAGE_NAME"
}
},
"oauth_client": [
{
"client_id": "YOUR_CLIENT_ID_HERE",
"client_type": 3
}
],
"api_key": [
{
"current_key": "YOUR_KEY_HERE"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
@@ -12,9 +12,6 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
>
<meta-data
android:name="io.fabric.ApiKey"
android:value="YOUR_KEY_GOES_HERE" />

<activity
android:name=".MainActivity"
@@ -6,8 +6,8 @@ import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuItem
import com.crashlytics.android.Crashlytics
import com.crashlytics.android.core.CrashlyticsCore
import io.fabric.sdk.android.Fabric

import kotlinx.android.synthetic.main.activity_main.*


@@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity() {
Fabric.with(this, Crashlytics())

fab.setOnClickListener { view ->
Crashlytics.getInstance().crash()
throw RuntimeException("test")
}
}

@@ -8,10 +8,12 @@ buildscript {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
classpath 'io.fabric.tools:gradle:1.24.4'
classpath 'com.android.tools.build:gradle:3.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

classpath 'com.google.gms:google-services:3.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
@@ -21,7 +23,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.google.com/' }
}
}

1 comment on commit 80bb37b

@ct-nagrajpilla

This comment has been minimized.

Copy link

commented on 80bb37b Feb 7, 2019

Hi Thanks for the guidline sample app
i am getting the following issue can you please suggest where I did worng in my project
API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.

Please sign in to comment.
You can’t perform that action at this time.