Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 6e97d71

Browse files
committed
Fixing crashlytics and NewRelic integrations. Newrelic is disabled by default, and crashlytics disabled by doing simpleDebug/simpleRelease build
1 parent 9a32a88 commit 6e97d71

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

android/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'crashlytics'
3-
// apply plugin : 'newrelic'
3+
apply plugin: 'newrelic'
44

55
android {
66
compileSdkVersion 21
@@ -59,7 +59,7 @@ dependencies {
5959
compile 'com.google.android.gms:play-services-plus:6.5.+'
6060
compile 'com.google.android.gms:play-services-identity:6.5.+'
6161

62-
// compile 'com.crashlytics.android:crashlytics:1.+'
62+
compile 'com.crashlytics.android:crashlytics:1.+'
6363

6464
compile 'com.android.support:support-v4:21.0.3'
6565
compile 'com.android.support:appcompat-v7:21.0.3'
@@ -85,7 +85,7 @@ dependencies {
8585
compile 'org.apache.commons:commons-lang3:3.3.2'
8686
compile 'commons-io:commons-io:2.4'
8787

88-
// compile 'com.newrelic.agent.android:android-agent:4.+'
88+
compile 'com.newrelic.agent.android:android-agent:4.+'
8989

9090
compile fileTree(dir: 'libs', include: '*.jar')
9191
}

android/src/main/java/com/xda/one/ui/MainActivity.java

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
import android.view.View;
2828
import android.widget.Toast;
2929

30+
// Add New Relic Reporting
31+
// import com.newrelic.agent.android.NewRelic;
32+
3033
public class MainActivity extends BaseActivity
3134
implements NavigationDrawerFragment.Callback, SubscribedPagerFragment.Callback,
3235
ThreadFragment.Callback, PostPagerFragment.Callback, SearchFragment.Callback {
@@ -45,6 +48,7 @@ public class MainActivity extends BaseActivity
4548

4649
@Override
4750
public void onCreate(final Bundle bundle) {
51+
// Add New Relic Reporting
4852
/*NewRelic.withApplicationToken(
4953
"AA31aa88f94b9a9db9fba799fdb1112f100438c79f"
5054
).start(getApplication());*/

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ buildscript {
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:1.0.0'
1111
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
12-
// classpath 'com.newrelic.agent.android:agent-gradle-plugin:4.+'
12+
classpath 'com.newrelic.agent.android:agent-gradle-plugin:4.+'
1313
}
1414
}
1515

1616
allprojects {
1717
repositories {
18+
mavenCentral()
1819
jcenter()
1920
maven {
2021
url "http://repo.pageturner-reader.org"

0 commit comments

Comments
 (0)