ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.31k stars 962 forks source link

feat: Allow to remove all cordova related code #2356

Open xzilja opened 4 years ago

xzilja commented 4 years ago

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 time capacitor 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

  1. Ability to un-select cordova as dependency when creating new project
  2. Documentation for removing cordova in existing apps

Describe Alternatives

Perhaps a blog post covering this?

Related Code

These are all places where I found reference to cordova files.

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?

jcesarmobile commented 4 years ago

Issues tagged with feature request are closed but tracked for reactions to gauge interest.

dotNetkow commented 4 years ago

Docs on migrating, then removing Cordova are here.

jcesarmobile commented 4 years ago

No, this is about the cordova compatibly code that capacitor projects include.

xzilja commented 4 years ago

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.

Mereo4 commented 1 year ago

Any news about this? It would also be nice to get rid of the required deprecated jcenter repository because of Cordova 7.