From cf08a75d46fd9b403ee6e27443d1653881a775b7 Mon Sep 17 00:00:00 2001 From: Rahul kumar Date: Mon, 1 Oct 2018 16:57:58 +0530 Subject: [PATCH] Add Crashlytics and update to android Pie --- .gitignore | 2 ++ app/build.gradle | 22 +++++++++++++++---- app/src/main/AndroidManifest.xml | 3 +++ .../app/PerfTweakerApplication.java | 3 +++ build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 6 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a6a8540..636bff8 100755 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ keystore.properties *.iws # Sandbox stuff +*.properties + diff --git a/app/build.gradle b/app/build.gradle index 4238a14..5b3679a 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,15 +1,25 @@ +buildscript { + repositories { + maven { url 'https://maven.fabric.io/public' } + } + + dependencies { + classpath 'io.fabric.tools:gradle:1.+' + } +} apply plugin: 'com.android.application' +apply plugin: 'io.fabric' android { - compileSdkVersion 27 - buildToolsVersion '27.0.3' + compileSdkVersion 28 + buildToolsVersion '28.0.2' defaultConfig { applicationId "com.performancetweaker.app" versionCode 23 versionName "0.2.8" minSdkVersion 15 - targetSdkVersion 27 + targetSdkVersion 28 } packagingOptions { @@ -44,12 +54,13 @@ repositories { maven { url "https://maven.google.com" } + maven { url 'https://maven.fabric.io/public' } } dependencies { ext { - supportLibVersion = '27.1.1' + supportLibVersion = '28.0.0' } implementation files('libs/RootTools-3.4.jar') @@ -61,4 +72,7 @@ dependencies { implementation 'org.codehaus.jackson:jackson-core-asl:1.9.13' implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.13' implementation 'com.google.code.gson:gson:2.8.0' + implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') { + transitive = true; + } } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5bbed9c..c92e97d 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,6 +42,9 @@ + diff --git a/app/src/main/java/com/performancetweaker/app/PerfTweakerApplication.java b/app/src/main/java/com/performancetweaker/app/PerfTweakerApplication.java index 8657fc9..500bab0 100644 --- a/app/src/main/java/com/performancetweaker/app/PerfTweakerApplication.java +++ b/app/src/main/java/com/performancetweaker/app/PerfTweakerApplication.java @@ -2,6 +2,8 @@ import android.app.Application; import android.content.Context; +import com.crashlytics.android.Crashlytics; +import io.fabric.sdk.android.Fabric; public class PerfTweakerApplication extends Application { private static Context context; @@ -9,6 +11,7 @@ public class PerfTweakerApplication extends Application { @Override public void onCreate() { super.onCreate(); + Fabric.with(this, new Crashlytics()); PerfTweakerApplication.context = getApplicationContext(); } diff --git a/build.gradle b/build.gradle index a4942ba..f1023f5 100755 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { // mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.4' + classpath 'com.android.tools.build:gradle:3.2.0' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 45c59ae..6165686 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Jul 29 23:47:11 IST 2018 +#Fri Sep 28 10:23:33 IST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip