plugins {
    alias(libs.plugins.android.application)
}

android {
    namespace = "com.example.jarvis_stts"
    compileSdk {
        version = release(36) {
            minorApiLevel = 1
        }
    }

    defaultConfig {
        applicationId = "com.example.jarvis_stts"
        minSdk = 24
        targetSdk = 36
        versionCode = 1
        versionName = "1.0"
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        ndk {
            abiFilters.addAll(listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64"))
        }
    }

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

dependencies {
    implementation("net.java.dev.jna:jna:5.13.0@aar")
    //implementation("org.vosk:vosk-android:0.3.45")
    // OkHttp für Netzwerkanfragen an Telegram
    implementation("com.alphacephei:vosk-android:0.3.45"){
        exclude(group = "net.java.dev.jna", module = "jna")
    }
    implementation("com.squareup.okhttp3:okhttp:4.12.0")
    // Coroutinen für Hintergrund-Prozesse (Polling)
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
    implementation(libs.androidx.core.ktx)
    implementation(libs.androidx.appcompat)
    implementation(libs.material)
    implementation(libs.androidx.activity)
    implementation(libs.androidx.constraintlayout)
    testImplementation(libs.junit)
    androidTestImplementation(libs.androidx.junit)
    androidTestImplementation(libs.androidx.espresso.core)
}