Skip to content

Commit

Permalink
Add Crashlytics and update to android Pie
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkumar66 committed Oct 1, 2018
1 parent 3052576 commit cf08a75
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ keystore.properties
*.iws
# Sandbox stuff

*.properties

22 changes: 18 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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')
Expand All @@ -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;
}
}
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@

<service android:name="com.performancetweaker.app.services.BootService" />

<meta-data
android:name="io.fabric.ApiKey"
android:value="c268f7d3956a5c3b39f56b6f2cf245acaf9b6370" />
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

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;

@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());
PerfTweakerApplication.context = getApplicationContext();
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf08a75

Please sign in to comment.