apply plugin: 'com.android.application'

android {
    namespace "com.streamplayer"
    compileSdk 35

    defaultConfig {
        applicationId "com.streamplayer"
        minSdk 24
        targetSdk 35
        versionCode 100111
        versionName "10.1.11"
        buildConfigField "String", "DEVICE_REGISTRY_URL", '"http://194.163.191.200:4000"'
    }

    buildTypes {
                release {
                    minifyEnabled false
                    signingConfig signingConfigs.debug
                    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    lint {
        checkReleaseBuilds = false
        abortOnError = false
    }

    buildFeatures {
        buildConfig = true
    }

    packaging {
        resources {
            excludes += 'META-INF/com.android.tools/proguard/coroutines.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'androidx.recyclerview:recyclerview:1.3.2'

    // Media3 para reproduccion de video (Android TV optimizado)
    implementation 'androidx.media3:media3-exoplayer:1.5.0'
    implementation 'androidx.media3:media3-exoplayer-hls:1.5.0'
    implementation 'androidx.media3:media3-datasource-okhttp:1.5.0'
    implementation 'androidx.media3:media3-ui:1.5.0'
    implementation 'androidx.media3:media3-ui-leanback:1.5.0'
    implementation 'androidx.media3:media3-session:1.5.0'

    // OkHttp con DNS over HTTPS
    implementation 'com.squareup.okhttp3:okhttp:4.12.0'
    implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps:4.12.0'

    // WireGuard for VPN
    implementation 'com.wireguard.android:tunnel:1.0.20210211'

    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
