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.0
For iOS, you need to specify the SDK name and url in the Podfile, then run pod install:
xxxxxxxxxxsource 'https://github.com/advance-ai-mobile/aai-specs.git'source 'https://cdn.cocoapods.org/'target your-target do pod 'AAIGlobalIQAUI', '1.5.0' pod 'AAIGlobalIQAModel', '1.5.0'endRun 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.