apply plugin: 'com.android.application'
apply from: 'tinker-support.gradle'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "net.arvin.wanandroid"
        minSdkVersion 14
        targetSdkVersion 28
        versionCode 6
        versionName "1.0.6"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }

    signingConfigs {
        release {
            storeFile file("arvinljw.jks")
            storePassword "123456"
            keyAlias "arvin"
            keyPassword "123456"
        }
    }

    flavorDimensions 'default'
    productFlavors {
        allpro {
            manifestPlaceholders = [BUGLY_APP_CHANNEL: "all"]
        }
        xiaomi {
            manifestPlaceholders = [BUGLY_APP_CHANNEL: "xiaomi"]
        }
        huawei {
            manifestPlaceholders = [BUGLY_APP_CHANNEL: "huawei"]
        }
    }

    buildTypes {
        debug {
            signingConfig signingConfigs.release
        }

        release {
            minifyEnabled true
            zipAlignEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation project(':baselib')
    implementation 'com.youth.banner:banner:1.4.10'
    implementation 'com.facebook.shimmer:shimmer:0.3.0'
    implementation 'com.rengwuxian.materialedittext:library:2.1.4'
    implementation('com.github.arvinljw:PictureSelector:v2.0.8') {
        exclude group: 'com.android.support'
    }
    implementation "com.android.support:multidex:1.0.3"
    implementation 'com.tencent.bugly:crashreport_upgrade:1.3.6'
    implementation 'com.tencent.tinker:tinker-android-lib:1.9.9'

    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.2'
    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.2'
    // Optional, if you use support library fragments:
    debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.2'

    implementation 'android.arch.persistence.room:runtime:1.1.1'
    annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
}