janalyticsplub

Last updated:

0 purchases

janalyticsplub Image
janalyticsplub Images
Add to Cart

Description:

janalyticsplub

JAnalytics Flutter Plugin #
安装 #
在工程 pubspec.yaml 中加入 dependencies
//github 集成
dependencies:
flutter_plugin_engagelab:
git:
url: git://github.com/jpush/janalytics-flutter-plugin.git
ref: master

// pub 集成
dependencies:
janalytics: 2.1.9
copied to clipboard
配置 #
Android:
在 /android/app/build.gradle 中添加下列代码:
android: {
....
defaultConfig {
applicationId "替换成自己应用 ID"
...
ndk {
//选择要添加的对应 cpu 类型的 .so 库。
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a',
}

manifestPlaceholders = [
JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "appkey", // NOTE: JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
]
}
}
copied to clipboard
使用 #
import 'package:janalytics/janalytics.dart';
copied to clipboard
APIs #
注意 : 需要先调用 Janalytics.setup 来初始化插件,才能保证其他功能正常工作。
参考

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.