npm install -g ionic cordova
npm install
ionic serve
ionic cordova run android --device
ionic cordova run android -l -c -s
execute 2 or 3 if you would like to launch Android in Android Studio.
- src | web page source code
- pages |web page
- providers/WalletManager.ts | cordova plugin
- www | web page code after build
- platforms |
- android | Android project
- assets | website after build
- jniLibs | so dynamic lib
- com.elastos.spvcore.WalletManager | java->c++ jni call
- ElaWallet.Wallet | java-js jni call
- io.ionic.starter.MainActivity | entry to load webview
- android | Android project
- plungin-src | wallet plugin src code, added to mainproject
- plugin.xml | config file
- www | js plugin interface
- src | java plugin interface
- plugins |cordova plugin
-
ElaWallet | Wallet Plugin
- android | same as platforms/android, built to projects automatically
-
Please refer to: https://github.com/elastos/Elastos.ELA.SPV.Cpp/tree/dev
- Remove ElaWallet Plugin:
ionic cordova plugin remove ElaWallet
- Add ElaWallet Plugin:
cd plungin-src && ionic cordova plugin add ElaWallet
- Build ElaWallet Plugin:
cd .. && ionic cordova build android
ionic cordova plugin remove ElaWallet && cd plungin-src && ionic cordova plugin add ElaWallet && cd .. && ionic cordova run android --device --prod
- android-ndk-r16b
- ionic cordova build android --release --prod