Modify Cordova SDK

How to modify included modules set

❗️

Optional

Follow this instruction in case the particular modules are not needed or need to be added.

The full list of modules and their permissions can be found in the modules section of the Android SDK and iOS SDK documentation.

Install Cordova plugin manually

Android

  1. Add or delete import statement in CredoAppSdk.java file
  2. Add or delete addModule method at CredoAppService initialization
  3. Add or delete dependency declaration in credoappsdk.gradle file
  4. Add or delete permission in plugins.xml file

See the example:

iOS

  1. Add or delete import statement inCredoAppSdk.swift file
  2. Add or delete addModule method at CredoAppService initialization
  3. Add or delete dependency declaration in plugin.xml file
  4. Add or delete permission in config.xml file

See the example:


How to install the plugin manually

  1. Install the plugin as described in the Install dependencies section
  2. Go to node_modules directory
  3. Move credoappsdk folder to the same level as app dir, as described:
    parent_dir/
    ....app/
    ....credoappsdk/
    
  4. Open a terminal in app dir and execute:
    cordova plugin add ../credoappsdk
    
    npm install ../credoappsdk
    npx cap sync