Skip to content

Commit

Permalink
uniapp 支持小红书小程序 sdk
Browse files Browse the repository at this point in the history
uniapp 支持小红书小程序 sdk
  • Loading branch information
riyue committed Nov 19, 2024
1 parent 1c31ae7 commit 64b807c
Show file tree
Hide file tree
Showing 6 changed files with 3,769 additions and 31 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
## 0.1.3 (2024-11-18)
* 新增:uniapp 支持 小红书 SDK。
* 小红书小程序 SDK 版本是 v0.14.3

## 0.1.2 (2023-2-1)
* 修改:去除了支持 Vue3 点击全埋点的支持说明。不建议使用这个方案,建议手动埋点。

## 0.1.1 (2023-12-27)
新增:获取 identities 和 resetAnonymousIdentity 接口。
* 新增:获取 identities 和 resetAnonymousIdentity 接口。
* Web SDK 从 v1.24.13 更新到 v1.26.3
* 微信小程序 SDK 从 v1.18.4 更新到 v1.20.2
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<img src="https://ow-file.sensorsdata.cn/www/home/header/sensors_header_icon.svg" width="200" >

[![神策数据](https://opensource.sensorsdata.cn/wp-content/uploads/logo.png "神策数据")](https://www.sensorsdata.cn/)
<br><br>
[![License](https://img.shields.io/github/license/sensorsdata/sa-sdk-android.svg)](https://github.com/sensorsdata/sa-sdk-android/blob/master/LICENSE)


Expand All @@ -19,13 +19,14 @@

## 新书推荐

| [《数据驱动:从方法到实践》](https://item.jd.com/12322322.html) | [《Android 全埋点解决方案》](https://item.jd.com/12574672.html) | [《iOS 全埋点解决方案》](https://item.jd.com/12867068.html)
| ------ | ------ | ------ |
| 《ASM 全埋点开发实战》 | 《数据驱动:从方法到实践》 | 《Android 全埋点解决方案》 | 《iOS 全埋点解决方案》
| ------ | ------ | ------ | ------ |
| [![《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)


## License

Copyright 2015-2024 Sensors Data Inc.
Copyright 2015-2023 Sensors Data Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ import bridgeAPI from './middle/baidu.js';
import bridgeAPI from './middle/toutiao.js';
// #endif

// #ifdef MP-XHS
import bridgeAPI from './middle/xiaohongshu.js';
// #endif


import get_enableVue3MpClick from './vue3-mpclick';

let sa = {};

let lib_plugin_track_timer = 0;
let js_uniapp_version = 'js_uniapp:0.1.1';
let js_uniapp_version = 'js_uniapp:0.1.3';

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

0 comments on commit 64b807c

Please sign in to comment.