Skip to content

Commit ed07d21

Browse files
authored
Merge 1465049 into 9b794df
2 parents 9b794df + 1465049 commit ed07d21

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-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@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@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"

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ org.gradle.parallel=true
66
# AndroidX required by AGP >= 3.6.x
77
android.useAndroidX=true
88

9+
# Required by AGP >= 8.0.x
10+
android.defaults.buildfeatures.buildconfig=true
11+
912
# Release information
1013
versionName=6.10.0
1114

0 commit comments

Comments
 (0)