Created
March 1, 2016 17:57
-
-
Save frogermcs/56c16dc3bc8482316119 to your computer and use it in GitHub Desktop.
AndroidDevMetrics config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.frogermcs.androiddevmetrics:androiddevmetrics-plugin:0.3' | |
} | |
} | |
apply plugin: 'com.android.application' | |
apply plugin: 'com.frogermcs.androiddevmetrics' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
//Use it only in debug builds | |
if (BuildConfig.DEBUG) { | |
AndroidDevMetrics.initWith(this); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment