build.gradle 2.79 KB
apply plugin: 'com.android.library'
apply plugin: 'maven'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled true
    }

//    lintOptions {
//        abortOnError false
//    }
}

//tasks.withType(JavaCompile) {
//    options.compilerArgs << "-Xlint:unchecked"
//}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    //分包
    compile 'com.android.support:multidex:1.0.1'
    //RecyclerView 需要支持库 ,打包时已取消对其发布
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support:recyclerview-v7:26.+'
    //MVP
    compile 'com.hannesdorfmann.mosby3:mvp:3.0.4'
    compile 'com.hannesdorfmann.mosby3:viewstate:3.0.4'
    compile 'com.hannesdorfmann.mosby3:mvp-lce:3.0.4'
    compile 'com.hannesdorfmann.mosby3:mvp-nullobject-presenter:3.0.4'
    //GSON
    compile 'com.google.code.gson:gson:2.7'
    //RxJava
    compile 'io.reactivex.rxjava2:rxjava:2.1.0'
    compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
    //Retrofit
    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    compile 'com.squareup.retrofit2:converter-gson:2.0.2'
    compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    //OKhttp
    compile 'com.squareup.okhttp3:okhttp:3.8.1'
    compile 'com.squareup.okhttp3:logging-interceptor:3.8.1'
    //Java8
    compile 'net.sourceforge.streamsupport:streamsupport:1.5.5'
    compile 'net.sourceforge.streamsupport:streamsupport-cfuture:1.5.5'
    compile 'net.sourceforge.streamsupport:streamsupport-atomic:1.5.5'
    compile 'net.sourceforge.streamsupport:streamsupport-flow:1.5.5'
    compile 'net.sourceforge.streamsupport:streamsupport-literal:1.5.5'
}

ext {
    bintrayRepo = 'cnlive'  //Maven 库名称
    bintrayName = 'base'    //Maven 库内Lib包名

    publishedGroupId = 'com.cnlive'
    libraryName = 'base'
    artifact = 'cnlive'     //与包名保持一致!

    libraryDescription = 'Libs'

    siteUrl = 'http://bj.gitlab.cnlive.com/cnlive-team/CNVideoDemo'
    gitUrl = 'http://bj.gitlab.cnlive.com/cnlive-team/CNVideoDemo.git'

    libraryVersion = '0.3.4'

    developerId = 'CNlive'
    developerName = 'Granzon'
    developerEmail = 'zhuxiansong@cnlive.com'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

apply from: './from_installv1.gradle'
apply from: './from_bintrayv1.gradle'