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:
dependencies:flutter:sdk: flutteriqc_plugin:path: iqc_plugin
to
dependencies:flutter:sdk: flutteriqc_plugin: ^1.4.1
For iOS, you need to specify the SDK name and url in the Podfile, then run pod install:
pod 'AAIGlobalIQASDK', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-global-IQA/1.4.0/iOS-GlobalIQA-SDK-V1.4.0.tar.bz2', type: :tbz
# Optional dependencypod 'AAIGlobalIQAUI', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-global-IQA/1.4.0/iOS-GlobalIQA-UI-V1.4.0.tar.bz2', type: :tbz
# Optional dependencypod 'AAIGlobalIQAModel', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAIGlobalIQAModel/1.0.0/AAIGlobalIQAModel-V1.0.0.tar.bz2', type: :tbz
pod 'AAINetwork', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAINetwork/AAINetwork-V1.0.4.tar.bz2', type: :tbz
pod 'AAICore', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAICore/1.0.1/AAICore-V1.0.1.tar.bz2', type: :tbzRun the following two commands in the terminal separately.
flutter cleanflutter pub get
Initialize the sdk in the main method
void main() {GlobalIQCPlugin.initialize();runApp(const MyApp());}
Keep the existing code logic unchanged.
For detailed integration documentation, please refer to: Flutter Document.