diff options
Diffstat (limited to 'shared/src/commonMain/kotlin')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt | 7 | ||||
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt new file mode 100644 index 0000000..68b4100 --- /dev/null +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt @@ -0,0 +1,7 @@ +package mx.trackermap.TrackerMap + +class Greeting { + fun greeting(): String { + return "Hello, ${Platform().platform}!" + } +}
\ No newline at end of file diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt new file mode 100644 index 0000000..9f39005 --- /dev/null +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt @@ -0,0 +1,5 @@ +package mx.trackermap.TrackerMap + +expect class Platform() { + val platform: String +}
\ No newline at end of file |