diff --git a/ios/ci_scripts/ci_post_clone.sh b/ios/ci_scripts/ci_post_clone.sh index 74f6b9a..c979464 100755 --- a/ios/ci_scripts/ci_post_clone.sh +++ b/ios/ci_scripts/ci_post_clone.sh @@ -7,10 +7,10 @@ set -e # The default execution directory of this script is the ci_scripts directory. -cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. +cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo. # Install Flutter using git. -git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter +git clone https://github.com/flutter/flutter.git --depth 1 -b stable "$HOME/flutter" export PATH="$PATH:$HOME/flutter/bin" # Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms. diff --git a/ios/ci_scripts/ci_post_xcodebuild.sh b/ios/ci_scripts/ci_post_xcodebuild.sh index 00fcdcd..120a4f1 100755 --- a/ios/ci_scripts/ci_post_xcodebuild.sh +++ b/ios/ci_scripts/ci_post_xcodebuild.sh @@ -4,9 +4,12 @@ set -e # The default execution directory of this script is the ci_scripts directory. -cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. +cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo. -# Run Sentry dart plugin. +# Make Flutter and Dart available in the PATH (it was already installed in the ci_post_clone.sh script) +export PATH="$PATH:$HOME/flutter/bin" + +# Run Sentry Dart plugin to upload source maps and debug symbols to Sentry. dart run sentry_dart_plugin exit 0