Include Play Store plugin

This commit is contained in:
2017-07-26 10:07:25 -04:00
parent 540a618ba8
commit 7bb62c197f
3 changed files with 26 additions and 0 deletions

View File

@@ -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'
}