question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: Allow to remove all cordova related code

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dotNetkowcommented, Feb 5, 2020

Docs on migrating, then removing Cordova are here.

1reaction
Mereo4commented, Jun 8, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove all Plugins from Cordova all?
I would try making use of a Cordova hook script like this: #!/usr/bin/env node //this hook removes all your plugins // add your...
Read more >
Blog - Apache Cordova
The Cordova-iOS 6.x platform removes all UIWebView code and this version also removes the UIWebView code from the InAppBrowser plugin GH-635 ...
Read more >
Cordova - Quick Guide
Cordova is a platform for building hybrid mobile applications using HTML, CSS and JavaScript. The official documentation gives us the definition of the...
Read more >
Migrating from App Center to Ionic Appflow
Featuring continuous native builds, live app deploys, and app store publishing. ... Finally, within your app, remove any code references to App Center ......
Read more >
Cordova Road Seawall Replacement Updated: Feb. 8, ...
Cordova Road Seawall Construction and Dock Permit Concerns ... The City will be removing all unpermitted landscape that may be a barrier to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found