mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Include Play Store plugin
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,3 +22,4 @@ gen/
|
|||||||
local.properties
|
local.properties
|
||||||
crowdin.yaml
|
crowdin.yaml
|
||||||
local
|
local
|
||||||
|
secret/
|
||||||
|
|||||||
@@ -2,11 +2,28 @@ apply plugin: 'com.android.application'
|
|||||||
apply plugin: 'com.neenbedankt.android-apt'
|
apply plugin: 'com.neenbedankt.android-apt'
|
||||||
apply plugin: 'me.tatarka.retrolambda'
|
apply plugin: 'me.tatarka.retrolambda'
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
|
apply plugin: 'com.github.triplet.play'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 25
|
compileSdkVersion 25
|
||||||
buildToolsVersion "25.0.2"
|
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 {
|
defaultConfig {
|
||||||
applicationId "org.isoron.uhabits"
|
applicationId "org.isoron.uhabits"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
@@ -17,12 +34,15 @@ android {
|
|||||||
|
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
testInstrumentationRunnerArgument "size", "medium"
|
testInstrumentationRunnerArgument "size", "medium"
|
||||||
|
|
||||||
|
playAccountConfig = playAccountConfigs.defaultAccountConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||||
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
testCoverageEnabled = false
|
testCoverageEnabled = false
|
||||||
@@ -140,3 +160,7 @@ task coverageReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
|
|||||||
classDirectories = files(fileTree(dir: classDir, excludes: excludes))
|
classDirectories = files(fileTree(dir: classDir, excludes: excludes))
|
||||||
executionData = files(jvmExecData, connectedExecData)
|
executionData = files(jvmExecData, connectedExecData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
play {
|
||||||
|
track = 'alpha'
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ buildscript {
|
|||||||
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2'
|
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2'
|
||||||
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
|
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
|
||||||
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
||||||
|
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user