A OpenIM flutter demo, only support android and ios.
2. Replace the server address with the server address built by yourself, and the default address is the official server address
- git clone https://github.com/OpenIMSDK/Open-IM-Flutter-Demo.git
- modify the server address in the config.dart file to the server address built by yourself
- flutter pub get
- flutter run
flutter_openim_sdk:
git:
url: https: //github.com/OpenIMSDK/Open-IM-SDK-Flutter.git
The im library link used by the demo: flutter_openim_sdk
A: Support, follow the system language by default
A: stable branch 3.7.12
A: The demo currently supports android and ios.
4. The debug of the android installation package can run, but the release starts with a white screen?
A: The release package of flutter is obfuscated by default. You can use the command: flutter build release --no -shrink. If this command is invalid, you can do the following
Add the following configuration to the release configuration configured in android/app/build.gradle
release {
minifyEnabled false
useProguard false
shrinkResources false
}
A: Add the following rules to the obfuscation rules
-keep class io.openim.**{*;}
-keep class open_im_sdk.**{*;}
-keep class open_im_sdk_callback.**{*;}
A: Because the Demo has removed some cpu architectures, if you want to run it on the emulator, please do the following:
Add in android/build.gradle configuration
ndk {
abiFilters "arm64-v8a", "armeabi-v7a", "armeabi", "x86", "x86_64"
}
A: Please set the CPU architecture to arm64, and then operate as follows
- flutter clean
- flutter pub get
- cd ios
- pod install
- rm -f Podfile.lock
- rm -rf Pods
- Run Archive after connecting to the real device
A: 13.0
Could not build the precompiled application for the device.
Error (Xcode): Signing for "TOCropViewController-TOCropViewControllerBundle" requires a development team. Select a development team
in the Signing & Capabilities editor.
Error (Xcode): Signing for "DKImagePickerController-DKImagePickerController" requires a development team. Select a development team
in the Signing & Capabilities editor.
Error (Xcode): Signing for "DKPhotoGallery-DKPhotoGallery" requires a development team. Select a development team in the Signing &
Capabilities editor.
Add the following code to Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO" end
end
end