aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorYuutaW <17158086+trumeet@users.noreply.github.com>2019-03-24 14:49:09 -0700
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-03-24 14:49:09 -0700
commitc22aadeaab110730fe6e3902d42aa51d1e16c766 (patch)
tree7c6b6cedd0910e75119b0340dc35dbc05e37559f /app
parentcaa98a88541ccd6ddc79f36b92e12fe313111a75 (diff)
downloadSysUIController-c22aadeaab110730fe6e3902d42aa51d1e16c766.tar
SysUIController-c22aadeaab110730fe6e3902d42aa51d1e16c766.tar.gz
SysUIController-c22aadeaab110730fe6e3902d42aa51d1e16c766.tar.bz2
SysUIController-c22aadeaab110730fe6e3902d42aa51d1e16c766.zip
feat(app): implement Travis CI
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle25
1 files changed, 24 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 84cae29..529328d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -5,6 +5,10 @@ apply plugin: 'io.fabric'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
apply plugin: 'com.google.firebase.firebase-perf'
+def privateProperties = new Properties()
+def conf = project.file("private.properties")
+if (conf.exists()) privateProperties.load(conf.newDataInputStream())
+
android {
compileSdkVersion 28
defaultConfig {
@@ -15,8 +19,28 @@ android {
versionName rootProject.ext.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
+ signingConfigs {
+ general {
+ def locate = privateProperties['key.locate']
+ def keystorePwd = privateProperties['key.store.pwd']
+ def alias = privateProperties['key.alias']
+ def pwd = privateProperties['key.pwd']
+ storeFile file(locate != null ? locate : project.rootProject.file(".yuuta.jks"))
+ storePassword keystorePwd != null ?
+ keystorePwd : System.getenv("KEYSTORE_PASS")
+ keyAlias alias != null ?
+ alias : System.getenv("ALIAS_NAME")
+ keyPassword pwd != null ?
+ pwd : System.getenv("ALIAS_PASS")
+ v2SigningEnabled true
+ }
+ }
buildTypes {
+ debug {
+ signingConfig signingConfigs.general
+ }
release {
+ signingConfig signingConfigs.general
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
@@ -48,5 +72,4 @@ dependencies {
implementation "android.arch.work:work-runtime:1.0.0"
implementation 'com.google.android.gms:play-services-oss-licenses:16.0.2'
implementation 'com.google.firebase:firebase-perf:16.2.4'
- // compileOnly project(':hiddenapi')
}