diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-02 17:24:17 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-02 17:24:17 -0700 |
commit | 4a07d2ed10741e08895c9e9f03738656ddfc33f9 (patch) | |
tree | 274a086986ef50d5f48ef3320cd397dcabce1fad /app/build.gradle | |
parent | b9aab92aee334acdffc6c0fde32101bb72be9a5e (diff) | |
download | frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.tar.gz frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.tar.bz2 frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.zip |
Adding auto uploads
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle index b64e5a74..6c4f05bf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,3 +1,6 @@ +import org.eclipse.jgit.api.Git +import org.eclipse.jgit.storage.file.FileRepositoryBuilder + plugins { id 'com.gladed.androidgitversion' version '0.3.4' } @@ -6,16 +9,24 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'io.fabric' +apply plugin: 'com.github.triplet.play' android { compileSdkVersion Integer.parseInt(project.TARGET_SDK) buildToolsVersion project.BUILD_TOOLS androidGitVersion { - codeFormat = 'MMNNPP' +// baseCode ext.commitCount() + codeFormat = 'MMNNPPP' prefix 'v' } + playAccountConfigs { + defaultAccountConfig { + jsonFile = file('./files/gplay-keys.json') + } + } + defaultConfig { applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase() minSdkVersion Integer.parseInt(project.MIN_SDK) @@ -34,6 +45,17 @@ android { } signingConfigs { + + def releaseProps = new Properties() + file("../files/play.properties").withInputStream { releaseProps.load(it) } + + release { + storeFile file("../files/play.keystore") + storePassword releaseProps.getProperty('storePassword') + keyAlias releaseProps.getProperty('keyAlias') + keyPassword releaseProps.getProperty('keyPassword') + } + test { storeFile file("../files/test.keystore") storePassword "testkey" @@ -65,6 +87,7 @@ android { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release resValue "string", "app_name", "Frost" resValue "string", "frost_web", "Frost Web" } @@ -133,4 +156,9 @@ dependencies { compile("com.crashlytics.sdk.android:crashlytics:${CRASHLYTICS}@aar") { transitive = true; } + +} + +play { + track = 'alpha' }
\ No newline at end of file |