aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsViewModel.kt
AgeCommit message (Collapse)Author
2023-09-11[android] Upgrade AGP, Kotlin plugin, JDK + StateFlow fixesIván Ávalos
2022-05-20- [shared] unitsFlow exposed to allow access to unfiltered units.Iván Ávalos
- [android] Improved memory usage by using unitsFlow in map. - [ios] Not rewritten yet, filter won't work.
2022-03-10- Card on map now updates info when there is a changeIván Ávalos
- Huge device list performance improvements on search and updates
2022-01-31Attach tickerFlow to viewModelScope in an attempt to bind it to app ↵Iván Ávalos
lifecycle more effectively
2022-01-31Tries to fix the units update issueIsidro Henoch
2022-01-20Added 2022 to copyright. Damn, I forgot we were in 2022.Iván Ávalos
2022-01-20Added license headers and removed unused importsIván Ávalos
2022-01-18More improvements to zoomIván Ávalos
2022-01-18Improvements to zoom on UnitMapFragment.ktIván Ávalos
2022-01-17Implemented timer that fetches units every 10 seconds, and updated map to ↵Iván Ávalos
work with timer
2022-01-16Fixed initial zoom issue and refactored layers into MapLayer in shared moduleIván Ávalos
2022-01-16Added attribution and refactored map layers codeIván Ávalos
2022-01-16Default map changed to OpenStreetMap.fr (because .org one doesn't work), and ↵Iván Ávalos
now each map URL has its own cache dir
2022-01-15Improved loading indicators, improved layout semantics, added translations ↵Iván Ávalos
and changed default view to MAP
2022-01-12Implemented map layer switching and updated strings.xmlIván Ávalos
2022-01-11Implemented polygon geofencesIván Ávalos
2022-01-04Finishes the markers functionalityIsidro Henoch
2021-12-30- ViewModel LiveData no longer externally mutable.Iván Ávalos
- Observers in fragments now owned by viewLifecycleOwner. - Disabled center animation on MapFragment startup - Search filter now triggered automatically. - Case insensitive filter logic.
2021-12-30Center map on device clickIván Ávalos
2021-12-15Updates the devices listIsidro Henoch
- The unit items now react to user interaction, they display and change their appearance on click - The adapter has a callback to manage the different options - Minor changes to dimen values
2021-12-11Adds the search behaviourIsidro Henoch
- Updates units_activity to include a search input - Adds the search functionality to the Units VM - Adds the required events to the Units Activity to perform the search
2021-12-08WIP: Implements the basic structure for the units list/mapIsidro Henoch
- Updates the Devices and Positions APIs to properly construct the Url's query when there are null values - Adds a units controller to the shared module - Adds a devices and map fragment that each print the fetched units on the console - Adds a units view model to connect previously mentioned fragments with the units controller
2021-12-08WIP: Starts implementing the main activityIsidro Henoch
- Removes the MainActivity and the shared code it was using - Adds the UnitsActivity - Implements the Map/List toggle functionality