Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created March 1, 2016 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frogermcs/56c16dc3bc8482316119 to your computer and use it in GitHub Desktop.
Save frogermcs/56c16dc3bc8482316119 to your computer and use it in GitHub Desktop.
AndroidDevMetrics config
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.frogermcs.androiddevmetrics:androiddevmetrics-plugin:0.3'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.frogermcs.androiddevmetrics'
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