File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : AGP Matrix Sample Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - release/**
8+ pull_request :
9+
10+ jobs :
11+ agp-matrix-sample-release :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ agp : ['7.3.0','7.4.0-rc01','8.0.0-alpha09']
17+
18+ name : AGP Matrix Sample Release - AGP ${{ matrix.agp }}
19+ env :
20+ VERSION_AGP : ${{ matrix.agp }}
21+
22+ steps :
23+ - name : Checkout Repo
24+ uses : actions/checkout@v2
25+
26+ - name : Setup Java Version
27+ uses : actions/setup-java@v2
28+ with :
29+ distribution : ' temurin'
30+ java-version : ' 17'
31+
32+ - name : Build the Release variant
33+ uses : gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
34+ with :
35+ cache-read-only : ${{ github.ref != 'refs/heads/main' }}
36+ arguments : sentry-samples:sentry-samples-android:assembleRelease
Original file line number Diff line number Diff line change 11import java.math.BigDecimal
22
33object Config {
4+ val AGP = System .getenv(" VERSION_AGP" ) ? : " 7.3.0"
45 val kotlinVersion = " 1.6.10"
56 val kotlinStdLib = " stdlib-jdk8"
67
@@ -11,7 +12,7 @@ object Config {
1112 val composeVersion = " 1.1.1"
1213
1314 object BuildPlugins {
14- val androidGradle = " com.android.tools.build:gradle:7.3.0 "
15+ val androidGradle = " com.android.tools.build:gradle:$AGP "
1516 val kotlinGradlePlugin = " gradle-plugin"
1617 val buildConfig = " com.github.gmazzo.buildconfig"
1718 val buildConfigVersion = " 3.0.3"
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ org.gradle.parallel=true
66# AndroidX required by AGP >= 3.6.x
77android.useAndroidX =true
88
9+ # Required by AGP >= 8.0.x
10+ android.defaults.buildfeatures.buildconfig =true
11+
912# Release information
1013versionName =6.10.0
1114
You can’t perform that action at this time.
0 commit comments