Update Related instructions

This commit is contained in:
2022-02-17 23:13:28 +08:00
parent ff47e2be19
commit d12b3753ec

View File

@@ -162,6 +162,10 @@ class YukiHookXposedProcessor : SymbolProcessorProvider {
environment { environment {
if (codePath.isBlank()) error(msg = "Project CodePath not available") if (codePath.isBlank()) error(msg = "Project CodePath not available")
if (sourcePath.isBlank()) error(msg = "Project SourcePath not available") if (sourcePath.isBlank()) error(msg = "Project SourcePath not available")
/**
* Gradle 在这里自动处理了 Windows 和 Unix 下的反斜杠路径问题
* 为了防止万一还是做了一下反斜杠处理防止旧版本不支持此用法
*/
val separator = when { val separator = when {
codePath.contains("\\") -> "\\" codePath.contains("\\") -> "\\"
codePath.contains("/") -> "/" codePath.contains("/") -> "/"