Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.31 KB

Installation.md

File metadata and controls

47 lines (32 loc) · 1.31 KB

Adding cordova-plugin-rustore-sdk to your project

directly from git branch:

$ cordova plugin add https://github.com/creakosta/cordova-plugin-rustore-sdk
  1. Add the following code to your config.xml file in the root directly of your www folder:
<feature name="RuStorePlugin">
<param name="android-package" value="com.cordova.plugin.RuStorePlugin" /> // TODO
</feature>
  1. Add the following code to your AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  1. Copy rustore.js to www/js/plugins and reference it in index.html:
<script type="text/javascript" src="js/plugins/rustore.js" />
  1. Download the source files and copy them to your project:

Copy RuStorePlugin.kt to platforms/android/src/com/rustore/cordova/plugins (create the folders if needed)

$ cordova plugin remove cordova-plugin-rustore-sdk