Android配置config.gradle

Android配置config.gradle,第1张

Android配置config.gradle
1.config.gradle的内容
ext {
    environment = [
            "publish"         : "publish",
            "testA"           : "testA",
            "testB"           : "testB",
            "gray"            : "gray",
            "environmentNow"  : "environmentNow",
            //每次上线前记得检查下面的值
            "environmentValue": "gray"
    ]

    versions = [
            "buildToolsVersion": "30.0.0",
            "compileSdkVersion": 29,
            "minSdkVersion"    : 21,
            "targetSdkVersion" : 29,
            "versionCode"      : 24,
            "versionName"      : "1.4.4"
    ]

    dependencies = [
            "rxjava_version"   : "2.2.21",
    ]
}

2.引用config.gradle

项目的build.gradle中buildscript{}中添加
buildscript {
    apply from: 'config.gradle'
}

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5717068.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-18
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存