8000 Fix NoSuchMethod exception for HelperSHA256 on API Level prior to P by kekkyojin · Pull Request #1117 · lbryio/lbry-android · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix NoSuchMethod exception for HelperSHA256 on API Level prior to P #1117 8000

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

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

kekkyojin
Copy link
Collaborator

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: Instrumented test

What is the current behavior?

On devices running older than Android Pie, an exception will be raised when using Helper.SHA256 method.

What is the new behavior?

Now code has been splitted so newer versions will run curent code, while older ones will run the patched one.

Other information

An instrumented test has been added. I was unable to test it on an emulator. Running the test on my physical Android 8.1 (Oreo MR1) device, it is now working as expected.

To run the instrumented test, open the "tests" view on the Project sidebar tab, an click the "Run" icon on the HelperTest.java on the androidTest folder.

@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Jan 12, 2021
@akinwale akinwale merged commit cb5c29f into lbryio:master Jan 12, 2021
@kekkyojin kekkyojin deleted the fix-nosuchmethod-commons branch January 13, 2021 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0