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 *.iml
.idea .idea
# Keystore files
*.jks
# External native build folder generated in Android Studio 2.2 and later # External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild .externalNativeBuild

17
.gitlab-ci.yml

@ -20,9 +20,22 @@ before_script:
- export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/ - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
- chmod +x ./gradlew - chmod +x ./gradlew
build: build_develop:
script: script:
- ./gradlew assembleDebug - ./gradlew assembleDebug
only:
- develop
artifacts: artifacts:
name: "${CI_BUILD_NAME}"
paths: 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" versionName "0.6"
archivesBaseName = "mTHMMY-v$versionName" 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 { buildTypes {
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if (System.getenv("CI"))
signingConfig signingConfigs.release
} }
debug { debug {
def date = new Date().format('ddMMyy_HHmm'); def date = new Date().format('ddMMyy_HHmm');

Loading…
Cancel
Save