def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion safeExtGet('compileSdkVersion', 31)
    namespace = "io.sentry.react.expo"

    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', 21)
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    compileOnly project(':expo-modules-core')
    compileOnly 'io.sentry:sentry-android:8.49.0'
}
