File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ name: Update Dependencies
33on :
44 # Run every day.
55 schedule :
6- - cron : ' 0 3 * * *'
6+ - cron : " 0 3 * * *"
77 # And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
88 push :
9- branches :
10- - main
9+ # branches:
10+ # - main
1111
1212jobs :
1313 android :
2323 with :
2424 path : flutter/scripts/update-cocoa.sh
2525 name : Cocoa SDK
26+ runs-on : macos-latest
2627 secrets :
2728 api-token : ${{ secrets.CI_DEPLOY_KEY }}
2829
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4+ if [[ -n ${CI: +x} ]]; then
5+ echo " Running in CI so we need to set up Flutter SDK first"
6+ curl -Lv https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.13.3-stable.zip --output /tmp/flutter.zip
7+ unzip /tmp/flutter.zip -d /tmp
8+ export PATH=" :/tmp/flutter/bin:$PATH "
9+ which flutter
10+ flutter --version
11+ fi
12+
413cocoa_version=" ${1:- $(./ scripts/ update-cocoa.sh get-version)} "
514
615cd " $( dirname " $0 " ) /../"
@@ -21,9 +30,11 @@ rm -rf $temp
2130mkdir -p $temp
2231curl -Lv https://github.com/getsentry/sentry-cocoa/releases/download/$cocoa_version /Sentry.xcframework.zip -o $temp /Sentry.xcframework.zip
2332subdir=" Carthage/Build/Sentry.xcframework/macos-arm64_x86_64/Sentry.framework"
24- unzip -q $temp /Sentry.xcframework.zip " $subdir /*" -d $temp
33+ unzip $temp /Sentry.xcframework.zip " $subdir /*" -d $temp
2534mv " $temp /$subdir " $temp /Sentry.framework
2635
2736dart run ffigen --config ffi-cocoa.yaml
2837sed -i.bak ' s|final class|class|g' lib/src/sentry_cocoa.dart
2938rm lib/src/sentry_cocoa.dart.bak
39+
40+ exit 1
Original file line number Diff line number Diff line change 1212
1313case $1 in
1414get-version)
15- echo ${BASH_REMATCH[2]}
15+ # xxx
16+ echo " 8.10.0"
17+ # echo ${BASH_REMATCH[2]}
1618 ;;
1719get-repo)
1820 echo " https://github.com/getsentry/sentry-cocoa.git"
You can’t perform that action at this time.
0 commit comments