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

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"

    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
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support:support-annotations:26.+'
    testCompile 'junit:junit:4.12'
    //MVP
    compile 'com.hannesdorfmann.mosby:mvp:2.0.1'
    compile 'com.github.bumptech.glide:okhttp3-integration:4.0.0-RC1'

}

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.0.2'

    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'