Open xzilja opened 4 years ago
Issues tagged with feature request are closed but tracked for reactions to gauge interest.
No, this is about the cordova compatibly code that capacitor projects include.
Yep. For me personally I think only autogenerated capacitor.build.gradle
is what's preventing me from completely removing all references to cordova. Perhaps additional flag in capacitor config file like cordova: false
(default true) would be enough? However, I am not sure if capacitor relies on some cordova files to exist during builds.
Any news about this? It would also be nice to get rid of the required deprecated jcenter repository because of Cordova 7.
Feature Request
Describe the Feature Request
Having started new project with capacitor I'm really excited about its future. I saw that a lot of cordova related stuff is still left in some file, we even have
capacitor.build.gradle
file that is generated with cordova dependency every timecapacitor update
is ran.This feels like unnecessary / legacy stuff in new projects and if I am correct capacitor works perfectly fine without cordova?
Would it be possible to add section in docs or some flag to cli that allows to generate cordova free project / shows how to remove it from existing project?
Platform Support Requested
Describe Preferred Solution
Describe Alternatives
Perhaps a blog post covering this?
Related Code
These are all places where I found reference to cordova files.
/android/.gitignore
/android/app/build.gradle
/android/app/capacitor.build.gradle
/android/app/src/main/res/xml/config.xml
/android/settings.gradle
/ios/.gitignore
/ios/App/App/config.xml
/ios/App?Podfile
Additional Context
Perhaps it is enough to just remove all cordova references from these files, but once again there are files like
capacitor.build.gradle
that are auto generated and reference it and I think project would break?