plugins {
  id("com.android.library")
  alias(libs.plugins.kotlin.android)
  alias(libs.plugins.gradle.versions)
}

android {
  compileSdk = libs.versions.compileSdk.get().toInt()
  namespace = "io.sentry.android"

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

  buildFeatures {
    // Determines whether to generate a BuildConfig class.
    buildConfig = false
  }

  buildTypes {
    getByName("debug") { consumerProguardFiles("proguard-rules.pro") }
    getByName("release") { consumerProguardFiles("proguard-rules.pro") }
  }

  androidComponents.beforeVariants {
    it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType)
  }
}

dependencies {
  api(projects.sentryAndroidCore)
  api(projects.sentryAndroidNdk)
  api(projects.sentryAndroidReplay)
}
