apply from: rootProject.file(files.lib_app_gradle)
apply plugin: 'kotlin-parcelize'

android {
    namespace "dev.http"

    defaultConfig {
        versionCode versions.dev_http_manager_versionCode
        versionName versions.dev_http_manager_versionName
        // DevHttpManager Module Version
        buildConfigField "int", "DevHttpManager_VersionCode", "${versions.dev_http_manager_versionCode}"
        buildConfigField "String", "DevHttpManager_Version", "\"${versions.dev_http_manager_versionName}\""
        // DevApp Module Version
        buildConfigField "int", "DevApp_VersionCode", "${versions.dev_app_versionCode}"
        buildConfigField "String", "DevApp_Version", "\"${versions.dev_app_versionName}\""
    }
}

// 是否发布版本
def isPublishing = false

dependencies {
    // OkHttp3 网络请求框架 https://github.com/square/okhttp
    api deps_lib.common.okhttp3
    // Retrofit 网络请求库  https://github.com/square/retrofit
    api deps_lib.common.retrofit

    if (isPublishing) {
        // 打包时使用
        api deps.dev.dev_app
    } else {
        // 编译时使用
        api project(':DevApp')
    }
}

// tasks-build-assemble
// publishing-publishReleasePublicationToXXXXXRepository
if (isPublishing) {
    apply from: rootProject.file(files.sonatype_upload_android)
}