-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(ios): add getConfig to CAPPlugin #5495
Conversation
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.
The idea is to do something like what was done for Android here 9820a30
To have a PluginConfig
class with helper methods to get strings, ints, etc. and the new getConfig should return that class with the config for that plugin only, not the whole configuration, as that's already accesible from the bridge.
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.
getArray on Android has 2 functions, one with default and another without it, here it's missing the without default option
run npm run fmt
as swift files have a bunch of ;
at the end on swift files that not sure why the lint is not complaining about them, but fmt removes them.
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
adjusted in latest commit |
closes #5476