-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing the Stopwatch #15
Commits on Mar 9, 2024
-
Implemented core-logic of Stopwatch and using it in project:
1) Added dependencies of kotlinx: 1.1) -datetime (to get time) 1.2) -coroutines-core (to count time with coroutines) 2) Implemented core logic of Stopwatch (wanted to make it like module - but make it later, because not so easy, for me, to adopt Stopwatch in project) 3) Using Stopwatch in project (now only start, when user pop first tile, and stop (reload) when user clicks `RestartButton`). To use Stopwatch in project: 3.1) include StopwatchViewModel in GameComponent 3.2) using collectAsState on the Flow of current tick of Stopwatch Current bugs: 4) Stopwatch not stops even if user goes to GameStatus 4.1) WIN 4.2) FAILED
Configuration menu - View commit details
-
Copy full SHA for 2fd0132 - Browse repository at this point
Copy the full SHA 2fd0132View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49c1f99 - Browse repository at this point
Copy the full SHA 49c1f99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08fbe7d - Browse repository at this point
Copy the full SHA 08fbe7dView commit details -
1) Improved contentDescriptions of Counter's (not tested)
2) added description to TODO
Configuration menu - View commit details
-
Copy full SHA for fcc1514 - Browse repository at this point
Copy the full SHA fcc1514View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8504825 - Browse repository at this point
Copy the full SHA 8504825View commit details -
using coroutineContext.isActive instead of NonCancellable.isActive - …
…for prevent failing build
Configuration menu - View commit details
-
Copy full SHA for a1861eb - Browse repository at this point
Copy the full SHA a1861ebView commit details -
1) Re-implement logic of stopwatch (timer)
2) Now the version is crashed with error: [MVIKotlin]: Main thread id is undefined, main thread assert is disabled Exception in thread "main" java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
Configuration menu - View commit details
-
Copy full SHA for 5426f02 - Browse repository at this point
Copy the full SHA 5426f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac84e84 - Browse repository at this point
Copy the full SHA ac84e84View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb4c4b6 - Browse repository at this point
Copy the full SHA bb4c4b6View commit details
Commits on Mar 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e1956da - Browse repository at this point
Copy the full SHA e1956daView commit details -
1) Stopwatch is working - tested in game (Plans: write tests!)
*more fixes given from code review
Configuration menu - View commit details
-
Copy full SHA for 03d48f1 - Browse repository at this point
Copy the full SHA 03d48f1View commit details
Commits on Mar 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e6dea88 - Browse repository at this point
Copy the full SHA e6dea88View commit details
Commits on Mar 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b07d65e - Browse repository at this point
Copy the full SHA b07d65eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65ac75f - Browse repository at this point
Copy the full SHA 65ac75fView commit details -
1) Implemented some tests with project creator help
2) Deprecate using stopwatch in strings
Configuration menu - View commit details
-
Copy full SHA for 890b144 - Browse repository at this point
Copy the full SHA 890b144View commit details
Commits on Mar 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5fe3607 - Browse repository at this point
Copy the full SHA 5fe3607View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bb072d - Browse repository at this point
Copy the full SHA 8bb072dView commit details