Files for native, build file todo

pull/1/head
Roman Elizarov 6 years ago
parent 765d1db9a9
commit 2c8e91fd75
  1. 1
      native/build.gradle
  2. 4
      native/src/main/kotlin/ActualPlatform.kt
  3. 8
      native/src/test/kotlin/ActualPlatformTest.kt
  4. 1
      settings.gradle

@ -0,0 +1,4 @@
actual class Platform actual constructor() {
actual fun platform(): String = "platform-native"
}

@ -0,0 +1,8 @@
import kotlin.test.*
class ActualPlatformTest {
@Test
fun testPlatform() {
assertEquals("platform-native", Platform().platform())
}
}

@ -3,3 +3,4 @@ rootProject.name = 'KotlinMultiplatformPlayground'
include 'common'
include 'jvm'
include 'js'
include 'native'

Loading…
Cancel
Save