6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit bad90920
Changed files
azure/templates/build-ios.yml | 20 ++++++++++---------- azure/templates/download-env.yml | 6 +++--- azure/templates/env-vars.yml | 16 +--------------- 3 files changed, 14 insertions(+), 28 deletions(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index e26b33ec..07699d24 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -11,11 +11,16 @@ parameters:
steps:
- template: install-flutter.yml
+- script: |
+ sudo xcode-select -s /Applications/Xcode_26.2.app
+ /usr/bin/xcodebuild -version
+ displayName: "Select Xcode version"
+
- task: InstallAppleCertificate@2
displayName: Install Apple Certificate
inputs:
certSecureFile: 'comwell_distribution.p12'
- certPwd: 'd%e44dQ8!VQ&8S'
+ certPwd: 'comwell1234'
keychain: 'temp'
# Install Apple provisioning profile
@@ -34,11 +39,6 @@ steps:
dart pub global activate flutterfire_cli
displayName: "Install fluttefire"
-- script: |
- ls
- sudo xcode-select -s /Applications/Xcode_26.2.app
- /usr/bin/xcodebuild -version
- displayName: "Select Xcode version"
- script: |
flutter config --enable-swift-package-manager
@@ -46,13 +46,13 @@ steps:
- script: |
cd comwell_key_app
- flutter build ipa --flavor stage --release --no-codesign -v
- displayName: "build ipa"
+ flutter build ipa --flavor stage --release --no-codesign
+ displayName: "Build IPA"
- script: |
cd comwell_key_app
xcodebuild -workspace ios/Runner.xcworkspace -scheme Stage -archivePath build/ios/archive/Runner.xcarchive archive
- displayName: "archive"
+ displayName: "Archive"
- script: |
cd comwell_key_app
@@ -60,5 +60,5 @@ steps:
-archivePath build/ios/archive/Runner.xcarchive \
-exportOptionsPlist ios/ExportOptionsStage.plist \
-exportPath output
- displayName: "exportArchive"
+ displayName: "Export"
diff --git a/azure/templates/download-env.yml b/azure/templates/download-env.yml
index 0a24cecc..c6b741a2 100644
--- a/azure/templates/download-env.yml
+++ b/azure/templates/download-env.yml
@@ -20,7 +20,7 @@ steps:
inputs:
sourceFolder: $(Agent.TempDirectory)
contents: .dev.env
- targetFolder: $(Agent.BuildDirectory)/s/comwell_key_app
+ targetFolder: $(Agent.BuildDirectory)/s/comwell_key_app/env
- ${{ if eq(parameters.env, 'staging') }}:
- task: DownloadSecureFile@1
displayName: 'Download Stage .env file'
@@ -32,7 +32,7 @@ steps:
inputs:
sourceFolder: $(Agent.TempDirectory)
contents: .stage.env
- targetFolder: $(Agent.BuildDirectory)/s/comwell_key_app
+ targetFolder: $(Agent.BuildDirectory)/s/comwell_key_app/env
- ${{ if eq(parameters.env, 'production') }}:
- task: DownloadSecureFile@1
displayName: 'Download Prod .env file'
@@ -44,5 +44,5 @@ steps:
inputs:
sourceFolder: $(Agent.TempDirectory)
contents: .prod.env
- targetFolder: $(Agent.BuildDirectory)/s/comwell_key_app
+ targetFolder: $(Agent.BuildDirectory)/s/comwell_key_app/env
diff --git a/azure/templates/env-vars.yml b/azure/templates/env-vars.yml
index 19a72927..97ae17df 100644
--- a/azure/templates/env-vars.yml
+++ b/azure/templates/env-vars.yml
@@ -25,20 +25,6 @@ variables:
value: 'Stage'
${{ if eq(parameters.env, 'develop') }}:
value: 'Develop'
- - name: APPLE_PROV_PROFILE_UUID
- ${{ if eq(parameters.env, 'production') }}:
- value: 'Prod'
- ${{ if eq(parameters.env, 'staging') }}:
- value: '6f26d09a-71b4-4172-a1c2-e45ef0723546'
- ${{ if eq(parameters.env, 'develop') }}:
- value: 'Develop'
- - name: APPLE_CERTIFICATE_SIGNING_IDENTITY
- ${{ if eq(parameters.env, 'production') }}:
- value: 'Prod'
- ${{ if eq(parameters.env, 'staging') }}:
- value: '6f26d09a-71b4-4172-a1c2-e45ef0723546'
- ${{ if eq(parameters.env, 'develop') }}:
- value: 'Develop'
# iOS
- name: iosBundleId
${{ if eq(parameters.env, 'production') }}:
@@ -51,7 +37,7 @@ variables:
${{ if eq(parameters.env, 'production') }}:
value: 'CP_Prod.mobileprovision'
${{ if eq(parameters.env, 'staging') }}:
- value: 'Distribution_Stage.mobileprovision'
+ value: 'CP_Stage.mobileprovision'
${{ if eq(parameters.env, 'develop') }}:
value: 'CP_Dev.mobileprovision'
- name: iosScheme