rongcloud_rtc_plugin 2.0.1

Flutter Android iOS

RongCloud RTC Flutter Plugin

0
likes
65 / 110
pub points
25 %
popularity

We analyzed this package on Sep 19, 2020, and awarded it 65 pub points (of a possible 110):

Follow Dart file conventions
5 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

5/5 points: Provide a valid README.md

0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 57 out of 79 API elements (72.2 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)

Consider supporting multiple platforms:

Package does not support Flutter platform Web

Because:

  • package:rongcloud_rtc_plugin/rongcloud_rtc_plugin.dart that declares support for platforms: Android, iOS

Consider supporting these prerelease platforms:

Package does not support Flutter platform Windows

Because:

  • package:rongcloud_rtc_plugin/rongcloud_rtc_plugin.dart that declares support for platforms: Android, iOS
Package does not support Flutter platform Linux

Because:

  • package:rongcloud_rtc_plugin/rongcloud_rtc_plugin.dart that declares support for platforms: Android, iOS
Package does not support Flutter platform macOS

Because:

  • package:rongcloud_rtc_plugin/rongcloud_rtc_plugin.dart that declares support for platforms: Android, iOS
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 6 issues. Showing the first 2:

INFO: This function has a return type of 'Future

lib/src/rong_rtc_engine.dart:222:35

    ╷
222 │       _channel.setMethodCallHandler((MethodCall call) {
    │ ┌───────────────────────────────────^
223 │ │       Map arg = call.arguments;
224 │ │       switch (call.method) {
225 │ │         case RCRTCMethodCallBackKey.UserJoined:
226 │ │           if(onUserJoined != null) {
227 │ │             onUserJoined(arg["userId"]);
228 │ │           }
229 │ │           break;
230 │ │         case RCRTCMethodCallBackKey.UserLeaved:
231 │ │           if(onUserLeaved != null) {
232 │ │             onUserLeaved(arg["userId"]);
233 │ │           }
234 │ │           break;
235 │ │         case RCRTCMethodCallBackKey.RemoteUserPublishStreams:
236 │ │           if(onUserStreamPublished != null) {
237 │ │             onUserStreamPublished(arg["userId"]);
238 │ │           }
239 │ │           break;
240 │ │         case RCRTCMethodCallBackKey.RemoteUserUnpublishStreams:
241 │ │           if(onUserStreamUnpublished != null) {
242 │ │             onUserStreamUnpublished(arg["userId"]);
243 │ │           }
244 │ │           break;
245 │ │         case RCRTCMethodCallBackKey.RemoteUserVideoEnabled:
246 │ │           if(onUserVideoEnabled != null) {
247 │ │             onUserVideoEnabled(arg["userId"],arg["enable"]);
248 │ │           }
249 │ │           break;
250 │ │         case RCRTCMethodCallBackKey.RemoteUserAudioEnabled:
251 │ │           if(onUserAudioEnabled != null) {
252 │ │             onUserVideoEnabled(arg["userId"],arg["enable"]);
253 │ │           }
254 │ │           break;
255 │ │         case RCRTCMethodCallBackKey.RemoteUserFirstKeyframe:
256 │ │           if(onUserFirstKeyframeReceived != null) {
257 │ │             onUserFirstKeyframeReceived(arg["userId"]);
258 │ │           }
259 │ │           break;
260 │ │       }
261 │ │     });
    │ └─────^
    ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/rong_rtc_engine.dart

INFO: Prefer using /// for doc comments.

lib/src/rong_rtc_error_code.dart:1:1

  ╷
1 │ ┌ /**
2 │ │  * 音视频错误码定义
3 │ │  *
4 │ │  * 服务器返回错误以 4 开头,后两位是业务代码,最后两位是错误码 4XXXX,如 400XX 基础连接部分
5 │ │  * 本地返回错误以 5 开头,后两位是业务代码,最后两位是错误码 5XXXX,如 500XX 初始化基础连接部分
6 │ └  */
  ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/rong_rtc_error_code.dart

Support up-to-date dependencies
10 / 20

0/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
flutterflutter0.0.00.0.0
rongcloud_im_plugin^2.0.02.1.14.0.2+1
Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.0.01.0.0
collection-1.14.131.14.13
meta-1.1.81.2.3
sky_engine-0.0.990.0.99
typed_data-1.2.01.2.0
vector_math-2.0.82.0.8

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^2.0.0` on rongcloud_im_plugin does not support the latest published version `4.0.2+1`

pubspec.yaml:13:24

   ╷
13 │   rongcloud_im_plugin: ^2.0.0
   │                        ^^^^^^
   ╵

10/10 points: Package supports latest stable Dart and Flutter SDKs