Imitation WeChat APP implemented using Jiguang IM
声明:本项目仅供学习,如有侵权请联系本人进行删除。
手机号码:18601952581(微信同号)
QQ:1558053958
邮箱:[email protected]
可承接一些中小型项目、毕业设计等
iOS
If (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)
appears, it means that the domestic source has not been set up, or you can try to circumvent the firewall.
Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN)
• Flutter version 1.22.1 at /System/Volumes/Data/workspace/flutter
• Framework revision f30b7f4db9 (3 周前), 2020-10-08 10:06:30 -0700
• Engine revision 75bef9f6c8
• Dart version 2.10.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/developer/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] Connected device (3 available)
• MI 5X • 1c7664100104 • android-arm64 • Android 8.1.0 (API 27)
• iPhone 11 Pro Max • B366D105-9EEC-47E4-A0CE-94C43E9ACD2D • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)
If you have not upgraded the flutter version to 1.17.0, then change the provider version to 4.0.5+1
Some interfaces in the project are http urls. Android 9.0/P and iOS prohibit loading from non-https URLs, so the network security configuration of the App needs to be changed to allow such connections.
Android
Add an xml directory under res and create the network_security_config.xml file
<? xml version = " 1.0 " encoding = " utf-8 " ?>
< network-security-config >
< base-config cleartextTrafficPermitted = " true " />
</ network-security-config >
Add the following attributes to the application tag under the AndroidManifest.xml file
< application
android : networkSecurityConfig = " @xml/network_security_config "
/>
iOS
Edit under Info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
If you like my Flutter version of the imitation WeChat App, or feel it has helped you, you can click "Star" in the upper right corner to support it. Your support is my motivation, thank you?
You can also scan the QR code below and buy the author a cup of coffee☕️
Apache 2.0