Browse Source

Automatic signed release APK

pull/24/head
Ezerous 8 years ago
parent
commit
ee05112533
  1. 3
      .gitignore
  2. 17
      .gitlab-ci.yml
  3. BIN
      ThmmyNoLife.jks
  4. 12
      app/build.gradle

3
.gitignore

@ -37,9 +37,6 @@ captures/
*.iml
.idea
# Keystore files
*.jks
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

17
.gitlab-ci.yml

@ -20,9 +20,22 @@ before_script:
- export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
- chmod +x ./gradlew
build:
build_develop:
script:
- ./gradlew assembleDebug
only:
- develop
artifacts:
name: "${CI_BUILD_NAME}"
paths:
- app/build/outputs/
- app/build/outputs/apk
build_master:
script:
- ./gradlew assembleRelease
only:
- master
artifacts:
name: "${CI_BUILD_NAME}"
paths:
- app/build/outputs/apk

BIN
ThmmyNoLife.jks

Binary file not shown.

12
app/build.gradle

@ -13,10 +13,22 @@ android {
versionName "0.6"
archivesBaseName = "mTHMMY-v$versionName"
}
signingConfigs {
release {
storeFile rootProject.file('ThmmyNoLife.jks')
storePassword System.getenv("KEYSTORE_PASS")
keyAlias System.getenv("KEY_NAME")
keyPassword System.getenv("KEY_PASS")
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if (System.getenv("CI"))
signingConfig signingConfigs.release
}
debug {
def date = new Date().format('ddMMyy_HHmm');

Loading…
Cancel
Save