moblink 1.0.5

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 72

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端集成文档

0.0.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: ^1.0.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages 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';
  
Version Uploaded Documentation Archive
1.0.5 Feb 26, 2019 Go to the documentation of moblink 1.0.5 Download moblink 1.0.5 archive
1.0.4 Feb 22, 2019 Go to the documentation of moblink 1.0.4 Download moblink 1.0.4 archive
1.0.3 Feb 22, 2019 Go to the documentation of moblink 1.0.3 Download moblink 1.0.3 archive
1.0.2 Feb 22, 2019 Go to the documentation of moblink 1.0.2 Download moblink 1.0.2 archive
1.0.1 Feb 21, 2019 Go to the documentation of moblink 1.0.1 Download moblink 1.0.1 archive
1.0.0 Feb 21, 2019 Go to the documentation of moblink 1.0.0 Download moblink 1.0.0 archive
0.0.1 Feb 20, 2019 Go to the documentation of moblink 0.0.1 Download moblink 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
46
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
72
Learn more about scoring.

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

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

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.

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