13 Commits

Author SHA1 Message Date
Sad Ellie
dc2fdf8fa7 AllUnitsRepository is now singleton
Also moved mapping function from init of MainViewModel to repository.
2022-06-18 21:48:56 +03:00
Sad Ellie
a6f1ddee7d Refactored Units list screens
Added second ViewModel
AllUnitsRepository instead of a simple list
Added some tests
Left and right side screen are now separate
2022-06-17 23:47:46 +03:00
Sad Ellie
bc55e23e04 Fixed unit list loading 2022-06-12 12:36:10 +03:00
Sad Ellie
e034e7bfb7 Fixed logic in MainViewModel's init method 2022-06-05 16:33:28 +03:00
Sad Ellie
63d943cbb9 No more wildcard imports 2022-06-03 20:19:10 +03:00
Sad Ellie
02a6826e1f Possible fix for Analytics option 2022-06-03 20:02:15 +03:00
Sad Ellie
941e260a15 Refactored repository for DataStore
Also renamed app theme from AppTheme to UnittoTheme so that it's less confusing
2022-05-31 21:58:58 +03:00
Sad Ellie
8635b4f54c Send analytics option
User can now decide whether or not the app will send analytics (enabled by default)
2022-05-28 20:03:07 +03:00
Sad Ellie
d119c94b0a Better (?) units list loading
Moved from LaunchedEffect to another approach. Basically list is updated in onClick methods (not observing value in LaunchedEffect anymore)
2022-05-12 21:39:49 +03:00
Sad Ellie
84a4611c3d Levenshtein distance improvements 2022-05-11 23:16:28 +03:00
Sad Ellie
35504f7927 Testable application
Added dependencies for testing
Added tests for stuff in Utils.kt and MainViewModel.kt just to make sure that the setup is working (can move to TDD now)
Added repository for database so that code is more testable
2022-05-09 14:45:29 +03:00
Sad Ellie
f5faea804b Bug fixes
Fixed ordering for units searcher, units that contain query go first now
Fixed method call order in init
2022-04-25 22:28:05 +03:00
Sad Ellie
965008cce8 File upload 2022-04-09 20:08:15 +03:00