plugins {
    id "com.android.application"
    id "kotlin-android"
    id "dev.flutter.flutter-gradle-plugin"
}

android {
    namespace 'com.app.cuacfm'
    compileSdkVersion 35
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    lintOptions {
        disable "InvalidPackage"
    }

    defaultConfig {
        applicationId "com.app.cuacfm.radio.coruna"
        minSdkVersion 23
        targetSdkVersion 35
        versionCode 28
        versionName "3.5.0"
        multiDexEnabled true
        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
    }

    //flutter build appbundle
    signingConfigs {
        release {
            keyAlias "i*****"
            keyPassword "1*******"
            storeFile file("/Users/User/Desktop/keystore")
            storePassword "*******e"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled false
            shrinkResources false
        }
    }
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}

flutter {
    source "../.."
}

dependencies {
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10"
    testImplementation 'junit:junit:4.13.2'
    implementation 'com.google.android.gms:play-services-basement:18.0.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    implementation 'androidx.palette:palette:1.0.0'
}

apply plugin: "com.google.gms.google-services"
