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

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId "cn.garymb.ygomobile"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 33020610
        versionName "3.3.2"
        flavorDimensions "versionCode"
        vectorDrawables.useSupportLibrary = true
        ndk {
            abiFilters "armeabi-v7a"
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    productFlavors {
        core {
            applicationIdSuffix ""
        }
        mycard {

        }
    }
    buildTypes {
        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']
        }
    }
    lintOptions {
        ignoreWarnings true
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
    }
    aaptOptions {
        noCompress 'dll',"config"
    }
    buildToolsVersion '27.0.3'
}

    repositories {
        flatDir {
            dirs 'libs'
        }
    }
dependencies {
    implementation 'junit:junit:4.12'
    implementation project(':libcore')
    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.android.support:support-annotations:' + rootProject.ext.supportVersion
    implementation 'com.android.support:recyclerview-v7:' + rootProject.ext.supportVersion
    implementation 'com.android.support:design:' + rootProject.ext.supportVersion
    implementation 'com.android.support:appcompat-v7:' + rootProject.ext.supportVersion
    implementation 'com.android.support:support-vector-drawable:' + rootProject.ext.supportVersion
    //
    implementation 'org.greenrobot:eventbus:3.0.0'
    implementation 'com.tubb.smrv:swipemenu-recyclerview:5.4.0'
    //
    implementation(name: 'libWindbot', ext: 'aar')
    //mycardImplementation(name: 'xwalk_core_library-22.52.561.4', ext: 'aar')
    implementation 'com.nightonke:boommenu:2.1.0'
    implementation fileTree(dir: 'libs', include: ['*.jar'])

}
