build.gradle 1.3 KB
Newer Older
konghaorui committed
1 2 3 4 5
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply from: "../maven_push.gradle"
konghaorui committed
6

konghaorui committed
7 8 9 10 11 12 13 14 15 16
android {
    compileSdkVersion 28


    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"

YKai committed
17
        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
konghaorui committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

42 43 44 45
    api(rootProject.ext.dependencies["ydl-ijkplayer-jjdxm"]) {
        exclude group: 'com.android.support', module: 'appcompat-v7'
    }

konghaorui committed
46 47 48 49 50 51 52 53 54 55 56 57
    if (rootProject.ext.dev_mode){
        //开发时使用
        api project(':ydl-platform')
    }else {
        //发布时使用
        api(rootProject.ext.dependencies["ydl-platform"]) {
            transitive = true
        }
    }

}