Commit 24851d96 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Update CI with store build


Former-commit-id: 7609e63ec224c0d92f0b735a2e69b1c88cfffc4b
parent 866e1ba0
Pipeline #28991 failed with stage
......@@ -24,13 +24,27 @@ job-android:
image: gitlab.linphone.org:4567/bc/public/linphone-android/bc-dev-android:29
script:
- sdkmanager
- scp -oStrictHostKeyChecking=no $DEPLOY_SERVER:$ANDROID_KEYSTORE_PATH app/
- echo storePassword=$ANDROID_KEYSTORE_PASSWORD > keystore.properties
- echo keyPassword=$ANDROID_KEYSTORE_KEY_PASSWORD >> keystore.properties
- echo keyAlias=$ANDROID_KEYSTORE_KEY_ALIAS >> keystore.properties
- echo storeFile=$ANDROID_KEYSTORE_FILE >> keystore.properties
- ./gradlew app:dependencies | grep org.linphone
- ./gradlew assembleDebug
- ./gradlew assembleRelease
- ./gradlew app:dependencies | grep org.linphone
- ./gradlew assembleDebug
- cp ./app/build/outputs/apk/debug/app-debug.apk lindoor-debug-unsigned.apk
- cp ./app/build/outputs/apk/release/app-debug.apk lindoor-release-signed.apk
artifacts:
paths:
- lindoor-debug-unsigned.apk
- lindoor-release-signed.apk
when: always
expire_in: 1 week
......@@ -58,6 +58,19 @@ android {
variant.getMergedFlavor().manifestPlaceholders = [lindoor_file_provider: applicationId + ".fileprovider"]
}
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
buildFeatures{
dataBinding = true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment