Skip to content
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

Reworking Barcode widget #4032

Merged
merged 10 commits into from
Sep 30, 2020
Merged

Reworking Barcode widget #4032

merged 10 commits into from
Sep 30, 2020

Conversation

SaumiaSinghal
Copy link
Contributor

@SaumiaSinghal SaumiaSinghal commented Aug 19, 2020

This PR includes the work on rewriting the framework of Barcode widget.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

I don't think there are any regression risks as of now. I am using an object of CameraUtils class to call the non static methods, so that I can verify the behavior of the widget in scenarios when the value returned by the methods of CameraUtils are different.

Do we need any specific form for testing your changes? If so, please attach one.

Any form having barcode widget like AllWidgetsForm

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

Copy link
Member

@grzesiek2010 grzesiek2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@mmarciniak90
Copy link
Contributor

mmarciniak90 commented Sep 28, 2020

Tested with success

Verified on Android versions: 7.0, 8.1, 10.0
(I needed to rebase with master branch)

Verified cases:

  • scan barcode via back camera
  • scan barcode via front camera
  • flashlight
  • scan standard and inverted QR codes
  • light/dark mode
  • RTL language
  • readonly
  • rotation

@kkrawczyk123
Copy link
Contributor

Verified on Androids 5.1, 7.1 and 9.

@getodk-bot unlabel "needs testing"
@getodk-bot label "behavior verified"

@seadowg seadowg merged commit 1c8bcfe into getodk:master Sep 30, 2020
@SaumiaSinghal SaumiaSinghal deleted the barcode_widget branch October 6, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants