Skip to content

Instantly share code, notes, and snippets.

@nandomoreirame
Last active April 7, 2023 23:54
Show Gist options
  • Save nandomoreirame/2bc8ee67f13672e590ed to your computer and use it in GitHub Desktop.
Save nandomoreirame/2bc8ee67f13672e590ed to your computer and use it in GitHub Desktop.
Comandos basicos android, cordova e ionic :)

android

Instalar o apk no device android para testes

adb install -r platforms/android/build/outputs/apk/android-debug.apk

Abre o log do dispositivo android

adb logcat

Lista os adb divices rodando

adb devices

cordova

Incluir o plugin de acesso a banco de dados SQLite

cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git

ionic

Criar um projeto vazio

ionic start ionicBlank blank

Criar um projeto com tabs/abas

ionic start ionicTabs tabs

Criar um projeto com menu lateral

ionic start ionicSidemenu sidemenu

Visualizar o projeto no navegador localhost

ionic serve
ionic serve --labs

Incluir a plataforma Android/iOS ao projeto

ionic platform add android
ionic platform add ios

Compilar e gerar app

ionic build android
ionic build ios

Iniciar o emulador com o aplicativo

ionic emulate android
ionic emulate ios
@janpio
Copy link

janpio commented Aug 22, 2018

adb install -r platforms/android/build/outputs/apk/android-debug.apk

won't work with current cordova-android as it has a different path for the APK

cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git

this should also use ionic cordova ...

ionic platform add android
ionic platform add ios

ionic build android
ionic build ios

ionic emulate android
ionic emulate ios

are all missing cordova between ionic and platform: ionic cordova platform/build/emulate...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment