Skip to content

feat: permissionHelperAndroid - #2964

Closed
pkar70 wants to merge 5 commits into
unoplatform:masterfrom
pkar70:PermissionHelper2
Closed

pkar70 wants to merge 5 commits into
unoplatform:masterfrom
pkar70:PermissionHelper2

Conversation

@pkar70

@pkar70 pkar70 commented Apr 8, 2020

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
    All of above, and - at same time - none of above :)

What is the current behavior?

Current implementation of Android permission helper functions doesn't work.
Currently there is no possibility to invoke system dialog asking for permission from Uno code (e.g. from RequestAccessAsync methods).
So, PR#2024 (geolocator) is labelled as 'help needed' (to split code into levels - as was said in Lobby or in some comments), also PR#2544 (contacts), PR#2757 (calllog), and soon-to-be PR (SMS access) cannot be fully implemented (some code have to be included in app code, not inside Uno).

What is the new behavior?

New helper methods works inside Uno, and can invoke system dialog asking for permission.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

I made it as separate PR, to be used in all four PRs mentioned above, as code is common (and I don't want contacts-PR be dependend on e.g. geolocator PR). Also, it can be used from other Uno PRs and from user code.

I don't edit/modify current Android methods in permissionhelper.cs, as they can be somewhere used (structure of these methods are cumbersome, too complicated for me).

Reopened 2898.
Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Apr 8, 2020 •

Copy link
Copy Markdown

@pkar70

pkar70 commented Apr 14, 2020

Copy link
Copy Markdown
Contributor Author

Most important question: is test for this correct?

@jeromelaban

Copy link
Copy Markdown
Member

It looks correct, someone from the team will take a look to validate the behavior.

@pkar70

pkar70 commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

What is wrong with "Validate for conventional commits"? I added one commit, with "feat:" prefix, and now validation failed?

@jeromelaban

Copy link
Copy Markdown
Member

If you go to the failing task, here's what it says:

FAIL   47e80270b2213e4597c3bcb85347fe01d958d9d6   feat:PermissionHelperAndroid, changes from peerreview   category missing
FAIL   7401e9dcb2eaeab59a899e56f43cb6a51c38fa3c   Update PermissionsHelperAndroid.xaml.cs   category missing
FAIL   45dad0f972dc9273a244af5944bd0d92165cfa23   Update PermissionsHelperAndroid.xaml   category missing

You have two uncategorized commits, and one without a space after the column. In all cases, you'll should squash your commits into one (rebase with fixups works pretty well).

@pkar70

pkar70 commented Apr 20, 2020 •

Copy link
Copy Markdown
Contributor Author

git rebase shows conflict in e.g. FlyoutBasePopupPanel , but I don't even touch this file...
So, I think best option would be to close this PR, and reopen it...

@pkar70

pkar70 commented Apr 20, 2020

Copy link
Copy Markdown
Contributor Author

After git rebase, git status says that:
Your branch and 'origin/PermissionHelper2' have diverged,
and have 103 and 131 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)

@pkar70

pkar70 commented Apr 20, 2020

Copy link
Copy Markdown
Contributor Author

Recreated as 3025.

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