Skip to content

refactor(build): Migrate core/common to KMP and cleanup build logic#4026

Merged
jamesarich merged 1 commit into
mainfrom
feat/kmp-core-common
Dec 17, 2025
Merged

refactor(build): Migrate core/common to KMP and cleanup build logic#4026
jamesarich merged 1 commit into
mainfrom
feat/kmp-core-common

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit migrates the core/common module to a Kotlin Multiplatform (KMP) library.

Key changes include:

  • Updating core/common/build.gradle.kts to use meshtastic.kmp.library and the kotlin block for configuration.
  • Reorganizing core/common source files into androidMain and commonMain source sets.
  • Removing the now-redundant org.jetbrains.kotlin.plugin.compose from the KmpLibraryConventionPlugin as it will be applied by modules that need it.
  • Explicitly adding the compose.compiler plugin to the core/strings module.

This commit migrates the `core/common` module to a Kotlin Multiplatform (KMP) library.

Key changes include:
- Updating `core/common/build.gradle.kts` to use `meshtastic.kmp.library` and the `kotlin` block for configuration.
- Reorganizing `core/common` source files into `androidMain` and `commonMain` source sets.
- Removing the now-redundant `org.jetbrains.kotlin.plugin.compose` from the `KmpLibraryConventionPlugin` as it will be applied by modules that need it.
- Explicitly adding the `compose.compiler` plugin to the `core/strings` module.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@jamesarich jamesarich added the refactor no functional changes label Dec 17, 2025
@github-actions github-actions Bot added the enhancement New feature or request label Dec 17, 2025
@codecov

codecov Bot commented Dec 17, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.56%. Comparing base (380de5e) to head (7c9f6a6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##            main   #4026      +/-   ##
========================================
- Coverage   0.56%   0.56%   -0.01%     
========================================
  Files        405     405              
  Lines      24136   24141       +5     
  Branches    3098    3099       +1     
========================================
  Hits         136     136              
- Misses     23979   23984       +5     
  Partials      21      21              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Dec 17, 2025
Merged via the queue into main with commit 61bc9bf Dec 17, 2025
9 checks passed
@jamesarich jamesarich deleted the feat/kmp-core-common branch December 17, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactor no functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant