chore: initial commit
This commit is contained in:
9
shared/src/commonMain/kotlin/su/reya/coop/Greeting.kt
Normal file
9
shared/src/commonMain/kotlin/su/reya/coop/Greeting.kt
Normal file
@@ -0,0 +1,9 @@
|
||||
package su.reya.coop
|
||||
|
||||
class Greeting {
|
||||
private val platform = getPlatform()
|
||||
|
||||
fun greet(): String {
|
||||
return "Hello, ${platform.name}!"
|
||||
}
|
||||
}
|
||||
7
shared/src/commonMain/kotlin/su/reya/coop/Platform.kt
Normal file
7
shared/src/commonMain/kotlin/su/reya/coop/Platform.kt
Normal file
@@ -0,0 +1,7 @@
|
||||
package su.reya.coop
|
||||
|
||||
interface Platform {
|
||||
val name: String
|
||||
}
|
||||
|
||||
expect fun getPlatform(): Platform
|
||||
Reference in New Issue
Block a user