apply plugin: 'com.android.application'
apply plugin: 'com.huawei.agconnect'

Properties prop = new Properties()
prop.load(new FileInputStream(file("signing.properties")))


android {
    compileSdkVersion 29
    buildToolsVersion "28.0.2"

    defaultConfig {
        applicationId "com.easemob.helpdeskdemo"
        minSdkVersion 17
        targetSdkVersion 29
        versionCode 22
        versionName "2.2"
        multiDexEnabled true

        ndk {
            //选择要添加的对应cpu类型的.so库
            abiFilters 'armeabi-v7a','arm64-v8a',"x86"
            //还可以添加 'armeabi', 'x86'

        }
    }

    dexOptions {
        javaMaxHeapSize "4g"
    }

    signingConfigs{
        release{
            storeFile file(prop['KEY_FILE'])
            storePassword prop['STORE_PASSWORD']
            keyAlias prop['KEY_ALIAS']
            keyPassword prop['KEY_PASSWORD']
        }
    }

    buildTypes {
        debug {
            //apk签名
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

        release {
            minifyEnabled false
            //apk签名
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    // 移除lint检查的error
    lintOptions{
        // 如果为true, 则只报告错误
        ignoreWarnings true
    }


    sourceSets{
        main(){
            jniLibs.srcDirs=['libs']
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

repositories {
    maven { url "https://jitpack.io" }
}


dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    //noinspection GradleCompatible
    compile 'com.android.support:support-v4:28.0.0'
    compile 'com.android.support.constraint:constraint-layout:1.1.0'
    compile 'com.github.jaouan:compoundlayout:1.0.1'
    compile project(':kefu-easeui')
    compile project(':bottomnavigation')
    compile 'com.jude:easyrecyclerview:4.0.6'
    compile 'com.daimajia.numberprogressbar:library:1.2@aar'
    // network retrofit - squareup
    compile 'com.squareup.retrofit2:retrofit:2.1.0'
    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    //rxJava
    compile 'io.reactivex:rxjava:1.2.2'
    compile 'io.reactivex:rxandroid:1.2.1'
    compile 'com.wefika:flowlayout:0.4.0'
    compile 'com.tencent.bugly:crashreport:2.2.0'
    compile 'com.android.support:multidex:1.0.1'
    // Google firebase cloud messaging start
    compile 'com.google.android.gms:play-services-base:11.4.2'
    compile 'com.google.firebase:firebase-messaging:11.4.2'
    // Google firebase cloud messaging end
    compile project(':zbarlibary')
    // hms push
    implementation 'com.huawei.hms:push:4.0.2.300'

    // meizu push
    compile 'com.meizu.flyme.internet:push-internal:3.7.0@aar' //配置集成sdk
}

// Google firebase cloud messaging ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'