FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(android): add openFile to utils by t3hmrman · Pull Request #6895 · NativeScript/NativeScript · GitHub

feat(android): add openFile to utils - #6895

Merged
ADjenkov merged 6 commits into
NativeScript:masterfrom
t3hmrman:feature/5661-add-openfile-for-android
Mar 5, 2019
Merged

ADjenkov merged 6 commits into
NativeScript:masterfrom
t3hmrman:feature/5661-add-openfile-for-android

Conversation

Copy link
Copy Markdown

PR Checklist

What is the current behavior?

No openFile functionality in android utils

What is the new behavior?

Adds openFile to utils android module.

Fixes/Implements/Closes #5661.

ghost added the ♥ community PR label Feb 12, 2019

Copy link
Copy Markdown
Author

I'm not sure how to unit test this change, as openFile will open another activity -- I don't see a similar test for ios.

The test for android works (and opens a file chooser) but in doing so it puts the app into the background which makes subsequent tests fail...

Comment thread tests/app/utils/utils-tests.ts Outdated

Copy link
Copy Markdown
Contributor

@cla-bot check

cla-bot Bot commented Feb 26, 2019

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

vakrilov assigned ADjenkov and unassigned ADjenkov Feb 27, 2019
ghost added in progress and removed ♥ community PR labels Feb 27, 2019
ADjenkov self-requested a review March 1, 2019 08:54

ADjenkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@t3hmrman nice work implementing this and Kudos for all the checks and traceWrite!

About the test_openFile I think that it should be moved to the apps/app/ui-test-app/ in new page since we can automate it later and properly handle the new activity.

I have all these changes locally and if you are ok I could commit them to your PR?

t3hmrman commented Mar 1, 2019 via email

Copy link
Copy Markdown
Author

ADjenkov commented Mar 1, 2019

Copy link
Copy Markdown
Contributor

test

t3hmrman commented Mar 1, 2019 via email

Copy link
Copy Markdown
Author

ADjenkov commented Mar 5, 2019 •
edited
Loading

Copy link
Copy Markdown
Contributor

Hey what about the fact that the test causes the app to be unresponsive (since it opens the chooser)?
…
On Mar 1, 2019, at 23:22, Alexander Djenkov @.***> wrote: test — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

@t3hmrman We'll later extend the test, with nativescript-dev-appium, to click on the appropriate icon from the chooser.

ADjenkov merged commit f8eee40 into NativeScript:master Mar 5, 2019
ghost removed the in progress label Mar 5, 2019
t3hmrman deleted the feature/5661-add-openfile-for-android branch March 5, 2019 10:03

lock Bot commented Mar 10, 2020

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock Bot locked and limited conversation to collaborators Mar 10, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add openFile method for android

5 participants


Back | FazBrowse Home | New Git URL