Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capacitor how to remove platform

Tags:

capacitor

Documentation on capacitor doesn't mention how to remove a platform.

And remove does not exist.

enter image description here

Does capacitor even support removing of a platform? How do I remove my platform without the obvious - manually deleting the folder

like image 524
Ruan Avatar asked Mar 11 '21 09:03

Ruan


People also ask

What is capacitor and how to install?

Capacitor is an open source native runtime for building Web Native apps. Create cross-platform iOS, Android, and Progressive Web Apps with JavaScript, HTML, and CSS. Get started easily. Install the native platforms you want to target. npm install @capacitor/ios @capacitor/android npx cap add ios npx cap add android

Why use capacitor to build cross-platform apps?

We wrote a free guide on when and why to use Capacitor to build cross-platform apps. Connect web apps to native functionality. Build web-based applications that run equally well across iOS, Android, and as Progressive Web Apps. Access the full Native SDKs on each platform, and easily deploy to the App Stores (and the web).

How do I make an Android app with capacitor?

First, install the @capacitor/android package. Then, add the Android platform. Alternatively, you can open Android Studio and import the android/ directory as an Android Studio project. You can either run your app on the command-line or with Android Studio. To use an Android Emulator you must use an API 24+ system image.

What is capacitor in Cordova?

Capacitor is an open source native runtime for building Web Native apps. Create cross-platform iOS, Android, and Progressive Web Apps with JavaScript, HTML, and CSS. Install Capacitor -> Explore Plugins Migrate from Cordova ->


1 Answers

Unlike Cordova, native projects in Capacitor are a source asset instead of a build time asset.

You will have to delete the whole project manually and re add it with npx cap add.

like image 154
johnborges Avatar answered Sep 23 '22 04:09

johnborges