All Projects → capacitor-community → vue-cli-plugin-capacitor

capacitor-community / vue-cli-plugin-capacitor

Licence: MIT license
A Vue CLI 3/4 Plugin for Capacitor

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-cli-plugin-capacitor

FastWaiMai
仿写美团外卖电商项目
Stars: ✭ 123 (-9.56%)
Mutual labels:  android-studio
Android-SharedPreferences-Helper
This Shared Preferences Helper library (Library size = ~15kb only) Simplifies usage of the default Android SharedPreferences Class. The developer can do in a few lines of code which otherwise would have required several. Simple to understand as compared to the default Shared Preferences class and easy to use. Can be used by simply adding the dep…
Stars: ✭ 15 (-88.97%)
Mutual labels:  android-studio
SideMirror
An Android Studio plugin to mirror your android devices with scrcpy directly from Android Studio.
Stars: ✭ 49 (-63.97%)
Mutual labels:  android-studio
varname-go-die
Android Studio plugin(根据中文在线查找翻译并生成指定格式的变量名称)
Stars: ✭ 45 (-66.91%)
Mutual labels:  android-studio
capacitor-site
Capacitor website
Stars: ✭ 0 (-100%)
Mutual labels:  capacitor
getx-snippets-intelliJ
An extension to accelerate the process of developing applications with flutter, aimed at everyone using the GetX package.
Stars: ✭ 52 (-61.76%)
Mutual labels:  android-studio
FusedBulb
Location fetch library.
Stars: ✭ 22 (-83.82%)
Mutual labels:  android-studio
AmbulanceLocator
Ambulance Locator lets the user find nearby ambulances and as well as call the nearby ambulances.
Stars: ✭ 15 (-88.97%)
Mutual labels:  android-studio
BugKotlinDocument
Plugin for IntelliJ IDEA ┗😃┛ Android Studio ┗😃┛ CLion ┗😃┛ AppCode.
Stars: ✭ 29 (-78.68%)
Mutual labels:  android-studio
myplanet
🌕 myPlanet android app reads data from 🌎 for offline use as well as it collect usage data and sends them back to the Planet.
Stars: ✭ 17 (-87.5%)
Mutual labels:  android-studio
receipt-manager-app
Receipt parser application written in dart.
Stars: ✭ 140 (+2.94%)
Mutual labels:  android-studio
VideoPreLoading
Demo for video PreLoading/ PreCaching using ExoPlayer 2.13.3 in Android.
Stars: ✭ 61 (-55.15%)
Mutual labels:  android-studio
keyboard
A terrible terrible soft-keyboard that randomises keys on every press.
Stars: ✭ 17 (-87.5%)
Mutual labels:  android-studio
android-projects
Android benchmark projects for Bazel and Gradle
Stars: ✭ 29 (-78.68%)
Mutual labels:  android-studio
shop manager flutter
A small app to manager simple transactions made in a shop (selling, buying, register handling..etc).
Stars: ✭ 46 (-66.18%)
Mutual labels:  android-studio
Android-WebView-in-Kotlin
Native Android WebView Example in Kotlin. Website to android app github open source template.
Stars: ✭ 87 (-36.03%)
Mutual labels:  android-studio
http
Community plugin for native HTTP
Stars: ✭ 206 (+51.47%)
Mutual labels:  capacitor
Android-Clean-Architecture
This is a sample movie list Android application built to demonstrate use of Clean Architecture tools. Dedicated to all Android Developers - (Kotlin, MVVM, Clean Architecture, Rx-Java, Dagger, OkHttp, Unit Testing, SOLID principles, Code Coverage)
Stars: ✭ 268 (+97.06%)
Mutual labels:  android-studio
SampleProfileUi
Modern Look Profile UI For Android Material Design XML
Stars: ✭ 49 (-63.97%)
Mutual labels:  android-studio
ValidUtil
No description or website provided.
Stars: ✭ 23 (-83.09%)
Mutual labels:  android-studio

Vue CLI Plugin Capacitor

Turn your Vue SPA into an Android or iOS app with Capacitor

Install

Open a terminal in the directory of a Vue CLI 3/4 project, or create one with vue create my-app, and run the following command:

vue add capacitor

Then, configure Capacitor to hide your app's splash screen when VueJS is ready by adding the following code to your src/main.js:

import Vue from 'vue'
import App from './App.vue'
+ import { Plugins } from '@capacitor/core'
+ const { SplashScreen } = Plugins

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
+ mounted() {
+   SplashScreen.hide()
+ }
}).$mount('#app')

Start a Live Dev Server

Start the dev server by running:

With Yarn:

yarn capacitor:serve # add --android or --ios to specify a target platform

Or with npm:

npm run capacitor:serve # add --android or --ios to specify a target platform

This will start a dev server, then open your native IDE (Android Studio or XCode). From here, run your app on an emulator or physical device. The app will connect to the dev server, allowing HMR.

Build Your App

Build your app by running:

With Yarn:

yarn capacitor:build # add --android and/or --ios to specify a target platform(s)

Or with npm:

npm run capacitor:build # add --android and/or --ios to specify a target platform(s)

This will bundle your app, then open your native IDE (Android Studio or XCode). From here, build your app with the IDE tooling to create an Android/iOS app.

Further Configuration

To learn more about Capacitor and how to use it, visit Capacitor's Website. This plugin simply provides an easy-to-use interface for Vue CLI projects.

How It Works

Dev Server

  1. The normal development server is started with vue-cli-service serve.
  2. Capacitor is configured to load your app from the dev server's network url.
  3. The platform's native IDE is opened with cap open [platform].
  4. When the native app is run, it connects to the dev server, allowing for HMR.

Build

  1. Your app is built as normal with vue-cli-service build.
  2. The bundled output is copied to the native app with cap copy [platform]. This runs for each platform specified.
  3. The platform's native IDE is opened, allowing you to create a final build of the native app.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].