Skip to content

feat(build): Implement flavor-specific barcode scanning and build improvements#4611

Merged
jamesarich merged 1 commit intomainfrom
fix/izzydroid
Feb 21, 2026
Merged

feat(build): Implement flavor-specific barcode scanning and build improvements#4611
jamesarich merged 1 commit intomainfrom
fix/izzydroid

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

feat(build): Implement flavor-specific barcode scanning and build improvements

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.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.29%. Comparing base (96d4027) to head (9e1c2aa).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

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.
📢 Have feedback on the report? Share it here.

…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]>
@jamesarich jamesarich added this pull request to the merge queue Feb 21, 2026
Merged via the queue into main with commit e720a39 Feb 21, 2026
7 of 8 checks passed
@jamesarich jamesarich deleted the fix/izzydroid branch February 21, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant