moblink 3.1.0

MobLink For Flutter #

开始 #

  1. Flutter集成文档 MobLink-For-Flutter 在线文档

  2. iOS平台设置参考iOS集成文档

    • 实现其中的第一点:进行官网后台配置
    • 第三点的第1.2条,URL Scheme和Universal link配置,
    • 第三点的第1.3条,MobAppkey和MobAppsecret的配置。
  3. Android平台设置参考Android集成文档

    • 实现第一点完成官网后台配置
    • 在第二点中的第2条,替换appKey、appSecret为您自己的配置
    • 同时在第二点中的第2条中,需要在MobLink{}内配置以下两项
    • uriScheme "mlink://com.mob.moblink.demo"
    • appLinkHost ""
  4. Web平台设置参考Web端集成文档

1.0.8 #

Log: deleted com.yoozoo spacename in the pubspecy.yaml

3.1.0 #

Log: updated build.gradle and fixed bug that return getMobId value Type of HashMap in the MoblinkPlugin file


moblink_example #

Getting Started #

  • import library
import 'package:moblink/moblink.dart';
  • get mobid
// 设置参数
	MLSDKScene scene =
        MLSDKScene('/demo/a', {'param1': '123', 'param2': '456'});
    // 传入 scene , 获取 mobid
    Moblink.getMobId(scene, (String mobid, String domain, MLSDKError error) {
      if (mobid != null) {
        print('得到mobid:' + mobid);
        // do something
  • get restore scene callback
// 场景还原的回调
    Moblink.restoreScene((MLSDKScene scene) {
      // 根据场景,手动设置跳转
      print('要还原的路径为:' + scene.path);
		// do restore scene

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  moblink: ^3.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:moblink/moblink.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.3


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/moblink_interface.dart. (-1.49 points)

Analysis of lib/moblink_interface.dart reported 3 hints:

line 13 col 10: This function has a return type of 'Future', but doesn't end with a return statement.

line 19 col 10: This function has a return type of 'Future', but doesn't end with a return statement.

line 24 col 10: This function has a return type of 'Future', but doesn't end with a return statement.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8