Skip to content

Commit 64b807c

Browse files
committed
uniapp 支持小红书小程序 sdk
uniapp 支持小红书小程序 sdk
1 parent 1c31ae7 commit 64b807c

File tree

6 files changed

+3769
-31
lines changed

6 files changed

+3769
-31
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
## 0.1.3 (2024-11-18)
2+
* 新增:uniapp 支持 小红书 SDK。
3+
* 小红书小程序 SDK 版本是 v0.14.3
4+
5+
## 0.1.2 (2023-2-1)
6+
* 修改:去除了支持 Vue3 点击全埋点的支持说明。不建议使用这个方案,建议手动埋点。
7+
18
## 0.1.1 (2023-12-27)
2-
新增:获取 identities 和 resetAnonymousIdentity 接口。
9+
* 新增:获取 identities 和 resetAnonymousIdentity 接口。
310
* Web SDK 从 v1.24.13 更新到 v1.26.3
411
* 微信小程序 SDK 从 v1.18.4 更新到 v1.20.2

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<img src="https://ow-file.sensorsdata.cn/www/home/header/sensors_header_icon.svg" width="200" >
2-
1+
[![神策数据](https://opensource.sensorsdata.cn/wp-content/uploads/logo.png "神策数据")](https://www.sensorsdata.cn/)
2+
<br><br>
33
[![License](https://img.shields.io/github/license/sensorsdata/sa-sdk-android.svg)](https://github.com/sensorsdata/sa-sdk-android/blob/master/LICENSE)
44

55

@@ -19,13 +19,14 @@
1919

2020
## 新书推荐
2121

22-
| [《数据驱动:从方法到实践》](https://item.jd.com/12322322.html) | [《Android 全埋点解决方案》](https://item.jd.com/12574672.html) | [《iOS 全埋点解决方案》](https://item.jd.com/12867068.html)
23-
| ------ | ------ | ------ |
22+
| 《ASM 全埋点开发实战》 | 《数据驱动:从方法到实践》 | 《Android 全埋点解决方案》 | 《iOS 全埋点解决方案》
23+
| ------ | ------ | ------ | ------ |
24+
| [![《ASM 全埋点开发实战》](https://opensource.sensorsdata.cn/wp-content/uploads/ASM-全埋点thumbnail_1.jpg)](https://item.jd.com/14058352.html) | [![《数据驱动:从方法到实践》](https://opensource.sensorsdata.cn/wp-content/uploads/data_driven_book_1.jpg)](https://item.jd.com/12322322.html) | [![《Android 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/Android-全埋点thumbnail_1.png)](https://item.jd.com/12574672.html) | [![《iOS 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/iOS-全埋点thumbnail_1.png)](https://item.jd.com/12867068.html)
2425

2526

2627
## License
2728

28-
Copyright 2015-2024 Sensors Data Inc.
29+
Copyright 2015-2023 Sensors Data Inc.
2930

3031
Licensed under the Apache License, Version 2.0 (the "License");
3132
you may not use this file except in compliance with the License.

index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@ import bridgeAPI from './middle/baidu.js';
3434
import bridgeAPI from './middle/toutiao.js';
3535
// #endif
3636

37+
// #ifdef MP-XHS
38+
import bridgeAPI from './middle/xiaohongshu.js';
39+
// #endif
40+
41+
3742
import get_enableVue3MpClick from './vue3-mpclick';
3843

3944
let sa = {};
4045

4146
let lib_plugin_track_timer = 0;
42-
let js_uniapp_version = 'js_uniapp:0.1.1';
47+
let js_uniapp_version = 'js_uniapp:0.1.3';
4348

4449
//检查是否是支持的平台,如果不支持就使用commonAPI
4550
if (typeof bridgeAPI === 'undefined') {
@@ -49,8 +54,8 @@ if (typeof bridgeAPI === 'undefined') {
4954
sa = bridgeAPI;
5055
/*
5156
做一次common-api的遍历
52-
如果bridgeAPI都实现了,就结束
53-
如果bridgeAPI没有实现,从instance中获取,如果还没有就=common-api
57+
如果bridgeAPI都实现了,就结束
58+
如果bridgeAPI没有实现,从instance中获取,如果还没有就=common-api
5459
*/
5560
Object.keys(commonAPI).forEach((key) => {
5661
if (!(key in bridgeAPI)) {

0 commit comments

Comments
 (0)