diff --git a/native/build.gradle b/native/build.gradle new file mode 100644 index 0000000..8826b52 --- /dev/null +++ b/native/build.gradle @@ -0,0 +1 @@ +// todo \ No newline at end of file diff --git a/native/src/main/kotlin/ActualPlatform.kt b/native/src/main/kotlin/ActualPlatform.kt new file mode 100644 index 0000000..8479c82 --- /dev/null +++ b/native/src/main/kotlin/ActualPlatform.kt @@ -0,0 +1,4 @@ + +actual class Platform actual constructor() { + actual fun platform(): String = "platform-native" +} diff --git a/native/src/test/kotlin/ActualPlatformTest.kt b/native/src/test/kotlin/ActualPlatformTest.kt new file mode 100644 index 0000000..801afd9 --- /dev/null +++ b/native/src/test/kotlin/ActualPlatformTest.kt @@ -0,0 +1,8 @@ +import kotlin.test.* + +class ActualPlatformTest { + @Test + fun testPlatform() { + assertEquals("platform-native", Platform().platform()) + } +} diff --git a/settings.gradle b/settings.gradle index ef158d1..7c0d897 100644 --- a/settings.gradle +++ b/settings.gradle @@ -3,3 +3,4 @@ rootProject.name = 'KotlinMultiplatformPlayground' include 'common' include 'jvm' include 'js' +include 'native'