aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/commonMain/kotlin/mx')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt7
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt5
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