plugins {
    id 'com.android.application'
    id 'ru.cleverpumpkin.proguard-dictionaries-generator'
}

android {
    compileSdk 33

    defaultConfig {
        applicationId "com.github.catvod.demo"
        minSdk 21
        targetSdk 29
        ndk { abiFilters "armeabi-v7a" }
        buildConfigField("String", "CLIENT_ID", "\"${clientId}\"")
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles 'proguard-rules.pro'
            proguardDictionaries {
                dictionaryNames = ["build/class-dictionary", "build/package-dictionary", "build/obfuscation-dictionary"]
                minLineLength 1
                maxLineLength 3
                linesCountInDictionary 100000
            }
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
}

dependencies {
    //Debug For HTTP/3
    debugImplementation 'org.chromium.net:cronet-embedded:101.4951.41'
    implementation 'com.github.thegrizzlylabs:sardine-android:0.8'
    implementation 'com.google.net.cronet:cronet-okhttp:0.1.0'
    implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.10'
    implementation 'com.google.code.gson:gson:2.10.1'
    implementation 'cn.wanghaomiao:JsoupXpath:2.5.1'
    implementation 'com.google.zxing:core:3.4.1'
    implementation 'org.jsoup:jsoup:1.15.3'
}