apply plugin: 'com.android.application'
//apply plugin: 'me.tatarka.retrolambda'

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId "cn.garymb.ygomobile"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 360300226
        versionName "3.6.3"
        flavorDimensions "versionCode"
        vectorDrawables.useSupportLibrary = true
        ndk {
            abiFilters "armeabi-v7a","x86"
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    productFlavors {
        cn {
            manifestPlaceholders = [APP_ID: "0b6f110306"]
        }
        en {
            applicationIdSuffix ".EN"
            manifestPlaceholders = [APP_ID: "9c66525dfa"]
        }
        ko {
            applicationIdSuffix ".KO"
            manifestPlaceholders = [APP_ID: "0488398d8a"]
        }
    }
    buildTypes {
        debug {
            applicationIdSuffix ".debug"
            shrinkResources false
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        release {
            shrinkResources false
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            assets.srcDirs = ['assets']
            jniLibs.srcDirs = ['libs']
        }
        en {
            assets.srcDirs = ['assets_en']
        }
        ko {
            assets.srcDirs = ['assets_ko']
        }
    }
    lintOptions {
        ignoreWarnings true
        checkReleaseBuilds false
        abortOnError false
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
    }
    aaptOptions {
        noCompress 'dll', "config"
    }
//    buildToolsVersion '28.0.3'
}

repositories {
    flatDir {
        dirs 'libs'
    }
}
dependencies {
    implementation 'junit:junit:4.12'
    implementation project(':libcore')
    //support-annotations，support-vector-drawable
//    implementation 'com.android.support:appcompat-v7:' + rootProject.ext.supportVersion
//    implementation 'com.android.support:recyclerview-v7:' + rootProject.ext.supportVersion
//    implementation 'com.android.support:design:' + rootProject.ext.supportVersion

    implementation 'org.jdeferred:jdeferred-android-aar:1.2.4'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation('com.github.chrisbanes.photoview:library:1.2.4') {
        implementation 'com.github.chrisbanes.photoview:library:1.2.4'
        exclude group: 'com.android.support', module: 'support-v4'             //
    }
    implementation "org.igniterealtime.smack:smack-android-extensions:4.3.0"
    implementation "org.igniterealtime.smack:smack-tcp:4.3.0"
    //
    implementation 'org.greenrobot:eventbus:3.0.0'
    implementation 'com.tubb.smrv:swipemenu-recyclerview:5.4.0'
    //
    implementation(name: 'libWindbot', ext: 'aar')

    implementation 'com.nightonke:boommenu:2.1.0'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //
    implementation(name: 'paysdk-release-1.2.4', ext: 'aar')
    //dialog库
    implementation(name: 'dialogutils2-release', ext: 'aar')
    //recyclerview的adapter库
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.0.0'
    //图片选择
    implementation 'com.yuyh.imgsel:library:2.0.6'
    //跨进程SharedPreferencesPlus工具
    implementation 'com.github.zhangliangming:PreferencesProvider:v1.3'
    //Tencent bugly
    implementation 'com.tencent.bugly:crashreport_upgrade:latest.release'
    implementation 'com.tencent.bugly:nativecrashreport:latest.release'
    //http请求库
    implementation 'com.squareup.okhttp3:okhttp:3.12.0'

}
