代码拉取完成,页面将自动刷新
同步操作将从 山野羡民/Android_CN_OAID 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
classpath "com.tencent.mm:AndResGuard-gradle-plugin:${andResGuardVersion}"
}
}
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()
}
}
}
@SuppressWarnings(["GrMethodMayBeStatic", "unused"])
def gitGitCommitNumber() {
try {
// See https://www.jianshu.com/p/1f81af606e41
def cmd = 'git rev-list HEAD --first-parent --count'
return cmd.execute().text.trim().toInteger()
} catch (ignored) {
return 1
}
}
@SuppressWarnings(["GrMethodMayBeStatic", "unused"])
def getGitLatestTag() {
try {
// See https://www.jianshu.com/p/1f81af606e41
def cmd = 'git describe --tags'
return cmd.execute().text.trim()
} catch (ignored) {
return "1.0.0"
}
}
@SuppressWarnings(["GrMethodMayBeStatic", "unused"])
def getGitBranch() {
try {
// See https://www.jianshu.com/p/1f81af606e41
def cmd = 'git symbolic-ref --short -q HEAD'
return cmd.execute().text.trim()
} catch (ignored) {
return "unknown"
}
}
@SuppressWarnings(["GrMethodMayBeStatic", "unused"])
def getGitLatestCommitHash() {
try {
// See https://www.cnblogs.com/fuyaozhishang/p/7675551.html
def cmd = 'git rev-parse HEAD'
return cmd.execute().text.trim()
} catch (ignored) {
return "unknown"
}
}
@SuppressWarnings(["GrMethodMayBeStatic", "unused"])
def getGitLatestCommitHashShort() {
try {
// See https://www.jianshu.com/p/1f81af606e41
def cmd = 'git rev-parse --short HEAD'
return cmd.execute().text.trim()
} catch (ignored) {
return "unknown"
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。