6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit ed491048
Changed files
azure/templates/build-ios.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index c65ff8b3..8388b393 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -39,11 +39,18 @@ steps:
dart pub global activate flutterfire_cli
displayName: "Install fluttefire"
-
- script: |
flutter config --enable-swift-package-manager
displayName: "Enable Swift Package Manager"
+- script: |
+ git=$(sh /etc/profile; which git)
+ bundleVersion=$("$git" log --pretty=oneline HEAD^@ |wc -l)
+ /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $bundleVersion" "ios/Runner/Info.plist"
+ echo "Updated build number in ios/Runner/Info.plist to $bundleVersion"
+ displayName: "Update build number"
+
+
- script: |
cd comwell_key_app
flutter build ipa --flavor stage --release --no-codesign
@@ -67,7 +74,7 @@ steps:
inputs:
releaseTrack: 'TestFlight'
appIdentifier: $(iosBundleId)
- serviceEndpoint: "Apple App Store"
+ serviceEndpoint: "Apple"
appType: 'iOS'
ipaPath: 'comwell_key_app/output/*.ipa'
shouldSkipWaitingForProcessing: true