Important: You need to export the correct JAVA_HOME and ANDROID_SDK_ROOT in set-env.sh
The following steps worked on my Macbook Pro.
git clone https://github.com/michaelchin/gplates-edu-app.git test
cd test
conda deactivate
nvm use 16
npm install
source ./set-env.sh
ionic capacitor run android
ionic capacitor run ios
npm install -g serve
serve -s build
npx cap open android
- choose your device and click the "run" button in Android Studio
ionic capacitor copy ios
- Add an account with your Apple ID and choose the team under "signing&capabilities" in XCode
ionic capacitor run ios -l --external
- On your ios device, go to "Settings > General > Device Management" to trust the developer
- nvm use 16
- source ./set-env.sh
- ionic capacitor add android
- ionic capacitor run android
- ionic capacitor run ios
- npx cap open android
- npx cap serve
- npx cap open ios
convert output.png -resize 1000x1000 -background Black -gravity center -extent 2000x2000 out.png
Use xcode to change icon and splash image.
- WebView-based
- time-saving, easier to maintain and cost-effective
- based on Cordova and support moden frameworks, such as React, Angular, Vue.
- not web-based
- learning curve???
- work with cesiumjs??? CesiumGS/cesium#7629 (comment)
https://cesium.com/platform/cesiumjs/
- We already have experience with it. Easy to find support.
- small, unfamiliar, hard to find help
resize the output.png to 1000x1000 and put the resized image at the center of a 2000x2000 canvas.
convert output.png -resize 1000x1000 -background Black -gravity center -extent 2000x2000 out.png