apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion rootProject.ext.android.compileSdkVersion

    defaultConfig {
        minSdkVersion rootProject.ext.android.minSdkVersion
        targetSdkVersion rootProject.ext.android.targetSdkVersion
        versionCode 1
        versionName  "${MOGO_TANLU_VERSION}"

        consumerProguardFiles "consumer-rules.pro"
    }

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

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation rootProject.ext.dependencies.kotlinstdlibjdk7
    implementation rootProject.ext.dependencies.rxjava
    implementation rootProject.ext.dependencies.rxandroid

    implementation rootProject.ext.dependencies.cossdk, {
        exclude group: 'com.zhidao.utils', module: 'utils'
    }
    implementation rootProject.ext.dependencies.videoprocessor
    compileOnly 'com.elegant.network:network:1.1.28'

    if (Boolean.valueOf(RELEASE)) {
        api "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}"
    } else {
        api project(':foudations:mogo-network')
    }

}

apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
