Skip to content

Gradle plugin that uses official Google Play and Google Analytics API

Notifications You must be signed in to change notification settings

rchugunov/android-analytics-gradle-plugin

Repository files navigation

Android analytics Gradle Plugin + SonarQube plugin (Measuring Google Play rating)

Build Status Code Climate Issue Count Test Coverage

##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.

About

Gradle plugin that uses official Google Play and Google Analytics API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published