6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 8134c31c

AuthorNKL<nikolaj.king@gmail.com>
Date2025-07-02 16:00:39 +0200
fixed ipa issue and added publish artifact

Changed files

azure/templates/build-ios.yml                        | 10 ++++++++--
 comwell_key_app/ios/Runner.xcodeproj/project.pbxproj | 18 +++++-------------
 comwell_key_app/lib/main.dart                        |  6 +++---
 comwell_key_app/lib/utils/firebase.dart              |  6 +++---
 4 files changed, 19 insertions(+), 21 deletions(-)

Diff

diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 2ed7afe8..951b762a 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -54,7 +54,7 @@ steps:
displayName: "Build app"
inputs:
buildNumber: "$(Build.BuildId)"
- target: "ios"
+ target: "ipa"
buildFlavour: $(flavor)
debugMode: false
profileMode: false
@@ -62,8 +62,13 @@ steps:
signingIdentity: "$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
provisioningProfileUuid: "$(APPLE_PROV_PROFILE_UUID)"
projectDirectory: "$(Build.SourcesDirectory)/comwell_key_app"
+ exportPath: 'build/ios/ipa'
-
+- task: PublishBuildArtifacts@1
+ inputs:
+ PathtoPublish: 'build/ios/ipa'
+ ArtifactName: 'ios-ipa'
+ publishLocation: 'Container'
# (Optional) Publish artifact
# - task: PublishBuildArtifacts@1
# inputs:
@@ -94,5 +99,6 @@ steps:
appIdentifier: $(iosBundleId)
serviceEndpoint: "App Store Connect"
appType: 'iOS'
+ ipaPath: 'build/ios/ipa/*.ipa'
shouldSkipWaitingForProcessing: true
shouldSkipSubmission: true
diff --git a/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj b/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
index dd93a75a..ad4808d9 100644
--- a/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
+++ b/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 60;
+ objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -194,8 +194,8 @@
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
- 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
- 60BC597B2DEF216C00031449 /* XCLocalSwiftPackageReference "../../mobilekeys_sdk_plugin/ios/seos_mobile_keys_plugin" */,
+ 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */,
+ 60BC597B2DEF216C00031449 /* XCLocalSwiftPackageReference "seos_mobile_keys_plugin" */,
);
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
@@ -230,14 +230,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
- inputPaths = (
- );
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
- outputPaths = (
- );
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
@@ -339,14 +335,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
- inputPaths = (
- );
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
- outputPaths = (
- );
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
@@ -1191,11 +1183,11 @@
/* End XCConfigurationList section */
/* Begin XCLocalSwiftPackageReference section */
- 60BC597B2DEF216C00031449 /* XCLocalSwiftPackageReference "../../mobilekeys_sdk_plugin/ios/seos_mobile_keys_plugin" */ = {
+ 60BC597B2DEF216C00031449 /* XCLocalSwiftPackageReference "seos_mobile_keys_plugin" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../../mobilekeys_sdk_plugin/ios/seos_mobile_keys_plugin;
};
- 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
+ 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
};
diff --git a/comwell_key_app/lib/main.dart b/comwell_key_app/lib/main.dart
index 506eef09..cd79032a 100644
--- a/comwell_key_app/lib/main.dart
+++ b/comwell_key_app/lib/main.dart
@@ -12,11 +12,11 @@ import 'firebase_options_stage.dart' as fb_stage;
import 'firebase_options_prod.dart' as fb_prod;
void main() async {
- if (appFlavor == 'develop') {
+ if (appFlavor == 'Develop') {
runMainApp(fb_dev.DefaultFirebaseOptions.currentPlatform, '.env.dev');
- } else if (appFlavor == 'stage') {
+ } else if (appFlavor == 'Stage') {
runMainApp(fb_stage.DefaultFirebaseOptions.currentPlatform, '.env.stage');
- } else if (appFlavor == 'prod') {
+ } else if (appFlavor == 'Prod') {
runMainApp(fb_prod.DefaultFirebaseOptions.currentPlatform, '.env.prod');
} else {
throw UnsupportedError('Invalid appFlavor: $appFlavor');
diff --git a/comwell_key_app/lib/utils/firebase.dart b/comwell_key_app/lib/utils/firebase.dart
index cfae7b5d..1e006970 100644
--- a/comwell_key_app/lib/utils/firebase.dart
+++ b/comwell_key_app/lib/utils/firebase.dart
@@ -8,9 +8,9 @@ import '../firebase_options_dev.dart' as dev;
Future<void> configureFirebase() async {
final firebaseOptions = switch (appFlavor) {
- 'prod' => prod.DefaultFirebaseOptions.currentPlatform,
- 'stage' => stage.DefaultFirebaseOptions.currentPlatform,
- 'develop' => dev.DefaultFirebaseOptions.currentPlatform,
+ 'Prod' => prod.DefaultFirebaseOptions.currentPlatform,
+ 'Stage' => stage.DefaultFirebaseOptions.currentPlatform,
+ 'Develop' => dev.DefaultFirebaseOptions.currentPlatform,
_ => throw UnsupportedError('Invalid flavor: $appFlavor'),
};
await Firebase.initializeApp(name: appFlavor, options: firebaseOptions);