Update gradle (#437)

This commit is contained in:
LoveSy 2021-03-31 14:19:37 +08:00 committed by GitHub
parent 989e9e1bb6
commit eecef24179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -167,7 +167,7 @@ dependencies {
val markwonVersion = "4.6.2"
val okhttpVersion = "4.9.1"
annotationProcessor("com.github.bumptech.glide:compiler:$glideVersion")
implementation("androidx.activity:activity:1.2.1")
implementation("androidx.activity:activity:1.2.2")
implementation("androidx.browser:browser:1.3.0")
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
implementation("androidx.core:core:1.3.2")

View File

@ -179,7 +179,8 @@ android {
fun findInPath(executable: String): String? {
val pathEnv = System.getenv("PATH")
return pathEnv.split(File.pathSeparator).map { folder ->
Paths.get("${folder}${File.separator}${executable}").toFile()
Paths.get("${folder}${File.separator}${executable}${if (isWindows) ".exe" else ""}")
.toFile()
}.firstOrNull { path ->
path.exists()
}?.absolutePath

@ -1 +1 @@
Subproject commit b012241d59c3496960159e02c0f2e5787275bc3a
Subproject commit d472277c2773399148be6bf2e03ea21fd59b1dd6