diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-03 21:18:33 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-03 21:18:33 -0600 |
commit | c7039b6b0f6ab0f99fefecac07196ada6da2221a (patch) | |
tree | ab598ce96300b71607f9501bbb52b5ac6ea4528c /shared/src/commonMain | |
download | etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.tar.gz etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.tar.bz2 etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.zip |
Inits the project
Diffstat (limited to 'shared/src/commonMain')
-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 |