0.2.12-rc5 • Published 1 month ago

rangers_applog_reactnative_plugin v0.2.12-rc5

Weekly downloads
5
License
MIT
Repository
github
Last release
1 month ago

rangers_applog_reactnative_plugin

在使用 RangersAppLog SDK 前,你需要先注册DataRangers账号并且创建一个应用。

1. 插件安装与初始化

iOS

  1. 安装插件
  2. 在iOS原生工程的Podfile中依赖RangersAppLog. 参考example/ios/Podfile
  3. 在iOS原生工程的AppDelegate.m中初始化RangersAppLog. 参考example/ios/RangersApplogReactnativePluginExample/AppDelegate.m
  4. 可以参考(1)插件源码ios/RangersAppLogModule.m (2)测试RN文件example/src/App.tsx中的调用方式使用调用插件接口。

Android

  1. 安装插件
  2. 在Android原生工程中依赖RangersAppLog. 参考example/android/build.gradle
  3. 在Android原生工程的Application中初始化RangersAppLog. 参考example/android/MainApplication中的onCreate初始化
  4. 测试RN文件example/src/App.tsx中的调用方式使用调用插件接口。

2. 插件接口文档

接口名功能参数支持平台
setUserUniqueId设置用户登录 Id参数1:string,可空。user_unique_id。iOS, Android
setHeaderInfo自定义header信息 设置用户公共属性参数1:字典,可空。自定义header信息。iOS, Android
onEventV3生成自定义埋点参数1:string,非空。事件名。 参数2:字典,可空。事件参数。iOS, Android
getDeviceID获取did参数:无 返回:str。iOS, Android
getAbSdkVersion获取全部客户端和服务端已曝光参数参数:无 返回:striOS, Android
getABTestConfigValueForKey获取AB测试的配置,若不存在返回nil参数1: str, ABTest配置的key 返回:str或niliOS, Android

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Develop

测试时: name 改为 @dp/rangers_applog_reactnative_plugin publishConfig 的 url 请使用:https://bnpm.byted.org/

正式对外发布时: name 改为 rangers_applog_reactnative_plugin publishConfig 的 url 请使用:https://registry.npmjs.org/

0.2.12-rc4

1 month ago

0.2.12-rc3

1 month ago

0.2.12-rc5

1 month ago

0.2.12-rc2

1 month ago

0.2.12-rc1

1 month ago

0.2.12-rc0

1 month ago

0.2.11-rc0

5 months ago

0.2.11

5 months ago

0.2.10-rc0

8 months ago

0.2.10

8 months ago

0.2.8-rc1

11 months ago

0.2.9-rc1

9 months ago

0.2.9

9 months ago

0.2.8

11 months ago

0.2.8-rc0

12 months ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.3

2 years ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.2

2 years ago

0.2.0-rc4

2 years ago

0.2.0-rc5

2 years ago

0.2.0-rc6

2 years ago

0.2.0-rc7

2 years ago

0.2.0-rc0

2 years ago

0.2.0-rc1

2 years ago

0.2.0-rc2

2 years ago

0.2.0-rc3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.0-rc8

2 years ago

0.2.0-rc9

2 years ago

0.1.6-rc0

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago