Skip to content

feat(ios): add getConfig to CAPPlugin#5495

Merged
IT-MikeS merged 6 commits intocapacitor-4from
feat/ios-getConfig-CAPPlugin
Mar 14, 2022
Merged

feat(ios): add getConfig to CAPPlugin#5495
IT-MikeS merged 6 commits intocapacitor-4from
feat/ios-getConfig-CAPPlugin

Conversation

@IT-MikeS
Copy link
Contributor

closes #5476

@IT-MikeS IT-MikeS requested a review from jcesarmobile March 10, 2022 17:41
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.

@IT-MikeS IT-MikeS requested a review from jcesarmobile March 10, 2022 20:21
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.

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

@IT-MikeS IT-MikeS requested a review from jcesarmobile March 11, 2022 20:19
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