Skip to content

Commit

Permalink
Samples: Enable experimental standard library API
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmat192 committed Jun 5, 2019
1 parent 90decbf commit 3329f74
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
7 changes: 6 additions & 1 deletion samples/echoServer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
kotlin("multiplatform")
}

// Add two additional presets for Raspberry Pi.
// Add two additional presets for Raspberry Pi and Linux/ARM64.
val raspberryPiPresets: List<KotlinNativeTargetPreset> = listOf("linuxArm32Hfp", "linuxArm64").map {
kotlin.presets[it] as KotlinNativeTargetPreset
}
Expand Down Expand Up @@ -44,4 +44,9 @@ kotlin {
getByName(mainSourceSetName).dependsOn(echoServerMain)
}
}

// Enable experimental stdlib API used by the sample.
sourceSets.all {
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
}
}
5 changes: 5 additions & 0 deletions samples/libcurl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ kotlin {
}
}
}

// Enable experimental stdlib API used by the sample.
sourceSets.all {
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
}
}
2 changes: 1 addition & 1 deletion samples/tensorflow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ kotlin {
}
compilations["main"].cinterops {
val tensorflow by creating {
includeDirs(tensorflowHome.resolve("/include"))
includeDirs(tensorflowHome.resolve("include"))
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions samples/torch/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ kotlin {
compilations["main"].cinterops {
val torch by creating {
includeDirs(
torchHome.resolve("/include"),
torchHome.resolve("/include/TH")
torchHome.resolve("include"),
torchHome.resolve("include/TH")
)
}
}
Expand Down
5 changes: 5 additions & 0 deletions samples/videoplayer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ kotlin {
}
}
}

// Enable experimental stdlib API used by the sample.
sourceSets.all {
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
}
}

0 comments on commit 3329f74

Please sign in to comment.