hhac

How to past info.plist for Kotlin KTS

Jan 9th, 2023
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.81 KB | Source Code | 0 0
  1.  
  2. // Working in progress from https://github.com/JetBrains/kotlin-native/issues/2426
  3.  
  4. tasks.getByName("iosX64Test") {
  5.     println("Testing ios...")
  6.  
  7.     val device = project.findProperty("iosDevice")?.toString() ?: "iPhone 8"
  8.  
  9.     println("Device $device")
  10.  
  11.     dependsOn("linkDebugTestIosX64")
  12.     group = JavaBasePlugin.VERIFICATION_GROUP
  13.     description = "Runs tests for target 'ios' on an iOS simulator"
  14.  
  15.     doFirst {
  16.         kotlin.targets.forEach { target ->
  17.             if (target.targetName.startsWith("ios")) {
  18.                 println("::: target ${target.targetName}")
  19.  
  20.                 target.compilations.forEach { compilation ->
  21.                     println("::: compilation ${compilation.compilationName}")
  22.                     if (compilation.compilationName == "test") {
  23.                         compilation.defaultSourceSet {
  24.                            
  25.                         }
  26.                     }
  27.  
  28.  
  29.                 }
  30.             }
  31.         }
  32.     }
  33.  
  34.     doLast {
  35.     }
  36. }
Add Comment
Please, Sign In to add comment