aboutsummaryrefslogtreecommitdiff
path: root/sample/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'sample/build.gradle')
-rw-r--r--sample/build.gradle24
1 files changed, 24 insertions, 0 deletions
diff --git a/sample/build.gradle b/sample/build.gradle
index b318174..f1a0f10 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -3,6 +3,7 @@ plugins {
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
+apply plugin: 'com.github.triplet.play'
repositories {
jcenter()
@@ -11,6 +12,14 @@ repositories {
maven { url "https://maven.google.com" }
}
+play {
+ jsonFile = file('../files/gplay-keys.json')
+ track = 'beta'
+ errorOnSizeLimit = true
+ uploadImages = false
+ untrackOld = true
+}
+
android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
buildToolsVersion project.BUILD_TOOLS
@@ -28,9 +37,24 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
+ signingConfigs {
+
+ def releaseProps = new Properties()
+ file("../files/kau.properties").withInputStream { releaseProps.load(it) }
+
+ release {
+ storeFile file("../files/kau.keystore")
+ storePassword releaseProps.getProperty('storePassword')
+ keyAlias releaseProps.getProperty('keyAlias')
+ keyPassword releaseProps.getProperty('keyPassword')
+ }
+
+ }
+
buildTypes {
release {
minifyEnabled true
+ signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}