Support some lbry hosts to deep links. Add unit tests #1008
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#1008
Loading…
Reference in a new issue
No description provided.
Delete branch "more-deeplinks"
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?
…sts for LbryUri parse() method
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:
What is the current behavior?
LBRY.TV and other links are not captured by LBRY Android when clicked on other apps
What is the new behavior?
LBRY Android will be offered to users when they click on any LBRY.[TV|LAT|IN|FR] hosted link.
Other information
Furthermore, I have also added unit tests for the LbryUri.parse(String, bool) method. In order to run them, it could be required to edit the 'Shorten command line' configuration and change the value to 'JAR Manifest', which was the one I used to run them.
This looks good, thanks. Do you still want to make some changes since it's still a draft?
Thanks for the review, @akinwale. I prefer to keep it still as a draft as I hadn't tested it long enough. Also I have seen that the app is not converting the HTTPS:// protocol schema to LBRY:// protocol schema on the app wonderbar address. The app shows the content but it shows for example https://@lbry:x instead of lbry://@lbry:x. This could have been introduced in previous PR for open.lbry.com. Just a minor/trivial problem, though.
Anyway, I still prefer to test it a little bit more and switch it to a final PR. Testing the current PR is right now my priority. If I see a quick fix for the https://->lbry:// I will also add a new commit here.
Test this using https://gist.github.com/kekkyojin/f00e4ce747197b96b964ee7e0fe29f61 for some links. By testing it sequentally, it is possible to see urls are updated after each link is parsed.
This doesn't happen for only-channel urls. Unit tests show it is correctly parsed, but wonderbar url shows the one user clicked, instead of the transformed one. The channel page shows, but both showed URL and a new bottom bar with latest content -or a blank one- is always shown. I am going to open a bug report about this. Pretty sure this defect was introduced when the deep-linking from open.lbry.com feature was added to the app. So completelly my fault.
I have rebased my latest commit. I suggest to test this PR again.