-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
Refactor: Port PackageManager.canRequestPackageInstalls
(Android)
#1215
Refactor: Port PackageManager.canRequestPackageInstalls
(Android)
#1215
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
List<String> permissions, [ | ||
int? requestCode, | ||
) { | ||
]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the requestCode
an optional named parameter, instead of an optional positional parameter?
Named parameters are more developer friendly as they show up better in the IDE and also allows for a bit more flexibility in case we need to add additional parameters.
Intent intent, | ||
Intent intent, [ | ||
int? requestCode, | ||
) { | ||
]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the requestCode
an optional named parameter, instead of an optional positional parameter?
Named parameters are more developer friendly as they show up better in the IDE and also allows for a bit more flexibility in case we need to add additional parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ports the necessary Android SDK bits for checking whether an application can request package installs.
Closes https://github.com/orgs/Baseflow/projects/9/views/1?pane=issue&itemId=39927253.
Pre-launch Checklist
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.md
to add a description of the change.///
).next
.dart format .
and committed any changes.flutter analyze
and fixed any errors.