Skip to content

Commit 2233c79

Browse files
authored
Merge ee968cf into 9b794df
2 parents 9b794df + ee968cf commit 2233c79

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/agp-matrix.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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@v2
34+
with:
35+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
36+
arguments: sentry-samples:sentry-samples-android:assembleRelease

buildSrc/src/main/java/Config.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import java.math.BigDecimal
22

33
object 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"

0 commit comments

Comments
 (0)