Skip to content

Refactor: Improve analytics plugin application and task configuration#4120

Merged
jamesarich merged 1 commit into
mainfrom
chore/plugin-task-segregation
Jan 2, 2026
Merged

Refactor: Improve analytics plugin application and task configuration#4120
jamesarich merged 1 commit into
mainfrom
chore/plugin-task-segregation

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Streamlined the AnalyticsConventionPlugin to enhance build performance and clarity.

  • Conditionally apply analytics plugins (Google Services, Firebase Crashlytics, Datadog) only for the "google" product flavor.
  • Improved task disabling logic for the "fdroid" flavor by using plugins.withId to configure tasks only when their respective plugins are present. This is more efficient than iterating over all tasks.
  • Replaced extensions.configure<DdExtension> with the safer extensions.findByType<DdExtension>()?.apply to avoid build errors if the plugin isn't applied.

@jamesarich jamesarich enabled auto-merge January 2, 2026 19:47
@codecov

codecov Bot commented Jan 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (643860c) to head (8d0d8b4).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4120   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          2       2           
  Lines         19      19           
  Branches       7       7           
=====================================
  Misses        19      19           

☔ 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 Jan 2, 2026
@jamesarich jamesarich removed this pull request from the merge queue due to the queue being cleared Jan 2, 2026
Streamlined the `AnalyticsConventionPlugin` to enhance build performance and clarity.

- Conditionally apply analytics plugins (Google Services, Firebase Crashlytics, Datadog) only for the "google" product flavor.
- Improved task disabling logic for the "fdroid" flavor by using `plugins.withId` to configure tasks only when their respective plugins are present. This is more efficient than iterating over all tasks.
- Replaced `extensions.configure<DdExtension>` with the safer `extensions.findByType<DdExtension>()?.apply` to avoid build errors if the plugin isn't applied.
@jamesarich jamesarich force-pushed the chore/plugin-task-segregation branch from eb4a746 to 8d0d8b4 Compare January 2, 2026 20:43
@jamesarich jamesarich merged commit b5d30a8 into main Jan 2, 2026
4 checks passed
@jamesarich jamesarich deleted the chore/plugin-task-segregation branch January 2, 2026 20:45
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