apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
//apply plugin: 'kotlin-android-extensions'
//启用Jitpack 插件
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.forJrking'

android {
    compileSdkVersion 29
    buildToolsVersion "30.0.1"

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles "consumer-rules.pro"
    }

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

    libraryVariants.all {
        generateBuildConfigProvider?.get()?.enabled = false
    }
    
    compileOptions {
        kotlinOptions.freeCompilerArgs += ['-module-name', "com.forjrking.lubankt.library"]
    }
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])

    // region kt相关支持
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
    // endregion

    // 协程支持
    implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
    // liveData
    implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
    //图片解码
    implementation 'androidx.exifinterface:exifinterface:1.3.2'
    //进程级别
    implementation 'androidx.lifecycle:lifecycle-process:2.2.0'
    implementation 'androidx.fragment:fragment-ktx:1.2.5'
    compileOnly ("com.github.bumptech.glide:glide:4.11.0@aar")

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}
