{"id":23063418,"url":"https://github.com/fluttify-project/nim_fluttify","last_synced_at":"2025-08-24T08:30:40.889Z","repository":{"id":56835412,"uuid":"277206625","full_name":"fluttify-project/nim_fluttify","owner":"fluttify-project","description":"网易云信 Flutter插件","archived":false,"fork":false,"pushed_at":"2020-07-12T09:46:36.000Z","size":36333,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T04:10:03.713Z","etag":null,"topics":["android","flutter","flutter-plugins","fluttify","ios"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttify-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-05T00:37:59.000Z","updated_at":"2021-08-15T14:28:01.000Z","dependencies_parsed_at":"2022-09-09T16:00:10.839Z","dependency_job_id":null,"html_url":"https://github.com/fluttify-project/nim_fluttify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Fnim_fluttify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Fnim_fluttify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Fnim_fluttify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Fnim_fluttify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttify-project","download_url":"https://codeload.github.com/fluttify-project/nim_fluttify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230785873,"owners_count":18279937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","flutter","flutter-plugins","fluttify","ios"],"created_at":"2024-12-16T04:09:36.926Z","updated_at":"2024-12-22T02:14:58.338Z","avatar_url":"https://github.com/fluttify-project.png","language":null,"readme":"![Logo](https://github.com/fluttify-project/fluttify-core-example/blob/develop/other/Logo-Landscape.png?raw=true)\n\n# 网易云信 Flutter插件\n\n[![pub package](https://img.shields.io/pub/v/nim_fluttify.svg)](https://pub.Flutter-io.cn/packages/nim_fluttify)\n\n**专业版为付费插件, 如有需要请联系qq 382146139**\n\n**专业版为付费插件, 如有需要请联系qq 382146139**\n\n**专业版为付费插件, 如有需要请联系qq 382146139**\n\n# Fluttify系列插件\n|  名称  | 描述 | 仓库 |\n|:-----:|:-----:|:-----:|\n| [高德地图](https://github.com/fluttify-project/amap_map_fluttify)  |  高德地图地图组件, 提供地图控件 | [![pub package](https://img.shields.io/pub/v/amap_map_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_map_fluttify) |\n| [高德定位](https://github.com/fluttify-project/amap_location_fluttify)  |  高德地图定位组件, 提供独立的定位功能 | [![pub package](https://img.shields.io/pub/v/amap_location_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_location_fluttify) |\n| [高德搜索](https://github.com/fluttify-project/amap_search_fluttify)  |  高德地图搜索组件, 提供poi搜索等功能 | [![pub package](https://img.shields.io/pub/v/amap_search_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_search_fluttify) |\n| [百度地图](https://github.com/fluttify-project/bmap_map_fluttify)  |  百度地图, 包含了地图控件, 定位以及搜索poi等功能 | [![pub package](https://img.shields.io/pub/v/bmap_map_fluttify.svg)](https://pub.Flutter-io.cn/packages/bmap_map_fluttify) |\n| [百度人脸识别](https://github.com/fluttify-project/baidu_face_flutter)  |  百度人脸识别, 提供活体检测等功能 | [![pub package](https://img.shields.io/pub/v/baidu_face_flutter.svg)](https://pub.Flutter-io.cn/packages/baidu_face_flutter) |\n| [网易直播](https://github.com/fluttify-project/netease_live_fluttify)  |  网易直播推流组件 | [![pub package](https://img.shields.io/pub/v/netease_live_fluttify.svg)](https://pub.Flutter-io.cn/packages/netease_live_fluttify) |\n| [网易云信](https://github.com/fluttify-project/nim_fluttify)  |  网易云信 IM组件 | [![pub package](https://img.shields.io/pub/v/nim_fluttify.svg)](https://pub.Flutter-io.cn/packages/nim_fluttify) |\n| [腾讯直播](https://github.com/fluttify-project/tencent_live_fluttify)  |  腾讯直播, 包含推流组件和播放组件 | [![pub package](https://img.shields.io/pub/v/tencent_live_fluttify.svg)](https://pub.Flutter-io.cn/packages/tencent_live_fluttify) |\n| [腾讯IM](https://github.com/fluttify-project/tim_fluttify)  |  腾讯IM组件 | [![pub package](https://img.shields.io/pub/v/tim_fluttify.svg)](https://pub.Flutter-io.cn/packages/tim_fluttify) |\n| [腾讯地图](https://github.com/fluttify-project/tmap_map_fluttify)  |  腾讯地图组件 | [![pub package](https://img.shields.io/pub/v/tmap_map_fluttify.svg)](https://pub.Flutter-io.cn/packages/tmap_map_fluttify) |\n| [讯飞语音合成](https://github.com/fluttify-project/xftts_fluttify)  |  腾讯语言合成组件, 提供文字转语言功能 | [![pub package](https://img.shields.io/pub/v/xftts_fluttify.svg)](https://pub.flutter-io.cn/packages/xftts_fluttify) |\n| [极光统计](https://github.com/fluttify-project/janalytics_fluttify)  |  极光统计组件, 提供异常上报等功能 | [![pub package](https://img.shields.io/pub/v/janalytics_fluttify.svg)](https://pub.flutter-io.cn/packages/janalytics_fluttify) |\n| [阿里云RTC](https://github.com/fluttify-project/ali_rtc_fluttify)  |  阿里云实时音视频 | [![pub package](https://img.shields.io/pub/v/ali_rtc_fluttify.svg)](https://pub.flutter-io.cn/packages/ali_rtc_fluttify) |\n| [环信](https://github.com/fluttify-project/easemob_im_fluttify)  |  环信IM | [![pub package](https://img.shields.io/pub/v/easemob_im_fluttify.svg)](https://pub.flutter-io.cn/packages/easemob_im_fluttify) |\n| [未完待续...](https://github.com/fluttify-project)  |  如有其它需求, 请联系qq 382146139 | ![fluttify](https://img.shields.io/badge/fluttify-welcom-green) |\n\n## 依赖\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  nim_fluttify: ^x.x.x\n```\n\n## 配置\n### Android\n1. 在AndroidManifest.xml的application标签下配置app key:\n```xml\n\u003capplication\u003e\n    \u003cmeta-data\n            android:name=\"com.netease.nim.appKey\"\n            android:value=\"6cxxxxxxxxxxxxxxxxxxxxxxxxxx9e\" /\u003e\n\u003c/application\u003e\n```\n2. 由于SDK限制, 必须在Application中初始化, 所以需要重新指定Application的实现类, 需要用户继承`FlutterApplication`并重写`onCreate`方法, 然后在AndroidManifest.xml中配置自己实现的Application, 示例实现:\n```java\nimport com.netease.nimlib.sdk.NIMClient;\nimport com.netease.nimlib.sdk.SDKOptions;\n\npublic class NIMApplication extends FlutterApplication {\n    @Override\n    @CallSuper\n    public void onCreate() {\n        super.onCreate();\n        SDKOptions options = new SDKOptions();\n        NIMClient.config(this, null, options);\n    }\n}\n```\n最终的AndroidManifest.xml中, 至少需要包含如下信息:\n```xml\n\u003capplication android:name=\"NIMApplication\"\u003e\n    \u003cmeta-data\n            android:name=\"com.netease.nim.appKey\"\n            android:value=\"6cxxxxxxxxxxxxxxxxxxxxxxxxxx9e\" /\u003e\n\u003c/application\u003e\n```\n3. 云信最低支持minSdk为17, Flutter默认为16, 所以需要修改app/build.gradle下的minSdkVersion为17.\n```groovy\nandroid {\n    defaultConfig {\n        minSdkVersion 17 // 原本为16, 改为17\n    }\n}\n```\n4. AndroidManifest.xml不需要用户再声明权限和官方提及的组件, 已经在插件中声明;\n5. 不需要再配置混淆规则, 已在插件中配置混淆规则;\n\n### iOS\n1. 选择图片时需要配置访问相册的权限, 在Info.plist中添加相册权限:\n```xml\n\u003ckey\u003eNSPhotoLibraryUsageDescription\u003c/key\u003e\n\u003cstring\u003e需要相册权限\u003c/string\u003e\n```\n2. Flutter默认的最低支持版本是iOS 8.0, 云信的最低支持版本是iOS 9.0. 所以需要更改Podfile:\n```ruby\n# Uncomment this line to define a global platform for your project\n# platform :ios, '9.0'\n```\n改为(即去掉注释)\n```ruby\n# Uncomment this line to define a global platform for your project\nplatform :ios, '9.0'\n```\n\n## 导入\n```dart\nimport 'package:nim_fluttify/nim_fluttify.dart';\n```\n\n## 使用\n插件的主要类为Nim类, Nim类为单例, 调用时使用`Nim.instance.xxx`来使用. 具体请参考[wiki](https://github.com/fluttify-project/netease_im_fluttify/wiki).\n\n## 社区\n| QQ群 |\n| :----------: |\n| \u003cimg src=\"https://github.com/fluttify-project/fluttify-project/blob/master/resources/1593774713224_temp_qrcode_share_9993.png?raw=true\" height=\"300\"\u003e | \n\n## 社区版与专业版\n|   登录登出  | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  登录  |  ✅ |  ✅   |\n|  登出  |  ✅ |  ✅   |\n|  在线状态监听  |  ✅ |  ✅   |\n\n| 消息收发 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  消息监听  |  ✅ |  ✅   |\n|  发送文字消息  |  ✅ |  ✅   |\n|  发送图片消息  |  ✅ |  ✅   |\n|  发送音频消息  |  ✅ |  ✅   |\n|  发送视频消息  |  ✅ |  ✅   |\n|  发送文件消息  |  ✅ |  ✅   |\n|  发送位置消息  |  ✅ |  ✅   |\n|  发送自定义消息  |  ✅ |  ✅   |\n\n| 用户关系托管 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  获取我的好友列表  |  ✅ |  ✅   |\n|  获取免打扰列表  |  ✅ |  ✅   |\n|  请求添加好友  |  ✅ |  ✅   |\n|  删除好友  |  ✅ |  ✅   |\n|  处理添加好友申请(同意/拒绝)  |  ✅ |  ✅   |\n|  判断用户是好友  |  ✅ |  ✅   |\n|  加入黑名单  |  ✅ |  ✅   |\n|  移出黑名单  |  ✅ |  ✅   |\n|  判断用户是否在黑名单  |  ✅ |  ✅   |\n|  判断用户是免打扰  |  ✅ |  ✅   |\n|  获取黑名单列表  |  ✅ |  ✅   |\n|  是否接收用户[account]的消息  |  ✅ |  ✅   |\n\n| 聊天室 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  进入聊天室  |  ✅ |  ✅   |\n|  退出聊天室  |  ✅ |  ✅   |\n|  获取聊天室信息  |  ✅ |  ✅   |\n|  聊天室状态监听  |  ✅ |  ✅   |\n|  聊天室踢出状态监听  |  ✅ |  ✅   |\n\n| 最近会话 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  获取会话列表  |  ✅ |  ✅   |\n\n| 历史记录 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  查询消息历史  |  ✅ |  ✅   |\n\n| 用户资料托管 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  获取用户资料  |  ☑️ |  ✅   |\n\n| 系统消息 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  系统消息监听  |  ☑️ |  ✅   |\n\n| 群组 | 社区版 | 专业版 |\n|:-----:|:-----:|:-----:|\n|  创建群组  |  ☑️ |  ✅   |\n|  设置群聊消息提醒类型  |  ☑️ |  ✅   |\n|  获取所有的群组  |  ☑️ |  ✅   |\n|  查询群组资料  |  ☑️ |  ✅   |\n|  踢人出群  |  ☑️ |  ✅   |\n|  主动退群  |  ☑️ |  ✅   |\n|  解散群  |  ☑️ |  ✅   |\n|  获取群组成员列表  |  ☑️ |  ✅   |\n|  查询被禁言群成员  |  ☑️ |  ✅   |\n|  移除管理员  |  ☑️ |  ✅   |\n|  提升管理员  |  ☑️ |  ✅   |\n|  根据群 ID 和成员帐号获取群成员  |  ☑️ |  ✅   |\n|  群成员禁言  |  ☑️ |  ✅   |\n|  群整体禁言  |  ☑️ |  ✅   |\n|  验证入群申请  |  ☑️ |  ✅   |\n|  接受入群邀请  |  ☑️ |  ✅   |\n|  拒绝入群邀请  |  ☑️ |  ✅   |\n|  邀请加入群组  |  ☑️ |  ✅   |\n|  转让群组  |  ☑️ |  ✅   |\n|  用户申请加入群  |  ☑️ |  ✅   |\n\n## LICENSE\n\u003e Copyright (C) 2020 yohom\n\u003e \n\u003e This program is free software: you can redistribute it and/or modify\n\u003e it under the terms of the GNU General Public License as published by\n\u003e the Free Software Foundation, either version 3 of the License, or\n\u003e (at your option) any later version.\n\u003e \n\u003e This program is distributed in the hope that it will be useful,\n\u003e but WITHOUT ANY WARRANTY; without even the implied warranty of\n\u003e MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\u003e GNU General Public License for more details.\n\u003e \n\u003e You should have received a copy of the GNU General Public License\n\u003e along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttify-project%2Fnim_fluttify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttify-project%2Fnim_fluttify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttify-project%2Fnim_fluttify/lists"}