Skip to content

refactor(build): Introduce AndroidLibraryFlavors convention plugin#4449

Merged
jamesarich merged 3 commits into
meshtastic:mainfrom
jamesarich:chore/deflavoring
Feb 4, 2026
Merged

refactor(build): Introduce AndroidLibraryFlavors convention plugin#4449
jamesarich merged 3 commits into
meshtastic:mainfrom
jamesarich:chore/deflavoring

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit extracts the product flavor configuration from the AndroidLibraryConventionPlugin into a new, dedicated AndroidLibraryFlavorsConventionPlugin.

Key changes:

  • Created AndroidLibraryFlavorsConventionPlugin to handle flavor definitions for Android libraries.
  • Removed flavor configuration logic from AndroidLibraryConventionPlugin and added a missingDimensionStrategy to handle dependencies on flavored modules.
  • Registered the new plugin in build-logic/convention/build.gradle.kts and libs.versions.toml.
  • Applied the new meshtastic.android.library.flavors plugin to relevant feature and core modules.
  • Simplified publishing configurations in core:api and core:model from googleRelease to the standard release variant.

This commit extracts the product flavor configuration from the `AndroidLibraryConventionPlugin` into a new, dedicated `AndroidLibraryFlavorsConventionPlugin`.

Key changes:
- Created `AndroidLibraryFlavorsConventionPlugin` to handle flavor definitions for Android libraries.
- Removed flavor configuration logic from `AndroidLibraryConventionPlugin` and added a `missingDimensionStrategy` to handle dependencies on flavored modules.
- Registered the new plugin in `build-logic/convention/build.gradle.kts` and `libs.versions.toml`.
- Applied the new `meshtastic.android.library.flavors` plugin to relevant feature and core modules.
- Simplified publishing configurations in `core:api` and `core:model` from `googleRelease` to the standard `release` variant.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@codecov

codecov Bot commented Feb 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.57%. Comparing base (854eff6) to head (0419dec).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4449   +/-   ##
=====================================
  Coverage   8.57%   8.57%           
=====================================
  Files        420     420           
  Lines      14184   14184           
  Branches    2358    2358           
=====================================
  Hits        1216    1216           
  Misses     12748   12748           
  Partials     220     220           

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

@jamesarich jamesarich merged commit 3eefa80 into meshtastic:main Feb 4, 2026
6 checks passed
@jamesarich jamesarich deleted the chore/deflavoring branch February 20, 2026 18:14
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