apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.ess.anime.wallpaper"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 32
        versionName "1.9.3"
        multiDexEnabled true
        resConfigs('zh-rCN', 'zh-rHK', 'zh-rTW')
        vectorDrawables.useSupportLibrary = true
        aaptOptions {
            ignoreAssetsPattern "!x86:!*ffprobe"
        }
    }
    buildTypes {
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        release {
            ndk {
                abiFilters 'arm64-v8a', 'armeabi-v7a'
            }
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    //apk文件重命名
    android.applicationVariants.all { variant ->
        variant.outputs.all {
            def buildType = variant.buildType.name
            outputFileName = "kanimeG${defaultConfig.versionName}-${buildType}.apk"
        }
    }
}

dependencies {
    // Android 基础库
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'androidx.viewpager2:viewpager2:1.0.0'
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
    implementation 'com.google.android.material:material:1.2.1'


    // 账户相关库
//    implementation 'com.google.firebase:firebase-core:16.0.9'
//    implementation 'com.google.firebase:firebase-storage:17.0.0'
//    implementation 'com.google.firebase:firebase-firestore:19.0.0'
    implementation 'com.tencent.bugly:crashreport:3.1.0'
    implementation 'com.tencent.bugly:nativecrashreport:3.7.1'


    // 项目相关库（引用时如果github上有写明混淆代码需加入到ProGuard）
    // ButterKnife (https://github.com/JakeWharton/butterknife)
    implementation 'com.jakewharton:butterknife:10.1.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'

    // EventBus (https://github.com/greenrobot/EventBus)
    implementation 'org.greenrobot:eventbus:3.1.1'

    // GreenDao (https://github.com/greenrobot/greenDAO) (https://github.com/yuweiguocn/GreenDaoUpgradeHelper)
    implementation 'org.greenrobot:greendao:3.3.0'
    implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.2.1'

    // AndPermission (https://github.com/yanzhenjie/AndPermission)
    implementation 'com.yanzhenjie.permission:x:2.0.1'

    // Material Dialogs (https://github.com/afollestad/material-dialogs)
    implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
    implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'

    // MaterialDateTimePicker (https://github.com/wdullaer/MaterialDateTimePicker)
    implementation 'com.wdullaer:materialdatetimepicker:4.2.3'

    // BRVAH (RecyclerView Adapter) (https://github.com/CymChad/BaseRecyclerViewAdapterHelper)
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'

    // Glide (https://github.com/bumptech/glide)
    implementation 'com.github.bumptech.glide:glide:4.15.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.15.0'

    // OkGo (https://github.com/jeasonlzy/okhttp-OkGo)
    implementation project(path: ':okserver')

    // u3d网络监听
    implementation 'com.unity3d.ads:unity-ads:3.0.0'

    // Volley (https://github.com/google/volley)
    implementation 'com.android.volley:volley:1.1.1'

    // Gson (https://github.com/google/gson)
    implementation 'com.google.code.gson:gson:2.8.5'

    // Jsoup (https://github.com/jhy/jsoup)
    implementation 'org.jsoup:jsoup:1.12.1'

    // PhotoView (https://github.com/chrisbanes/PhotoView)
    implementation 'com.github.chrisbanes:PhotoView:2.3.0'

    // TextureVideoView (https://github.com/sprylab/texturevideoview)
    implementation 'com.sprylab.android.texturevideoview:texturevideoview:1.2.1'

    // Video cache (https://github.com/danikula/AndroidVideoCache)
    implementation 'com.danikula:videocache:2.7.1'

    // AgentWeb (https://github.com/Justson/AgentWeb)
    implementation 'com.just.agentweb:agentweb:4.0.3-alpha@aar'
    implementation project(path: ':agentweb-filechooser')

    // QMUI (UI support by Tencent) (https://github.com/Tencent/QMUI_Android)
    implementation 'com.qmuiteam:qmui:1.2.0'

    // SmartTabLayout (https://github.com/ogaclejapan/SmartTabLayout)
    implementation 'com.ogaclejapan.smarttablayout:library:2.0.0@aar'
    implementation 'com.ogaclejapan.smarttablayout:utils-v4:2.0.0@aar'

    // 点击ripple效果 (https://github.com/balysv/material-ripple)
    implementation 'com.balysv:material-ripple:1.0.2'

    // Switch, CheckBox, RadioButton等控控件 (https://github.com/Mixiaoxiao/SmoothCompoundButton)
    implementation files('libs/smoothcompoundbuttonlibrary.jar')

    // FAB (https://github.com/Clans/FloatingActionButton)
    implementation 'com.github.clans:fab:1.6.4'

    // Label Flow (https://github.com/LillteZheng/FlowHelper)
    implementation 'com.github.LillteZheng:FlowHelper:v1.30'

    // Loading加载样式 (https://github.com/81813780/AVLoadingIndicatorView)
    implementation 'com.wang.avi:library:2.1.3'

    // 下载进度条 (https://github.com/jakob-grabner/Circle-Progress-View)
    implementation 'com.github.jakob-grabner:Circle-Progress-View:1.4'

    // 仿QQ底部弹出dialog
    implementation project(path: ':actionSheetDialog')

    // 带尖角号popup window (https://github.com/jiang111/IndicatorDialog)
//    implementation 'com.github.jiang111:IndicatorDialog:2.1.0'
    implementation project(path: ':indicatorDialog')

    // 高度自定义的popup window (https://github.com/zyyoona7/EasyPopup)
    implementation 'com.github.zyyoona7:EasyPopup:1.1.2'

    // 微信/支付宝打赏 (https://github.com/didikee/AndroidDonate)
    implementation 'com.github.didikee:AndroidDonate:0.1.0'

    // 图片裁剪（https://github.com/Yalantis/uCrop）
    implementation 'com.github.yalantis:ucrop:2.2.3-native'

    // zip (https://github.com/srikanth-lingala/zip4j)
    implementation 'net.lingala.zip4j:zip4j:2.5.2'

    // ffmpeg (https://github.com/bravobit/FFmpeg-Android)
    implementation 'nl.bravobit:android-ffmpeg:1.1.7'
}

greendao {
    schemaVersion 3
}

//apply plugin: 'com.google.gms.google-services'