mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Resolve deprecated gradle function
This commit is contained in:
parent
85af94d810
commit
3c00a249c3
1 changed files with 2 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
||||||
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
|
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
|
||||||
import com.google.gms.googleservices.GoogleServicesPlugin
|
import com.google.gms.googleservices.GoogleServicesPlugin
|
||||||
import java.io.ByteArrayOutputStream
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.ZoneOffset
|
import java.time.ZoneOffset
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
|
@ -22,12 +21,8 @@ if (gradle.startParameter.taskRequests.toString().contains("standard", true)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun runCommand(command: String): String {
|
fun runCommand(command: String): String {
|
||||||
val byteOut = ByteArrayOutputStream()
|
val result = providers.exec { commandLine(command.split(" ")) }
|
||||||
project.exec {
|
return result.standardOutput.asText.get().trim()
|
||||||
commandLine = command.split(" ")
|
|
||||||
standardOutput = byteOut
|
|
||||||
}
|
|
||||||
return String(byteOut.toByteArray()).trim()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val _versionName = "1.9.8"
|
val _versionName = "1.9.8"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue