Skip to content

Commit b07fcfa

Browse files
committed
chore(android): Compile Android modules against Android SDK 37.2
Commit has us compile our Android modules against Android SDK 37.2 + supports compilation against minor SDK versions for any future release. Doing so lays the groundwork for accommodating new MemoryLimiter flags introduced in 37.2.
1 parent cf43fac commit b07fcfa

18 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎build.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ subprojects {
171171
// to Java 8 so their bytecode stays consumable by Java 8 projects, mirroring the
172172
// java-library pin above.
173173
plugins.withId("com.android.library") {
174-
configure<com.android.build.gradle.BaseExtension> {
174+
configure<com.android.build.api.dsl.LibraryExtension> {
175175
compileOptions {
176176
sourceCompatibility = JavaVersion.VERSION_1_8
177177
targetCompatibility = JavaVersion.VERSION_1_8

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ sqldelight = "2.3.2"
4949
# Android
5050
targetSdk = "37"
5151
compileSdk = "37"
52+
compileSdkMinor = "2"
5253
minSdk = "21"
5354

5455
[plugins]

‎sentry-android-core/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ plugins {
1212

1313
android {
1414
compileSdk = libs.versions.compileSdk.get().toInt()
15+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1516
namespace = "io.sentry.android.core"
1617

1718
defaultConfig {

‎sentry-android-distribution/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88

99
android {
1010
compileSdk = libs.versions.compileSdk.get().toInt()
11+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1112
namespace = "io.sentry.android.distribution"
1213

1314
defaultConfig { minSdk = libs.versions.minSdk.get().toInt() }

‎sentry-android-fragment/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins {
1111

1212
android {
1313
compileSdk = libs.versions.compileSdk.get().toInt()
14+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1415
namespace = "io.sentry.android.fragment"
1516

1617
defaultConfig {

‎sentry-android-integration-tests/sentry-uitest-android-critical/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ plugins {
99

1010
android {
1111
compileSdk = libs.versions.compileSdk.get().toInt()
12+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1213
namespace = "io.sentry.uitest.android.critical"
1314

1415
signingConfigs {

‎sentry-android-integration-tests/sentry-uitest-android-macrobenchmark/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
android {
99
namespace = "io.sentry.uitest.android.macrobenchmark"
1010
compileSdk = libs.versions.compileSdk.get().toInt()
11+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1112

1213
defaultConfig {
1314
// Macrobenchmark requires API 23+.

‎sentry-android-integration-tests/sentry-uitest-android/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins {
1313

1414
android {
1515
compileSdk = libs.versions.compileSdk.get().toInt()
16+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1617
namespace = "io.sentry.uitest.android"
1718

1819
defaultConfig {

‎sentry-android-integration-tests/test-app-size/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ plugins {
66
android {
77
namespace = "io.sentry.tests.size"
88
compileSdk = libs.versions.compileSdk.get().toInt()
9+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
910

1011
defaultConfig {
1112
applicationId = "io.sentry.tests.size"

‎sentry-android-navigation/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins {
1111

1212
android {
1313
compileSdk = libs.versions.compileSdk.get().toInt()
14+
compileSdkMinor = libs.versions.compileSdkMinor.get().toInt()
1415
namespace = "io.sentry.android.navigation"
1516

1617
defaultConfig {

0 commit comments

Comments
 (0)