Replace Hex class from GMS with the one from Apache #1067
No reviewers
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#1067
Loading…
Reference in a new issue
No description provided.
Delete branch "use-apache-hex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: https://github.com/lbryio/lbry-fdroid/issues/6
What is the current behavior?
Helper imports a whole class from Google Messaging Service just to do some string transformation. That import injects some artifacts from Play Services which cannot be used on FDroid build, although they are required on the regular LBRY Play Store release
What is the new behavior?
Using the encodeHex method from Apache Commons artifact it is possible to exclude those Play Services injected dependencies without breaking the code.
Other information
New behavior of SHA256() method HAS NOT BEEN tested.
I will add a new unit test to the method to check returned value is the same.
Looks good. Thanks.