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
- Add or delete import statement in
CredoAppSdk.java
file - Add or delete
addModule
method atCredoAppService
initialization - Add or delete dependency declaration in
credoappsdk.gradle
file - Add or delete permission in
plugins.xml
file
See the example:
🦉
Ionic Android: Modify credolabSDK modules
Open Recipe
iOS
- Add or delete import statement in
CredoAppSdk.swift
file - Add or delete
addModule
method atCredoAppService
initialization - Add or delete dependency declaration in
plugin.xml
file - Add or delete permission in
config.xml
file
See the example:
🦉
Ionic iOS: Modify credolabSDK modules
Open Recipe
How to install the plugin manually
- Install the plugin as described in the Install dependencies section
- Go to
node_modules
directory - Move
credoappsdk
folder to the same level as app dir, as described:parent_dir/ ....app/ ....credoappsdk/
- Open a terminal in
app
dir and execute:cordova plugin add ../credoappsdk
npm install ../credoappsdk npx cap sync
Updated about 2 months ago