Skip to content

Convert feature-forever to a Kotlin Multiplatform module - #3371

Closed
StylianosGakis wants to merge 2 commits into
refactor/kmp-forever-uifrom
refactor/kmp-feature-forever
Closed

StylianosGakis wants to merge 2 commits into
refactor/kmp-forever-uifrom
refactor/kmp-feature-forever

Conversation

@StylianosGakis

Copy link
Copy Markdown
Member
🤖 AI description

Turns feature-forever into a Kotlin Multiplatform module (JVM and Android targets). Part of making the whole app run on a second platform (desktop). Nothing changes on Android.

Stacked on #3367 (forever-ui), which this PR targets.

The first commit is pure renames and the second only rewrites the build file. Two things you would not guess:

  • ForeverEntries.kt stays in androidMain for now, because the nav bar scene metadata it uses still lives in the Android source set of navigation-compose. It moves once that does.
  • The two Metro ViewModel dependencies are declared by hand under androidMain. The convention plugin only adds them automatically to Android library modules, and this module declares no ViewModels of its own.

ForeverDeepLinks.kt compiles from commonMain. ForeverEntries.kt stays in
androidMain because it uses NavSuiteSceneDecoratorStrategy.showNavBar(),
which lives in androidMain of navigation-compose. The metrox ViewModel
artifacts were added implicitly to Android library modules and are now
declared for androidMain, where metroViewModel() is called.
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.

1 participant