plugins {
    alias(libs.plugins.androidLibrary)
    alias(libs.plugins.kotlinAndroid)
}

val appConfig = findProperty("app") as Map<*, *>



android {
    namespace = "com.remax.notification"
    compileSdk = 36

    defaultConfig {
        minSdk = 24

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles("consumer-rules.pro")
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "proguard-rules.pro"
            )
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_11
        targetCompatibility = JavaVersion.VERSION_11
    }
    kotlinOptions {
        jvmTarget = "11"
    }

    kotlinOptions {
        jvmTarget = "11"
    }
    buildFeatures {
        viewBinding = true
        buildConfig = true
    }
}

dependencies {
    implementation(libs.androidx.core.ktx)
    implementation(libs.appcompat)
    implementation(libs.material)
    implementation(project(":core:architecture"))
    implementation(project(":StatisticReporter"))
    testImplementation(libs.junit)
    androidTestImplementation(libs.androidx.test.ext.junit)
    androidTestImplementation(libs.espresso.core)

    // Gson for JSON parsing
    implementation(libs.gson)

    // WorkManager for background tasks
    implementation(libs.androidx.work.runtime.ktx)

    // Startup for WorkManager initialization
    implementation(libs.startup)
    implementation(libs.androidx.lifecycle.process)
    implementation(project(":base"))

    // Firebase Messaging for FCM
    implementation(platform(libs.firebase.bom))
    implementation(libs.firebase.messaging)

}