From 7bb62c197fcf8c177daa952856ce917115ac37c1 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Wed, 26 Jul 2017 10:07:25 -0400 Subject: [PATCH] Include Play Store plugin --- .gitignore | 1 + app/build.gradle | 24 ++++++++++++++++++++++++ build.gradle | 1 + 3 files changed, 26 insertions(+) diff --git a/.gitignore b/.gitignore index 8b44c8900..da291a708 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ gen/ local.properties crowdin.yaml local +secret/ diff --git a/app/build.gradle b/app/build.gradle index 8c816c10e..888fee574 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,11 +2,28 @@ apply plugin: 'com.android.application' apply plugin: 'com.neenbedankt.android-apt' apply plugin: 'me.tatarka.retrolambda' apply plugin: 'jacoco' +apply plugin: 'com.github.triplet.play' android { compileSdkVersion 25 buildToolsVersion "25.0.2" + signingConfigs { + release { + storeFile file(LOOP_STORE_FILE) + storePassword LOOP_STORE_PASSWORD + keyAlias LOOP_KEY_ALIAS + keyPassword LOOP_KEY_PASSWORD + } + } + + playAccountConfigs { + defaultAccountConfig { + jsonFile = file('../secret/playstore.json') + } + } + + defaultConfig { applicationId "org.isoron.uhabits" minSdkVersion 15 @@ -17,12 +34,15 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunnerArgument "size", "medium" + + playAccountConfig = playAccountConfigs.defaultAccountConfig } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + signingConfig signingConfigs.release } debug { testCoverageEnabled = false @@ -140,3 +160,7 @@ task coverageReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) { classDirectories = files(fileTree(dir: classDir, excludes: excludes)) executionData = files(jvmExecData, connectedExecData) } + +play { + track = 'alpha' +} diff --git a/build.gradle b/build.gradle index 1255b6627..7e4c8b79e 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,7 @@ buildscript { classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2' classpath 'me.tatarka:gradle-retrolambda:3.2.5' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' + classpath 'com.github.triplet.gradle:play-publisher:1.2.0' } }