##Documentation in progress
If you contribute to this plugin you can deploy it fast
./gradlew plugin:build plugin:install
and connect to your own project
buildscript {
repositories {
mavenLocal()
...
}
dependencies {
...
classpath 'com.github.rchugunov.android-analytics:plugin:0.1.5'
}
}
apply plugin: 'android-analytics'
For general use just add this lines to your project's build.gradle
plugins {
id "com.github.rchugunov.android-analytics" version "0.1.5"
}
configuration:
androidAnalytics {
applicationId = 'your package_id the same from Google Play' // if not specified in defaultConfig
googleServiceAccountJson file(...) // json file downloaded from Google Cloud Console (read next)
}
To get this plugin working you should create Service Account in Google Cloud https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview in project associated with your Google Play account.