If you are upgrading from a version below 1.4.0 to 1.4.0 or above, please refer to this document.
Migration steps are as follows:
Remove the source code directory: iqc_plugin
In the pubspec.yaml file, change dependencies:
xxxxxxxxxxdependencies:flutter:sdk: flutteriqc_plugin:path: iqc_plugin
to
xxxxxxxxxxdependencies:flutter:sdk: flutteriqc_plugin: ^1.5.3
For iOS, you need to add the spec source in the Podfile, then run pod install:
xxxxxxxxxxsource 'https://github.com/advance-ai-mobile/aai-specs.git'source 'https://cdn.cocoapods.org/'pod install --repo-updateRun the following two commands in the terminal separately.
xxxxxxxxxxflutter cleanflutter pub get
Initialize the sdk in the main method
xxxxxxxxxxvoid main() {GlobalIQCPlugin.initialize();runApp(const MyApp());}
Keep the existing code logic unchanged.
For detailed integration documentation, please refer to: Flutter Document.