File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 39
39
with :
40
40
path : plugin-dev/sentry-cli.properties
41
41
name : CLI
42
+ secrets :
43
+ api-token : ${{ secrets.CI_DEPLOY_KEY }}
44
+
45
+ android-gradle-plugin :
46
+ uses : getsentry/github-workflows/.github/workflows/updater.yml@v2
47
+ with :
48
+ path : scripts/update-android-gradle-plugin.sh
49
+ name : Android Gradle Plugin
42
50
secrets :
43
51
api-token : ${{ secrets.CI_DEPLOY_KEY }}
Original file line number Diff line number Diff line change 175
175
<insert >
176
176
dependencies {
177
177
classpath 'com.android.tools.build:gradle:3.5.4'
178
- classpath 'io.sentry:sentry-android-gradle-plugin:2.1.5'
178
+ classpath 'io.sentry:sentry-android-gradle-plugin:2.1.5' // legacy
179
179
}
180
180
</insert >
181
181
</true >
185
185
<insert >
186
186
dependencies {
187
187
classpath 'com.android.tools.build:gradle:7.4.2'
188
- classpath 'io.sentry:sentry-android-gradle-plugin:4.11.0'
188
+ classpath 'io.sentry:sentry-android-gradle-plugin:4.11.0' // current
189
189
}
190
190
</insert >
191
191
</false >
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ cd $( dirname " $0 " ) /../
5
+ ANDROID_UPL_FILEPATH=plugin-dev/Source/Sentry/Sentry_Android_UPL.xml
6
+
7
+ case $1 in
8
+ get-version)
9
+ perl -ne ' print "$1\n" if ( m/io\.sentry:sentry-android-gradle-plugin:([0-9.]+).*\/\/ current/ )' $ANDROID_UPL_FILEPATH
10
+ ;;
11
+ get-repo)
12
+ echo " https://github.com/getsentry/sentry-android-gradle-plugin.git"
13
+ ;;
14
+ set-version)
15
+ version=$2
16
+
17
+ echo " Setting Android Gradle Plugin version to '$version '"
18
+
19
+ PATTERN=" io\.sentry:sentry-android-gradle-plugin:([0-9.]+).*\/\/ current"
20
+ perl -pi -e " s/$PATTERN /io.sentry:sentry-android-gradle-plugin:$version \/\/ current/g" $ANDROID_UPL_FILEPATH
21
+ ;;
22
+ * )
23
+ echo " Unknown argument $1 "
24
+ exit 1
25
+ ;;
26
+ esac
You can’t perform that action at this time.
0 commit comments