How to use with source control?


Hey guys!

I was wondering what pieces of the native platforms you keep in source control. With Cordova, you typically ignored the platforms folder and let the config.xml file handle everything for you. With Capacitor, I was wondering if that was a similar case, or if you include the native projects in your source control like you would native apps. Thanks!


Hey Sean,

You should include the native projects in source control. Cordova treats them as a build artifact and we treat them as a source artifact. The difference here is that you can easily add per-platform modifications without worrying about them being blown away. The tradeoff is that updates might be more work for new iOS and Xcode versions.

In general, we think the Cordova approach ends up being tough for teams over the long term and adopting the source code for the per-platform projects ends up being more flexible.