Skip to content

Commit

Permalink
Native iOS test task
Browse files Browse the repository at this point in the history
  • Loading branch information
thevery authored and ilmat192 committed Jun 15, 2018
1 parent 2e7ae98 commit 8d1b4ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions greeting/ios/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ konanArtifacts {
// The multiplatform support is disabled by default.
enableMultiplatform true
}

library('NativeLib') {
enableMultiplatform true
}

program('NativeTest') {
srcDir 'src/test/kotlin'
commonSourceSet 'test'
libraries {
artifact 'NativeLib'
}
extraOpts '-tr'
}
}

task test(dependsOn: 'compileKonanNativeTestIos_x64', type: Exec) {
def textExecutable = tasks["compileKonanNativeTestIos_x64"].artifactPath
commandLine("xcrun", "simctl", "spawn", "iPhone 8", textExecutable)
}

dependencies {
Expand Down

0 comments on commit 8d1b4ac

Please sign in to comment.