

plugins {
    alias(libs.plugins.androidApplication)
    alias(libs.plugins.kotlinAndroid)
    id 'com.google.devtools.ksp' version "1.8.21-1.0.11"
}

android {
    namespace 'net.ankio.auto'
    compileSdk 34/*
    signingConfigs {
        release {
            storeFile file(RELEASE_STORE_FILE)
            storePassword RELEASE_STORE_PASSWORD
            keyAlias RELEASE_KEY_ALIAS
            keyPassword RELEASE_KEY_PASSWORD
        }
    }*/
    defaultConfig {
        applicationId "net.ankio.auto"
        minSdk 28
        targetSdk 33
        versionCode 200
        versionName "初啼 4.0.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        flavorDimensions += "version"
        productFlavors {
            create("xposed") {
                dimension = "version"
                applicationIdSuffix = ".xposed"
                versionNameSuffix = " - Xposed"
            }
            create("helper") {
                dimension = "version"
                applicationIdSuffix = ".helper"
                versionNameSuffix = " - 无障碍"
            }
        }
    }
    buildFeatures {
        viewBinding true
        aidl true
        buildConfig true
    }
    buildTypes {
        release {
            minifyEnabled false
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.debug
            applicationVariants.all { variant ->
                variant.outputs.all {
                    outputFileName = "app.apk"
                }
            }
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = '17'
    }

}

dependencies {

    implementation libs.core.ktx
    implementation libs.kotlinx.coroutines.android
    implementation libs.appcompat
    implementation libs.material
    implementation libs.androidx.navigation.fragment.ktx
    implementation libs.androidx.navigation.ui.ktx
    implementation libs.androidx.browser
    testImplementation libs.junit
    androidTestImplementation libs.androidx.test.ext.junit
    androidTestImplementation libs.espresso.core
    //主题库
    implementation libs.themeEngine
    //状态栏
    implementation libs.ultimateBarX
    //Html转换
    implementation libs.html.ktx
    //匿名统计
    implementation libs.analytics
    //gson
    implementation libs.gson
    //权限请求 支持Androidx
    implementation libs.permissionx
    //网络请求
    implementation libs.okhttp
    //xp依赖
    compileOnly libs.xposed
    //room数据库
    implementation libs.androidx.room.runtime.v251
    ksp libs.androidx.room.compiler.v251
    implementation libs.androidx.room.ktx
    //下拉列表
    implementation libs.androidx.swiperefreshlayout
    //flexbox
    implementation libs.flexbox
    //圆角
    implementation libs.round
    //js引擎
    implementation libs.rhino
    //数据库调试：adb forward tcp:8080 tcp:8080
    debugImplementation libs.androiddebuglib
   // debugImplementation libs.debug.db
    //加载库
    implementation libs.tobeyr1DialogLoading
    //kotlin反射
    implementation libs.kotlin.reflect
    //markdown解析
    implementation  libs.markdown
    //Xposed跨进程读写
    implementation libs.remotepreferences
}