apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"
    namespace "com.fangxinxing.xxfxx"

    packagingOptions {
        pickFirst 'META-INF/INDEX.LIST'
        pickFirst 'META-INF/io.netty.versions.properties'
    }

    signingConfigs {
        config {
            keyAlias 'key0'
            keyPassword 'sinata'
            storeFile file('dwt.jks')
            storePassword 'sinata'
        }
    }

    defaultConfig {
        applicationId "com.fangxinxing.xxfxx"
        minSdkVersion 24
        targetSdkVersion 29
        versionCode 2
        versionName "1.0.1"
        multiDexEnabled true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        ndk {
            // 设置支持的SO库架构，第三方给的so库哪几种架构，就配置这几种架构
            abiFilters 'armeabi-v7a','arm64-v8a'
        }

        manifestPlaceholders = [
                JPUSH_PKGNAME : applicationId,
                JPUSH_APPKEY : "c673a73acba4d06849913fd2", //JPush 上注册的包名对应的 Appkey. Secret：8553897a9a886fb0cf467e97
                JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
        ]
    }

    buildTypes {
        release {
            minifyEnabled false
            zipAlignEnabled true
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            minifyEnabled false
            zipAlignEnabled true
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        applicationVariants.all { variant ->
            // 更新至Android Studio 3.3 gradle 4.10.1
            variant.outputs.all {
                outputFileName = "dwt_driver-${variant.versionName}-${variant.buildType.name}-${new Date().format("yyyy-MM-dd" , TimeZone.getTimeZone("GMT+08")) }.apk"
            }
        }
    }

    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }

    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

}


repositories {
    flatDir {
        dirs 'libs'
    }
}


dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation(name: 'alipaySdk-15.7.5-20200422171619', ext: 'aar')
    implementation(name: 'zl-payaccount_release', ext: 'aar') //生产BEBUG
//    implementation(name: 'zl-payaccount-release_1.2.6', ext: 'aar') //生产
//    implementation(name: 'zl-payaccount-release-1.2.6', ext: 'aar') //新测试环境
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.core:core-ktx:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation project(path: ':xldUtils')
    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'com.mobsandgeeks:android-saripaar:2.0.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'com.github.zackratos.ultimatebar:ultimatebar3:3.1.1'
    implementation 'com.aliyun.dpa:oss-android-sdk:2.9.2'
    implementation 'org.greenrobot:eventbus:3.1.1'
    implementation 'com.github.bumptech.glide:glide:4.9.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
    implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.github.xuexiangjys:XUI:1.1.3'
    implementation 'pub.devrel:easypermissions:1.3.0'
//    implementation 'pub.devrel:easypermissions:2.0.1'
//    implementation 'liji.library.dev:citypickerview:5.2.1'
    implementation 'com.ypx.yimagepicker:androidx:3.1.3'
    implementation files('libs/umeng-common-2.2.5.jar')
    implementation files('libs/umeng-share-core-7.0.0.jar')
    implementation files('libs/umeng-share-QQ-simplify-7.0.0.jar')
    implementation files('libs/umeng-share-wechat-simplify-7.0.0.jar')
    implementation project(path: ':rxnetty')
    implementation files('libs/Msc.jar')
    implementation 'com.wang.avi:library:2.1.3'
    implementation 'com.github.mcxtzhang:SwipeDelMenuLayout:V1.3.0'
//    implementation 'com.google.zxing:core:3.3.0'
    implementation 'cn.jiguang.sdk:jpush:3.6.6'  // 此处以JPush 3.6.6 版本为例。
    implementation 'cn.jiguang.sdk:jcore:2.3.8'  // 此处以JCore 2.3.8 版本为例。
    implementation 'com.tencent.bugly:crashreport:latest.release'
//    implementation project(path: ':ChipsLayoutManager')
    implementation 'com.github.BelooS:ChipsLayoutManager:v0.3.7'

//    implementation 'com.journeyapps:zxing-android-embedded:3.5.0'
    implementation 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2'
    implementation 'cn.jzvd:jiaozivideoplayer:7.3.0'
    implementation 'com.github.promeg:tinypinyin:2.0.3'
    implementation 'top.zibin:Luban:1.1.8'

    implementation(name: 'qmf-ppplugin-android-3.1.3', ext: 'aar')
    implementation project(path: ':easyfloat')
    //http日志拦截器
    implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1'

    //证联的依赖
    implementation 'org.projectlombok:lombok:1.16.20'
    implementation 'cn.hutool:hutool-all:5.8.3'
    implementation 'org.bouncycastle:bcprov-jdk15on:1.66'
    implementation 'org.bouncycastle:bcpkix-jdk15on:1.66'
    implementation 'org.apache.commons:commons-lang3:3.7'
    implementation 'com.alibaba:fastjson:1.2.31'
    implementation 'io.github.ShawnLin013:number-picker:2.4.13'//数字选择器库
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'//加载GIF图片库
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'//阴影添加库
    implementation 'com.belerweb:pinyin4j:2.5.1'
//    //添加展示gif图片库
//    implementation 'com.github.bumptech.glide:glide:4.12.0'
//    annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
    //刷新
    implementation 'io.github.scwang90:refresh-layout-kernel:2.0.6'      //核心必须依赖
    implementation 'io.github.scwang90:refresh-header-classics:2.0.6'    //经典刷新头
    implementation 'io.github.scwang90:refresh-footer-classics:2.0.6'    //经典加载

    //融云 云录制使用
//    implementation 'cn.rongcloud.sdk:im_lib:5.1.9.7' // 即时通讯基础能力库
//    implementation 'cn.rongcloud.sdk:rtc_lib:5.1.17.1' // 音视频通话基础能力库
    // 基础版（LTS版本，推荐）
    implementation 'com.arthenica:mobile-ffmpeg-full:4.4'
    //图片压缩
    implementation 'top.zibin:Luban:1.1.8'
}
