[READ-ONLY] Mirror of https://github.com/excaliburjs/template-capacitorjs.
excalibur excaliburjs template
0

Configure Feed

Select the types of activity you want to include in your feed.

Shell 21.0%
TypeScript 17.6%
Swift 7.4%
Batchfile 6.8%
Java 3.2%
Ruby 1.9%
HTML 1.9%
Other 40.2%
3 4 0

Clone this repository

https://tangled.org/excaliburjs.com/template-capacitorjs https://tangled.org/did:plc:pe3axh462prrw2oaohhpcxbp
git@tangled.org:excaliburjs.com/template-capacitorjs git@tangled.org:did:plc:pe3axh462prrw2oaohhpcxbp

For self-hosted knots, clone URLs may differ based on your setup.



README.md

Capacitor + Excalibur.js#

This app was created using @capacitor/create-app, and comes with a very minimal shell for building an app.

Read more about installing Android Studio

Be sure to run the following command to customize your capacitor config for your app

npx cap init

Running this example#

Run npm install

To run the provided example, you can use npm start command.

npm start

Adding Android and iOS#

Add the js libraries

npm i @capacitor/android @capacitor/ios

Create the native applications

npx cap add android
npx cap add ios

Adding Custom Icons#

Update your logo.png in /assets then run npm run generate:assets

Building Native Project#

Install Android Studio on your machine. Read more about installing Android Studio

  • Be sure to have your JAVA_HOME environment set to your install of java

To use an Android Emulator you must use an API 24+ system image. The System WebView does not automatically update on emulators. Physical devices should work as low as API 21 as long as their System WebView is updated.

Sync the web code to your project

npx cap sync

This command will open android studio

npx cap open android
npx cap run android