Skip to content

feat: Allow to remove all cordova related code #2356

Open
@xzilja

Description

@xzilja

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

  • Android
  • iOS
  • Electron
  • Web

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.

  • /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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions