diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-08 02:09:47 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-08 02:09:47 -0600 |
commit | d2ee6a21355c390a4aaefc6ea847060c8e47c6ae (patch) | |
tree | 3a4000d6c933109a91add937827168ab0a18c1b7 /shared | |
parent | c80ece3087b862e1849ad5c2972b9b13fec2eb3f (diff) | |
download | etbsa-trackermap-mobile-d2ee6a21355c390a4aaefc6ea847060c8e47c6ae.tar.gz etbsa-trackermap-mobile-d2ee6a21355c390a4aaefc6ea847060c8e47c6ae.tar.bz2 etbsa-trackermap-mobile-d2ee6a21355c390a4aaefc6ea847060c8e47c6ae.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')
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 |