mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
48 lines
1.5 KiB
Groovy
48 lines
1.5 KiB
Groovy
//file:noinspection unused
|
|
plugins {
|
|
id 'com.android.application' version '7.3.1' apply false
|
|
id 'com.android.library' version '7.3.1' apply false
|
|
id 'org.jetbrains.kotlin.android' version '1.7.22' apply false
|
|
}
|
|
|
|
ext {
|
|
devId = "0"
|
|
devUser = "fankesyooni"
|
|
userEmail = "qzmmcn@163.com"
|
|
groupId = "com.highcapable.yukihookapi"
|
|
apiVersion = "1.1.5"
|
|
repoName = "YukiHookAPI"
|
|
repoDescription = "An efficient Hook API and Xposed Module solution built in Kotlin."
|
|
licenceName = "MIT License"
|
|
licenceUrl = "https://github.com/fankes/YukiHookAPI/blob/master/LICENSE"
|
|
website = "https://github.com/fankes/YukiHookAPI"
|
|
githubConnection = "scm:git:git://github.com/path/to/repo.git"
|
|
githubDeveloperConnection = "scm:git:ssh://github.com/path/to/repo.git"
|
|
githubUrl = "https://github.com/path/to/repo"
|
|
ossName = "OSSRH"
|
|
ossUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
|
}
|
|
|
|
/**
|
|
* 获取授权文件内容 - 用于 Maven 的提交
|
|
*
|
|
* 若编译失败请将路径替换为自己的或置空
|
|
* @param name
|
|
* @return [String]
|
|
*/
|
|
static String getFileContent(String name) {
|
|
String result = ""
|
|
try {
|
|
FileReader reader = new FileReader("/Users/fankes/Project/Android/Xposed/YukiHookAPI/.gradle/" + name)
|
|
BufferedReader buff = new BufferedReader(reader)
|
|
result = buff.readLine()
|
|
buff.close()
|
|
reader.close()
|
|
} catch (Throwable ignored) {
|
|
}
|
|
return result
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
} |