aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2021-12-08 02:09:47 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2021-12-08 02:09:47 -0600
commitfce7acfe3581e5bb13bf15debb4289a1735d12ff (patch)
tree3a4000d6c933109a91add937827168ab0a18c1b7 /shared
parent75cfd4a32c5841ae9d0bf9dc3138b3c360d4b9ce (diff)
downloadetbsa-trackermap-mobile-fce7acfe3581e5bb13bf15debb4289a1735d12ff.tar.gz
etbsa-trackermap-mobile-fce7acfe3581e5bb13bf15debb4289a1735d12ff.tar.bz2
etbsa-trackermap-mobile-fce7acfe3581e5bb13bf15debb4289a1735d12ff.zip
WIP: Starts implementing the main activity
- Removes the MainActivity and the shared code it was using - Adds the UnitsActivity - Implements the Map/List toggle functionality
Diffstat (limited to 'shared')
-rw-r--r--shared/src/androidMain/kotlin/mx/trackermap/TrackerMap/Platform.kt5
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt7
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt5
-rw-r--r--shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/Platform.kt7
4 files changed, 0 insertions, 24 deletions
diff --git a/shared/src/androidMain/kotlin/mx/trackermap/TrackerMap/Platform.kt b/shared/src/androidMain/kotlin/mx/trackermap/TrackerMap/Platform.kt
deleted file mode 100644
index 8a30a29..0000000
--- a/shared/src/androidMain/kotlin/mx/trackermap/TrackerMap/Platform.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-package mx.trackermap.TrackerMap
-
-actual class Platform actual constructor() {
- actual val platform: String = "Android ${android.os.Build.VERSION.SDK_INT}"
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt
deleted file mode 100644
index 68b4100..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Greeting.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-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
deleted file mode 100644
index 9f39005..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/Platform.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-package mx.trackermap.TrackerMap
-
-expect class Platform() {
- val platform: String
-} \ No newline at end of file
diff --git a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/Platform.kt b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/Platform.kt
deleted file mode 100644
index 4c557dd..0000000
--- a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/Platform.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package mx.trackermap.TrackerMap
-
-import platform.UIKit.UIDevice
-
-actual class Platform actual constructor() {
- actual val platform: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
-} \ No newline at end of file