build.gradle 4.17 KB
buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.2'


    aaptOptions.cruncherEnabled = false
    aaptOptions.useNewCruncher = false

    useLibrary 'org.apache.http.legacy'

    dexOptions {
        javaMaxHeapSize "4g"
    }

    sourceSets { main { jni.srcDirs = [] } }

    defaultConfig {
        applicationId "com.cnlive.goldenline"
        minSdkVersion 17
        targetSdkVersion 22
        versionCode 60
        versionName "3.0.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


        ndk {
            moduleName "gold"
            ldLibs "log", "z", "m"
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }

        multiDexEnabled true
    }

    signingConfigs {
        myConfig {
            storeFile file("GoldenLine.keystore")
            storePassword "123456"
            keyAlias "goldenline.keystore"
            keyPassword "123456"
            v2SigningEnabled false
        }
    }

    packagingOptions {
        exclude '.readme'
    }

    buildTypes {

        debug {
            // 显示Log, 在java代码中的调用方式为:BuildConfig.LOG_DEBUG
            buildConfigField "boolean", "LOG_DEBUG", "true"
//            signingConfig signingConfigs.myConfig
            minifyEnabled false
            zipAlignEnabled true
            signingConfig signingConfigs.myConfig
        }

        release {
            // 不显示Log, 在java代码中的调用方式为:BuildConfig.LOG_DEBUG
            buildConfigField "boolean", "LOG_DEBUG", "true"
            signingConfig signingConfigs.myConfig
            minifyEnabled true
            zipAlignEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    lintOptions {
        checkReleaseBuilds false
    }
    dataBinding {
        enabled = true
    }
}

repositories {
    flatDir { dirs 'libs' }
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':PushSDK')
    compile files('libs/libcnliveuser.jar')

    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile(name: 'turquoise-release', ext: 'aar')
    testCompile 'org.testng:testng:6.9.6'
    provided files('runtime/MiguSDK2.0_203.jar')

    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true;
    }

    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:gridlayout-v7:23.4.0'
    compile 'com.jakewharton:butterknife:8.2.1'
    compile 'com.squareup.okhttp:okhttp:2.0.0'
    compile 'com.facebook.fresco:imagepipeline-okhttp:0.9.0'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'de.greenrobot:greendao:2.0.0'
    compile 'com.jiechic.library:xUtils:2.6.14'
    compile 'com.facebook.fresco:fresco:0.9.0'
    compile 'com.orhanobut:logger:1.15'
    compile 'org.greenrobot:eventbus:3.0.0'
    compile 'com.commit451:NativeStackBlur:1.0.2'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'jp.wasabeef:glide-transformations:2.0.1'
    compile 'org.igniterealtime.smack:smack-android-extensions:4.1.5'
    compile 'org.igniterealtime.smack:smack-tcp:4.1.5'
    compile 'com.timehop.stickyheadersrecyclerview:library:[0.4.3]@aar'
    compile 'com.github.iwgang:countdownview:2.1.3'
    compile 'com.android.support:multidex:1.0.0'
    compile 'com.github.ctiao:dfm:0.4.1'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'org.testng:testng:6.9.6'
    testCompile 'junit:junit:4.12'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.2.1'
}