// OrganicAI Android agent — module build file.
// First green build targets the CORE agent: a controllable WebView + coroutines +
// HTTP to the worker. FCM (push/P2) and Gemini Nano are added in a later phase so
// dependency resolution for their betas can't block the core from compiling.
plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
}

android {
    namespace = "il.co.organicai.agent"
    compileSdk = 34

    defaultConfig {
        applicationId = "il.co.organicai.agent"
        minSdk = 26
        targetSdk = 34
        versionCode = 1
        versionName = "0.1.0"
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
    kotlinOptions { jvmTarget = "17" }

    buildTypes {
        release {
            isMinifyEnabled = false
        }
    }
}

dependencies {
    implementation("androidx.core:core-ktx:1.13.1")
    implementation("androidx.appcompat:appcompat:1.7.0")
    implementation("com.google.android.material:material:1.12.0")
    implementation("androidx.webkit:webkit:1.11.0")               // modern WebView APIs
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
    implementation("com.squareup.okhttp3:okhttp:4.12.0")          // HTTP to the worker
}
