From 83355e629acb9ea1ced5ea5c92b45ea54f34023b Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Tue, 10 Dec 2024 20:42:45 +0100 Subject: [PATCH 1/2] chore: add script to upload sentry debug symbols --- iosApp/iosApp.xcodeproj/project.pbxproj | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index 64b460c6..97d0ee09 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -260,6 +260,7 @@ F57E468EACCE9B29FB4C68FC /* [CP] Copy Pods Resources */, 11F17E981064A71B74C323DA /* [CP] Embed Pods Frameworks */, 795E37802CD5053900086360 /* Embed Foundation Extensions */, + 79851F9B2D08ADC0002E0951 /* Sentry Upload Symbols Script */, ); buildRules = ( ); @@ -300,6 +301,7 @@ 79FBD0152C5A70AF004E041C /* ShellScript */, 06E00FBBFEA4B57236F98854 /* [CP] Copy Pods Resources */, 3A3900471DFA31082B6AA60E /* [CP] Embed Pods Frameworks */, + 79851F9C2D08B0BB002E0951 /* Sentry Upload Symbols Script */, ); buildRules = ( ); @@ -475,6 +477,44 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NewsMediaScan/Pods-NewsMediaScan-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; + 79851F9B2D08ADC0002E0951 /* Sentry Upload Symbols Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}", + ); + name = "Sentry Upload Symbols Script"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=ooni\nexport SENTRY_PROJECT=probe-multiplatform-ios\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n"; + }; + 79851F9C2D08B0BB002E0951 /* Sentry Upload Symbols Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}", + ); + name = "Sentry Upload Symbols Script"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=ooni\nexport SENTRY_PROJECT=probe-multiplatform-ios\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n"; + }; 79FBD00B2C5A70AF004E041C /* Compile Kotlin Framework */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; From 2d851d5d96abccab5b9f4e19104131afd195d529 Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Tue, 17 Dec 2024 14:02:27 +0100 Subject: [PATCH 2/2] remove script comment --- iosApp/iosApp.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index 97d0ee09..2298a972 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -494,7 +494,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=ooni\nexport SENTRY_PROJECT=probe-multiplatform-ios\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n"; + shellScript = "\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=ooni\nexport SENTRY_PROJECT=probe-multiplatform-ios\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n"; }; 79851F9C2D08B0BB002E0951 /* Sentry Upload Symbols Script */ = { isa = PBXShellScriptBuildPhase; @@ -513,7 +513,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=ooni\nexport SENTRY_PROJECT=probe-multiplatform-ios\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n"; + shellScript = "\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=ooni\nexport SENTRY_PROJECT=probe-multiplatform-ios\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n"; }; 79FBD00B2C5A70AF004E041C /* Compile Kotlin Framework */ = { isa = PBXShellScriptBuildPhase;