Skip to content

Extract sample shared KMP code into :sample:shared submodule#182

Open
kirich1409 wants to merge 4 commits intomainfrom
refactor/sample-shared-module
Open

Extract sample shared KMP code into :sample:shared submodule#182
kirich1409 wants to merge 4 commits intomainfrom
refactor/sample-shared-module

Conversation

@kirich1409
Copy link
Copy Markdown
Contributor

Summary

  • Moved sample/src/ into sample/shared/src/
  • Registered module as :sample:shared instead of :sample
  • Updated :sample:android-app dependency from :sample to :sample:shared

Test plan

  • :sample:shared:assemble builds successfully
  • :sample:android-app:assembleDebug builds successfully

Move sample/src/ into sample/shared/ and register it as :sample:shared
instead of :sample. Update :sample:android-app dependency accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@qodo-code-review
Copy link
Copy Markdown

ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

kirich1409 and others added 3 commits April 30, 2026 15:57
- Add standalone :sample:desktop JVM application module
- Move Main.Desktop.kt from :sample:shared jvmMain to :sample:desktop
- Remove compose.desktop and jvmMain from :sample:shared (library, not app)
- Delete legacy :sample module (sample/src/, sample/build.gradle.kts)
- Refactor SampleViewModel: extract observeValue() to reduce stateIn boilerplate
- Fix MainViewController to use SampleApp instead of FeaturedSample directly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add T : Any bound to observeValue extension (ConfigValues.observe requires it)
- Reformat method chains in SampleViewModel to satisfy spotless
- Update iosApp.xcodeproj: Gradle task and framework paths now point to :sample:shared
Removes private observeValue extension that duplicated ConfigValuesExtensions.
Four stateIn() blocks replaced with asStateFlow() from the same file.
@kirich1409
Copy link
Copy Markdown
Contributor Author

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

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