diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml index ec4199a2fd..abec742655 100644 --- a/.github/workflows/update-deps.yml +++ b/.github/workflows/update-deps.yml @@ -19,15 +19,6 @@ jobs: name: Android SDK ssh-key: ${{ secrets.CI_DEPLOY_KEY }} - android-stubs: - runs-on: ubuntu-latest - steps: - - uses: getsentry/github-workflows/updater@v3 - with: - path: scripts/update-android-stubs.sh - name: Android SDK Stubs - ssh-key: ${{ secrets.CI_DEPLOY_KEY }} - cocoa: runs-on: ubuntu-latest steps: diff --git a/scripts/update-android-stubs.sh b/scripts/update-android-stubs.sh index f36ec335dc..f8055fbf2f 100755 --- a/scripts/update-android-stubs.sh +++ b/scripts/update-android-stubs.sh @@ -20,6 +20,10 @@ get-repo) set-version) newValue="${BASH_REMATCH[1]}$2" echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file + + # Rebuild the stubs jar and JS types + cd .. + yarn build:replay-stubs || true ;; *) echo "Unknown argument $1" diff --git a/scripts/update-android.sh b/scripts/update-android.sh index e640568681..990f3db956 100755 --- a/scripts/update-android.sh +++ b/scripts/update-android.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -euo pipefail +ORIGINAL_DIR=$(cd "$(dirname "$0")" && pwd) cd $(dirname "$0")/../packages/core/android file='build.gradle' content=$(cat $file) @@ -25,6 +26,10 @@ set-version) # Update sentry-spotlight newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-spotlight:)([0-9\.]+)/\1$2/g") echo "$newContent" >$file + + # Update replay-stubs to match + cd $ORIGINAL_DIR + ./update-android-stubs.sh set-version $2 ;; *) echo "Unknown argument $1"