build.gradle 1.43 KB
Newer Older
1 2 3 4
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
万齐军 committed
5
apply from: "../publish.gradle"
6 7 8 9 10 11 12 13 14 15
kapt {
    arguments {
        arg("AROUTER_MODULE_NAME", "webview")
    }
}
android {
    compileSdkVersion 28


    defaultConfig {
16
        minSdkVersion 21
17 18 19 20
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"

YKai committed
21
        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [AROUTER_MODULE_NAME: "webview"]
            }
        }
    }

    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 "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    kapt 'com.alibaba:arouter-compiler:1.2.2'
konghaorui committed
50
    api rootProject.ext.dependencies["ydl-user-router"]
konghaorui committed
51
    api fileTree(include: ['*.jar'], dir: 'libs')
YKai committed
52
    api 'com.tencent.tbs.tbssdk:sdk:43903'
万齐军 committed
53 54 55 56 57

    api project(':ydl-platform')
    implementation project(":api:user")
    implementation project(":api:dynamic")
    implementation project(":api:im")
58 59
}