From e2636d8cce4fed1010154653e1ab70eb0ac02842 Mon Sep 17 00:00:00 2001 From: MehulAhal Date: Wed, 17 Jul 2024 18:44:03 +0200 Subject: [PATCH] dSYM upload for iOS --- __brick__/{{app_name}}/flavorizr.yaml | 2 +- __brick__/{{app_name}}/ios/.gitignore | 1 + .../ios/Runner.xcodeproj/project.pbxproj | 38 +++++++++++++++++++ .../ios/Runner/Firebase/develop/.gitkeep | 0 .../ios/Runner/Firebase/prod/.gitkeep | 0 5 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 __brick__/{{app_name}}/ios/Runner/Firebase/develop/.gitkeep create mode 100644 __brick__/{{app_name}}/ios/Runner/Firebase/prod/.gitkeep diff --git a/__brick__/{{app_name}}/flavorizr.yaml b/__brick__/{{app_name}}/flavorizr.yaml index f38bda1..e83959a 100644 --- a/__brick__/{{app_name}}/flavorizr.yaml +++ b/__brick__/{{app_name}}/flavorizr.yaml @@ -22,7 +22,7 @@ flavors: ios: bundleId: "{{ios_bundle_id}}" macos: - bundleId: "{{ios_bundle_id}} + bundleId: "{{ios_bundle_id}}" diff --git a/__brick__/{{app_name}}/ios/.gitignore b/__brick__/{{app_name}}/ios/.gitignore index 7a7f987..17a9edd 100644 --- a/__brick__/{{app_name}}/ios/.gitignore +++ b/__brick__/{{app_name}}/ios/.gitignore @@ -1,3 +1,4 @@ +.DS_Store **/dgph *.mode1v3 *.mode2v3 diff --git a/__brick__/{{app_name}}/ios/Runner.xcodeproj/project.pbxproj b/__brick__/{{app_name}}/ios/Runner.xcodeproj/project.pbxproj index 4ca53a5..8374d41 100644 --- a/__brick__/{{app_name}}/ios/Runner.xcodeproj/project.pbxproj +++ b/__brick__/{{app_name}}/ios/Runner.xcodeproj/project.pbxproj @@ -177,6 +177,7 @@ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( C9AB6FC4BF39B56152D51A45 /* [CP] Check Pods Manifest.lock */, + 241018E02C482CBF008A5569 /* [Firebase] Copy flavour-specific */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, @@ -185,6 +186,7 @@ 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 7BF18DC9F6E41146D587F360 /* [CP] Embed Pods Frameworks */, F3724DF3309EA42A1E185243 /* [CP] Copy Pods Resources */, + 241018DE2C4819EB008A5569 /* dSYM upload */, ); buildRules = ( ); @@ -256,6 +258,42 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 241018DE2C4819EB008A5569 /* dSYM upload */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "dSYM upload"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/FirebaseCrashlytics/run\"\n\"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols\" -gsp \"${PROJECT_DIR}/Runner/GoogleService-Info.plist\" -p ios \"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}\"\n"; + }; + 241018E02C482CBF008A5569 /* [Firebase] Copy flavour-specific */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "[Firebase] Copy flavour-specific "; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# This script copies the right firebase configuration ( GoogleService-Info.plist file ) for the running flavor.\n# It must be run as a Build Phase. It assumes two flavors: \"develop\" and \"prod\".\n\nif [ \"${CONFIGURATION}\" == \"Debug-prod\" ] || [ \"${CONFIGURATION}\" == \"Release-prod\" ] || [ \"${CONFIGURATION}\" == \"Profile-prod\" ];\nthen\n cp -r \"${PROJECT_DIR}/Runner/Firebase/prod/GoogleService-Info.plist\" \"${PROJECT_DIR}/Runner/GoogleService-Info.plist\"\nelif [ \"${CONFIGURATION}\" == \"Debug-develop\" ] || [ \"${CONFIGURATION}\" == \"Release-develop\" ] || [ \"${CONFIGURATION}\" == \"Profile-develop\" ]; \nthen\n cp -r \"${PROJECT_DIR}/Runner/Firebase/develop/GoogleService-Info.plist\" \"${PROJECT_DIR}/Runner/GoogleService-Info.plist\"\nfi\n"; + }; 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; diff --git a/__brick__/{{app_name}}/ios/Runner/Firebase/develop/.gitkeep b/__brick__/{{app_name}}/ios/Runner/Firebase/develop/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/__brick__/{{app_name}}/ios/Runner/Firebase/prod/.gitkeep b/__brick__/{{app_name}}/ios/Runner/Firebase/prod/.gitkeep new file mode 100644 index 0000000..e69de29