1 Star 0 Fork 129

Coding365 / Android_CN_OAID

forked from 山野羡民 / Android_CN_OAID 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: "${rootDir}/gradle/git.gradle"
apply from: "${rootDir}/gradle/config.gradle"
repositories {
jcenter()
google()
maven {
url 'https://developer.huawei.com/repo/'
name '华为云调试'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
classpath "com.tencent.mm:AndResGuard-gradle-plugin:${andResGuardVersion}"
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}
}
allprojects {
repositories {
//本地的Maven仓库:{USER_HOME}/.m2/repository,如C:/Users/Administrator/.m2/repository
mavenLocal()
//项目里的aar文件
flatDir { dirs "libs" }
//JitPack提供的Maven仓库
maven { url "https://jitpack.io" }
//JFrog公司提供的Maven仓库:https://jcenter.bintray.com
jcenter()
//谷歌公司提供的Maven仓库:https://maven.google.com
google()
//Sonatype公司提供的中央库:http://central.maven.org/maven2
mavenCentral()
}
}
subprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
//增加一些编译选项
//options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
task clean(type: Delete) {
println("********** clean build **********")
println("delete project dir:" + rootProject.buildDir)
rootProject.buildDir.deleteDir()
def dir = new File(new File(".").getAbsolutePath())
println(" root dir:" + dir.getAbsolutePath())
dir.eachDirRecurse {
dir2 ->
dir2.eachDirMatch(~/build/) {
directory ->
println("delete child dir:" + directory)
directory.deleteDir()
}
}
}
Android
1
https://gitee.com/io123/Android_CN_OAID.git
git@gitee.com:io123/Android_CN_OAID.git
io123
Android_CN_OAID
Android_CN_OAID
master

搜索帮助