Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ServiceApp/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<data android:scheme="package"/>
</intent-filter>
</receiver>
<meta-data
android:name="com.crashlytics.ApiKey"
android:value="5ee4471ba6e8cd8858006c8166469bba33d64b2f" />
</application>

</manifest>
4 changes: 4 additions & 0 deletions ServiceApp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

dependencies {

Expand All @@ -17,6 +18,9 @@ dependencies {
compile project(':AidlLib')
compile project(':dependencyLibs:Core')
compile project(':dependencyLibs:usb-serial-for-android:UsbSerialLibrary')
compile('com.crashlytics.sdk.android:crashlytics:2.2.1@aar') {
transitive = true;
}
}

android {
Expand Down
3 changes: 3 additions & 0 deletions ServiceApp/crashlytics.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public.
#Thu Feb 26 09:30:45 PST 2015
apiSecret=1e3fee5fb7dd107cb1f6a2eb37586cd606dd58700d834765920eb79300ad76c3
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import android.app.Application;

import com.crashlytics.android.Crashlytics;
import io.fabric.sdk.android.Fabric;
import org.droidplanner.services.android.utils.analytics.GAUtils;
import org.droidplanner.services.android.utils.file.IO.ExceptionWriter;

Expand All @@ -10,6 +12,7 @@ public class DroidPlannerServicesApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());

final ExceptionWriter exceptionWriter = new ExceptionWriter(getApplicationContext());
final Thread.UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler();
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}

dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
classpath 'io.fabric.tools:gradle:1.+'
}
}

allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
}