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

android {
    namespace 'com.qqsdk.livevideo'
    compileSdk 34

    defaultConfig {
        applicationId "cn.easyrtc.device"
        minSdk 24
        targetSdk 34
        versionCode 20250108
        versionName '2.0.25.0108'

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    sourceSets {
        main {
            // 包含多个 jniLibs 目录
            jniLibs.srcDirs = ["src/rtcsample/libs", "src/rtcsample/jni/libs"]
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    applicationVariants.all { variant ->
        variant.outputs.all { output ->
            def fileName = "EasyRTC_${variant.versionName}.apk"
            output.outputFileName = fileName
        }
    }
}

dependencies {

    implementation libs.appcompat
    implementation libs.material
    implementation libs.annotation.jvm
    testImplementation libs.junit
    androidTestImplementation libs.ext.junit
    androidTestImplementation libs.espresso.core
    implementation libs.immersionbar
}