@genvidtech/cordova-plugin-eos
v1.2.5
Published
Cordova EpicGame Online Services Plugin
Readme
Cordova Epic Online Services Plugin
Published on npm as @genvidtech/cordova-plugin-eos
with build provenance.
Installation
cordova plugin add @genvidtech/cordova-plugin-eosThe EOS SDK binary is not bundled: set EOS_SDK_PATH to your unpacked EOS SDK
root before building so the plugin's install hook can resolve the native
framework/AAR.
Development
File structures
plugin.xml: The plugin configuration filesrc/android/: Android source codeios/: iOS source code
www/: Web source codetests/: Node Project Plugin Teststypes/: Some type definitions (manually update)demo/: Node Demo project also use for testingeos-sdk/: Use to populate the EOS SDK by default
How to build the plugin
npm i
npm run lint
npm run packageThis will create two package:
genvidtech-cordova-plugin-eos-<version>.tgzfor the plugin (the@genvidtech-scoped npm package)cordova-plugin-eos-tests-<version>.tgzfor the tests
Notice
Please, maintain the .npmignore consistently to avoid
distributing unnecessary files in the packages.
How to build and run the test demo
After having build the packages:
npm run install-sdk:<platform>:<host>
npm run setup:demo:<platform>
npm run build:demo:<platform>where host is replaced with either windows (if you're on Windows) or posix (MacOS, Linux),
and <platform> is replaced with either android or ios
Then you can run the application:
npm run run:demo:<platform>To clean everything and rebuild, you can do:
npm run refresh:demo:<platform>Manual installation and running for Android
Sometimes, cordova doesn't select the right ABI to upload. You will get an error like:
Using apk: C:\repos\cordova-plugin-eos\demo\platforms\android\app\build\outputs\apk\debug\app-armeabi-v7a-debug.apk
Package name: com.genvidtech.eosdemo
Command failed with exit code 1: adb -s 38110DLJH000N8 install -r C:\repos\cordova-plugin-eos\demo\platforms\android\app\build\outputs\apk\debug\app-armeabi-v7a-debug.apk
adb: failed to install C:\repos\cordova-plugin-eos\demo\platforms\android\app\build\outputs\apk\debug\app-armeabi-v7a-debug.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]Here what to do:
# install the right APK
abd install -r .\demo\platforms\android\build\outputs\apk\debug\app-{abi of your android device}-debug.apk
# start the application on the device
adb shell am start -n com.genvidtech.eosdemo/com.genvidtech.eosdemo.MainActivity
# output logs
adb logcat --pid=$(adb shell pidof -s com.genvidtech.eosdemo) | tee eosdemo.log