Skip to content

Commit

Permalink
Include Play Store plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed Jul 26, 2017
1 parent 540a618 commit 7bb62c1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ gen/
local.properties
crowdin.yaml
local
secret/
24 changes: 24 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -140,3 +160,7 @@ task coverageReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
classDirectories = files(fileTree(dir: classDir, excludes: excludes))
executionData = files(jvmExecData, connectedExecData)
}

play {
track = 'alpha'
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down

0 comments on commit 7bb62c1

Please sign in to comment.