Added QR scanner to wallet send card #1194

Merged
soup-jingle merged 4 commits from qr-scanner into master 2021-08-13 10:01:53 +02:00
soup-jingle commented 2021-05-26 09:58:04 +02:00 (Migrated from github.com)

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #202

What is the current behavior?

There is no QR scanner for sending funds to an address encoded as a QR code.

What is the new behavior?

In the Wallet's Send card, there is now QR scanning functionality which will fill the recipient address with the value the scanner gets.

Other information

The QR library (zxing 4.1.0) works on SDK 24 and up, but I added a 'fallback' for 3.3.0 as they advise so the minimum SDK of 21 should still work and be able to use the functionality. I was not, however, able to test this on any devices with that SDK version.

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: #202 ## What is the current behavior? There is no QR scanner for sending funds to an address encoded as a QR code. ## What is the new behavior? In the Wallet's Send card, there is now QR scanning functionality which will fill the recipient address with the value the scanner gets. ## Other information The QR library (zxing 4.1.0) works on SDK 24 and up, but I added a 'fallback' for 3.3.0 as they advise so the minimum SDK of 21 should still work and be able to use the functionality. I was not, however, able to test this on any devices with that SDK version. <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
kekkyojin (Migrated from github.com) reviewed 2021-05-26 16:19:17 +02:00
kekkyojin (Migrated from github.com) left a comment

Not a formal review, but these code style changes would be required

Not a formal review, but these code style changes would be required
kekkyojin (Migrated from github.com) reviewed 2021-05-26 16:20:35 +02:00
kekkyojin (Migrated from github.com) commented 2021-05-26 16:20:34 +02:00

Revert this change

Revert this change
kekkyojin (Migrated from github.com) reviewed 2021-05-26 16:21:39 +02:00
kekkyojin (Migrated from github.com) commented 2021-05-26 16:21:38 +02:00

Revert the changes on these lines

Revert the changes on these lines
kekkyojin (Migrated from github.com) reviewed 2021-05-26 16:22:23 +02:00
kekkyojin (Migrated from github.com) commented 2021-05-26 16:22:23 +02:00

Revert the change on this last line 824

Revert the change on this last line 824
kekkyojin (Migrated from github.com) reviewed 2021-05-26 16:23:01 +02:00
@ -0,0 +5,4 @@
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
kekkyojin (Migrated from github.com) commented 2021-05-26 16:23:01 +02:00

Have you tested this on a device or emulator on dark theme mode?

Have you tested this on a device or emulator on dark theme mode?
tzarebczan commented 2021-05-27 01:50:13 +02:00 (Migrated from github.com)

Thanks so much for the PR! We'll get another closer review on it soon.

Can we show you some appreciation?

Thanks so much for the PR! We'll get another closer review on it soon. Can we show you some [appreciation](https://lbry.com/faq/appreciation)?
kekkyojin (Migrated from github.com) reviewed 2021-07-28 22:47:40 +02:00
@ -0,0 +5,4 @@
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
kekkyojin (Migrated from github.com) commented 2021-07-28 22:47:40 +02:00

I have tested it on Android 8.1. That API Level doesn't support dark mode, but enabling dark mode on app settings does the same.

Button image is still visible, so this conversation can be resolved.

I have tested it on Android 8.1. That API Level doesn't support dark mode, but enabling dark mode on app settings does the same. Button image is still visible, so this conversation can be resolved.
kekkyojin (Migrated from github.com) approved these changes 2021-07-28 23:00:37 +02:00
kekkyojin (Migrated from github.com) left a comment

I have tested this. It works as expected. I does decode a LBRY Credits address and writes it on the expected field.

In order to test this, it was needed to merge changes from master branch. The parent commit PR author branched from was using a repository for AAR which is no longer working. That was fixed on master. After merging master into PR branch, this will build without a problem.

I have tested this. It works as expected. I does decode a LBRY Credits address and writes it on the expected field. In order to test this, it was needed to merge changes from master branch. The parent commit PR author branched from was using a repository for AAR which is no longer working. That was fixed on master. After merging master into PR branch, this will build without a problem.
akinwale (Migrated from github.com) approved these changes 2021-08-13 10:01:37 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#1194
No description provided.