Commit 4db4fbb9 authored by Roman Sedaikin's avatar Roman Sedaikin

Added gradle task: runSoftware with enabled software rendering.

parent f6f67b81
......@@ -45,7 +45,9 @@ application {
mainClass.set("SkijaInjectSample.AppKt")
}
tasks.named<JavaExec>("run") {
val additionalArguments = mutableMapOf<String, String>()
val casualRun = tasks.named<JavaExec>("run") {
systemProperty("skiko.fps.enabled", "true")
System.getProperties().entries
.associate {
......@@ -53,6 +55,12 @@ tasks.named<JavaExec>("run") {
}
.filterKeys { it.startsWith("skiko.") }
.forEach { systemProperty(it.key, it.value) }
additionalArguments.forEach { systemProperty(it.key, it.value) }
}
tasks.register("runSoftware") {
additionalArguments += mapOf("skiko.renderApi" to "SOFTWARE")
dependsOn(casualRun)
}
tasks.withType<Test> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment