feat(build): Implement flavor-specific barcode scanning and build improvements#4611
Merged
jamesarich merged 1 commit intomainfrom Feb 21, 2026
Merged
feat(build): Implement flavor-specific barcode scanning and build improvements#4611jamesarich merged 1 commit intomainfrom
jamesarich merged 1 commit intomainfrom
Conversation
6 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4611 +/- ##
=========================================
- Coverage 16.08% 8.29% -7.80%
=========================================
Files 84 296 +212
Lines 4152 10782 +6630
Branches 745 1666 +921
=========================================
+ Hits 668 894 +226
- Misses 3359 9692 +6333
- Partials 125 196 +71 ☔ View full report in Codecov by Sentry. |
…rovements This commit introduces product flavors (`google` and `fdroid`) to provide different barcode scanning implementations and optimizes the build process, particularly for F-Droid. The barcode scanning logic has been refactored into flavor-specific source sets: - The `google` flavor continues to use Google's ML Kit for QR code scanning. - The `fdroid` flavor now uses the ZXing library, removing the dependency on Google Mobile Services (GMS) for this functionality. Build process enhancements include: - Enabling ABI splits for F-Droid builds to generate smaller, architecture-specific APKs. - Refining the `AnalyticsConventionPlugin` to more reliably disable Google Services, Firebase Crashlytics, and Datadog tasks for all F-Droid build variants. Signed-off-by: James Rich <[email protected]>
14bb1b9 to
9e1c2aa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(build): Implement flavor-specific barcode scanning and build improvements
This commit introduces product flavors (
googleandfdroid) to provide different barcode scanning implementations and optimizes the build process, particularly for F-Droid.The barcode scanning logic has been refactored into flavor-specific source sets:
googleflavor continues to use Google's ML Kit for QR code scanning.fdroidflavor now uses the ZXing library, removing the dependency on Google Mobile Services (GMS) for this functionality.Build process enhancements include:
AnalyticsConventionPluginto more reliably disable Google Services, Firebase Crashlytics, and Datadog tasks for all F-Droid build variants.