Skip to content
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

Merged
merged 6 commits into from
Mar 14, 2022

Conversation

IT-MikeS
Copy link
Contributor

closes #5476

Copy link
Member

@jcesarmobile jcesarmobile left a 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.

Copy link
Member

@jcesarmobile jcesarmobile left a 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.

ios/Capacitor/Capacitor/CAPPlugin.h Outdated Show resolved Hide resolved
ios/Capacitor/Capacitor/CAPPlugin.m Outdated Show resolved Hide resolved
IT-MikeS and others added 3 commits March 11, 2022 14:07
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
@IT-MikeS
Copy link
Contributor Author

adjusted in latest commit

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