ionic-team / create-capacitor-plugin

Create a new Capacitor plugin ⚡️
Other
74 stars 11 forks source link

Can I have only one specific platform for a plugin? #62

Closed evangunawan closed 3 years ago

evangunawan commented 3 years ago

Hello! So I am developing a plugin, which I think it supports only on Android platform.

Is there any way to generate a plugin with one or specific platform? And can I just delete the ios directory and modify the plugin's package.json?

Thank you very much!

thomasvidas commented 3 years ago

Yup! You can just delete the ios directory, remove the iOS dependencies from your package.json, and remove the .podspec file as well and it would work fine. Since many people want to develop plugins for both Android and iOS, creating both plugin projects is the default.