android / android/wear-os-samples
[DataLayer sample]Move creation of the mainViewModel out of the MainActivity
Open
- Dominant language
- Kotlin
- Stars
- 1.4k
- Forks
- 640
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 2
Description
This issue has no description.
Contributor guide
Research direction
Locate the DataLayer sample's MainActivity and trace where mainViewModel is created and consumed. Read the surrounding ViewModel setup and existing tests, if present, before deciding on the extraction point. Done means mainViewModel creation no longer belongs in MainActivity and the sample still builds and behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100