Sfoglia il codice sorgente

Minor gradle cleanup

arkon 2 anni fa
parent
commit
bfd22f8f2d
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      app/build.gradle.kts

+ 3 - 2
app/build.gradle.kts

@@ -1,3 +1,4 @@
+import org.gradle.api.tasks.testing.logging.TestLogEvent
 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
 
 plugins {
@@ -283,7 +284,7 @@ tasks {
     withType<Test> {
         useJUnitPlatform()
         testLogging {
-            events("passed", "skipped", "failed")
+            events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
         }
     }
 
@@ -302,7 +303,7 @@ tasks {
     }
 
     // Duplicating Hebrew string assets due to some locale code issues on different devices
-    val copyHebrewStrings = task("copyHebrewStrings", type = Copy::class) {
+    val copyHebrewStrings by registering(Copy::class) {
         from("./src/main/res/values-he")
         into("./src/main/res/values-iw")
         include("**/*")