Skip to content

Commit 34f0409

Browse files
fix(android): Use safeExtGet for compileSdkVersion in expo-handler
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1b1809a commit 34f0409

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/core/android/expo-handler/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
def safeExtGet(prop, fallback) {
2+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3+
}
4+
15
apply plugin: 'com.android.library'
26

37
android {
4-
compileSdkVersion 31
8+
compileSdkVersion safeExtGet('compileSdkVersion', 31)
59
namespace = "io.sentry.react.expo"
610

711
defaultConfig {
8-
minSdkVersion 21
12+
minSdkVersion safeExtGet('minSdkVersion', 21)
913
}
1014

1115
compileOptions {

0 commit comments

Comments
 (0)