moblink 3.3.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 71

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 "z.t4m.cn"
  4. Web平台设置参考Web端集成文档

3.3.1 #

  • TODO: Describe initial release.

example/README.md

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:


dependencies:
  moblink: ^3.3.1

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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
51
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
71
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Health suggestions

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

Analysis of lib/moblink_interface.dart reported 3 hints:

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

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

line 22 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 https://www.mob.com/product/moblink was unreachable.

Dependencies

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 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8