Modify Flutter 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 the Flutter plugin as described on the Flutter SDK Integration page
-
Open the
\app\.flutter-plugins
file -
Find a line that contains the following path pattern:
credoappsdk_xyz=\flutter\.pub-cache\hosted\repo\credoappsdk_xyz-X.Y.Z\
-
Locate the path in your OS and copy the cached plugin to a folder along with your project:
parent_dir/ ....app/ ....credoappsdk/
Rename plugin for simplicity
Rename
credoappsdk_proxy_encrypt-X.Y.Z
->credoappsdk
-
Modify added plugins:
Add or remove the credolabSDK module in Android- Add or delete import statement in the
CredoappsdkPlugin.kt
file - Add or delete
addModule
method atCredoAppService
initialization - Add or delete dependency declaration in
plugin/build.gradle
file - Add or delete permission in
AndroidManifest.xml
file
Add or remove the credolabSDK module in iOS
- Add or delete a module from the import section in a
ios/Classes/SwiftCredoappsdkPlugin.swift
file - Add or delete a module from the
CredoAppService
instance by declaring or removingaddModule()
method. - Add or delete the module from the
credoappsdk.podspec
in theios
folder - Add or delete permission in
Info.plist
file in your ios/ios/Runner
folder
See the examples
- Add or delete import statement in the
🦉
Flutter: Remove native module from plugin
Open Recipe
🦉
Flutter iOS: Modify credolabSDK module
Open Recipe
- Open
pubspec.yaml
file and declare the plugin in the dependencies area:credoappsdk: path: ../credoappsdk
Updated about 2 months ago