6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 44755d07
Changed files
azure/templates/build-android.yml | 27 ++++++++++++++------------- comwell_key_app/android/app/build.gradle | 3 ++- 2 files changed, 16 insertions(+), 14 deletions(-)
Diff
diff --git a/azure/templates/build-android.yml b/azure/templates/build-android.yml
index 7706604a..0be4d1e3 100644
--- a/azure/templates/build-android.yml
+++ b/azure/templates/build-android.yml
@@ -13,23 +13,31 @@ steps:
- template: download-env.yml
- task: DownloadSecureFile@1
- name: localprop
+ name: localproperties
displayName: Download local properties file
inputs:
secureFile: "local.properties"
- task: DownloadSecureFile@1
- name: comwell_keystore
+ name: keystorefile
displayName: Download signing key
inputs:
secureFile: "comwell_keystore.jks"
+- task: DownloadSecureFile@1
+ name: keyproperties
+ displayName: Download signing key
+ inputs:
+ secureFile: "key.properties"
+
- task: Bash@3
displayName: Copy config files
inputs:
targetType: "inline"
script: |
- cp $(localprop.secureFilePath) $(Build.SourcesDirectory)/comwell_key_app/android/local.properties
+ cp $(localproperties.secureFilePath) $(Build.SourcesDirectory)/comwell_key_app/android/local.properties
+ cp $(keyproperties.secureFilePath) $(Build.SourcesDirectory)/comwell_key_app/android/key.properties
+ cp $(keystorefile.secureFilePath) $(Build.SourcesDirectory)/comwell_key_app/android/app/comwell_keystore.jks
- task: JavaToolInstaller@0
inputs:
@@ -41,23 +49,16 @@ steps:
displayName: "Build application"
inputs:
buildNumber: "$(Build.BuildId)"
+ debugMode: false
+ profileMode: false
target: "aab"
buildFlavour: $(flavor)
projectDirectory: "$(Build.SourcesDirectory)/comwell_key_app"
-- task: AndroidSigning@3
- inputs:
- apkFiles: '$(Agent.BuildDirectory)/s/android/app/build/outputs/bundle/$(androidAABPath)'
- apksignerArguments: "--min-sdk-version 23"
- apksignerKeystoreFile: 'comwell_keystore.jks'
- apksignerKeystorePassword: $(storePassword)
- apksignerKeystoreAlias: $(keyAlias)
- apksignerKeyPassword: $(keyPassword)
-
- task: GooglePlayRelease@4
inputs:
serviceConnection: 'Google play'
- applicationId: $(bundleId)
+ applicationId: '$(bundleId)
action: 'SingleBundle'
bundleFile: '$(Build.ArtifactStagingDirectory)/*.aab'
track: 'internal'
diff --git a/comwell_key_app/android/app/build.gradle b/comwell_key_app/android/app/build.gradle
index 2f0e844e..23052b29 100644
--- a/comwell_key_app/android/app/build.gradle
+++ b/comwell_key_app/android/app/build.gradle
@@ -63,6 +63,7 @@ android {
]
}
+
signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'])
@@ -73,7 +74,7 @@ android {
}
buildTypes {
release {
- // signingConfig signingConfigs.release
+ signingConfig signingConfigs.release
minifyEnabled false
shrinkResources false
}