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' }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)