加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
zp 提交于 2021-02-02 16:27 . develop | 使用viewBinding实例
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
dependenciesLocal = false
}
File localFile = file('local.properties')
if (localFile != null && localFile.exists()) {
def properties = new Properties()
properties.load(new FileInputStream(localFile))
ext.dependenciesLocal = properties.getOrDefault("dependenciesLocalProject", false)
// if (ext.dependenciesLocal) {
// apply from: '../Framework/config.gradle'
// }
}
System.out.println("dependenciesLocal: " + ext.dependenciesLocal)
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.0"
classpath 'com.billy.android:cc-register:1.1.2' //使用最新版
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
credentials { username authToken }
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化