-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Choice between classic and MLkit scanner with a system of dimensions to disable binary blobs for F-Droid #3836
Conversation
@teolemon so we are replacing? Don't we want to make them both available? |
@kartikaysharma01 @VaiTon is a check like |
Also related: we should disable Sentry for F-Droid, since it bugs with AUTH at build time. |
@teolemon Can you please provide some documentation on that. |
@teolemon @VaiTon Logs https://slack-files.com/T02KVRT1Q-F01NQ5F698D-d5e39bb5d8 Signed APK generated from Fdroid: https://slack-files.com/T02KVRT1Q-F01NT80RR18-e0534022b1 |
yes, it might work in local, but it will be reviewed and removed if we include any non-free binaries. |
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/camera/CameraSizePair.kt
Outdated
Show resolved
Hide resolved
@VaiTon pushed the changes |
The screenshot test is failing, possibly because of the additional dimension:
|
@teolemon Yes, the new dimension is the reason. |
@teolemon I think the failing test can be rectified after review process is complete. |
...rc/fdroid/java/openfoodfacts/github/scrachx/openfood/features/scan/ContinuousScanActivity.kt
Show resolved
Hide resolved
...rc/fdroid/java/openfoodfacts/github/scrachx/openfood/features/scan/ContinuousScanActivity.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/camera/CameraReticleAnimator.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/camera/CameraReticleAnimator.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/camera/CameraReticleAnimator.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/utils/CameraUtils.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/utils/CameraUtils.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/utils/CameraUtils.kt
Outdated
Show resolved
Hide resolved
app/src/playstore/java/openfoodfacts/github/scrachx/openfood/utils/CameraUtils.kt
Outdated
Show resolved
Hide resolved
|
||
@Synchronized | ||
override fun getBitmap(): Bitmap { | ||
return bitmap ?: let { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a lazy property for this?
27343bd
to
99fd9fe
Compare
@VaiTon I have pushed the changes. Will resolve the merge conflicts once the PR is approved. |
app/src/main/java/openfoodfacts/github/scrachx/openfood/features/PreferencesFragment.kt
Show resolved
Hide resolved
7556bbf
to
99fd9fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kartikaysharma01 please rebase/merge and then we're good to go!
SonarCloud Quality Gate failed.
|
@VaiTon Have merged develop into this branch. Ready for merge. |
@kartikaysharma01 thank you! 🎉 |
Description
Implemented mlKit scanner using Android Camera API to support minSDK 16.
Fixed Trouble Scanning button.
Implemented "Stop the barcode scanner from scanning barcodes on product addition" . The Camera preview now freezes on barcode detection and can be resumed by clicking on the screen or dragging down the bottom sheet .
Related issues
Fixes #3400
https://drive.google.com/file/d/1h8Bk-ZFOYoqkRvf_mtsy4Kj_0Gcnuv4p/view?usp=sharing
Fixes #3015
https://drive.google.com/file/d/1glTAN_u6muBowP1EIc6wWmUx6Y0vGDVC/view?usp=sharing
Fixes #3834
https://drive.google.com/file/d/1gmbLzyCerfdylGP3w7mGd30VJBHbsJTF/view?usp=sharing