Skip to content

Migrated NewsListViewModel to shared module - #747

Merged
07jasjeet merged 8 commits into
metabrainz:cmpfrom
nirvan73:migrate/newList-viewmodel
Jun 20, 2026
Merged

07jasjeet merged 8 commits into
metabrainz:cmpfrom
nirvan73:migrate/newList-viewmodel

Conversation

@nirvan73

@nirvan73 nirvan73 commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Base PR: #745

Rebased with the latest upstream/cmp branch, and cherry-picked few commits from above mentioned base PR.


This PR fixes #707 migrates the NewsListViewModel from native androidApp module to shared module.

Key Changes:-

  1. Moved NewsListViewModel to shared/commonMain/viewmodel/ using kmp lifecycle dependencies.
  2. Migrated all the necessary data models, services and repositories to shared module.
  3. Registered the viewmodel under sharedViewModelModule, service under sharedNetworkServiceModule and repos under sharedRepositoryModule.
  4. Wired all the sharedModules to the core KoinModules under androidApp module.

@nirvan73
nirvan73 changed the base branch from main to cmp June 4, 2026 09:52
@nirvan73
nirvan73 force-pushed the migrate/newList-viewmodel branch from 3bc8677 to 4a5f02c Compare June 10, 2026 10:59
@nirvan73
nirvan73 force-pushed the migrate/newList-viewmodel branch from 4a5f02c to 237dddf Compare June 13, 2026 12:20
@nirvan73
nirvan73 force-pushed the migrate/newList-viewmodel branch from 237dddf to 71f76ad Compare June 18, 2026 17:44
@07jasjeet
07jasjeet merged commit 944d0f6 into metabrainz:cmp Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate NewsListViewModel and dependencies to KMP shared module

2 participants