From 7f3dd26a8605847bb831c5ce79d66629526adf3b Mon Sep 17 00:00:00 2001 From: xf695977 Date: Thu, 22 Apr 2021 14:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9md=E6=96=87=E4=BB=B6=E5=92=8C?= =?UTF-8?q?changelog=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 36 +++++++++++++++++-------------- 2 files changed, 80 insertions(+), 16 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..fe1032c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,60 @@ +## 0.0.1-SNAPSHOT +* refactor: For module library Android-to-OpenHarmony + +## v4.1.2 + +Reduced impact +* Reduced impact on app performance (Thanks @Tolriq) + +## v4.1.1 + +* Fixed disk caching loosing events, see #271 + +## v4.1.0 + +Improved edge-case behavior +* Align user-id / visitor-id behavior with other SDKs. (#256) +* Fix UncaughtExceptionHandler loosing events on crash (#252) + +## v4.0.2 + +Bugfix +* Fixes #243 which lead to price not being tracked for larger prices + +## v4.0.1 + +Improved debugging +* Better log tags + +## v4.0.0 + +Piwik -> Matomo +* Major refactoring from Piwik to Matomo (#191), see here for migration hints +* Additional debugging information (#228) +* A Tracker callback to allow extensions that modify the tracked data shortly before sending, e.g. for custom dimensions (#224) +* Removed any pattern enforcing on the application domain (#217) + +## v3.0.4 + +Bugfixes +* Fixes a potential connection leak (#226) + +## v3.0.3 + +Bugfixes +* The Android SDK did not second the necessary information to allow for server-side stitching when changing the user-id within a sesion (#209) +* Fixed a bug causing the session to not time out due to start-time being updated too often (#210) +* Updated used android supportlibs +* Switched the demo app to https and matomo.org + +## v3.0.2 + +* Fixed issue with transitive dependencies on Timber and SupportAnnotations leaking through (#204, #184, #207) +* Updated buildtools / gradle + +## v3.0.1 + +Bugfix release +* Fixed: If the server returns a non-OK (non 2XX status code), the response can contain an error stream. This error stream can leak an open socket if not consumed (or at least explicitly closed). See #199. +* Fixed: When using GZIP & POST the OutputStream could leak resources if it is not explicitly closed. +* Improved: Failure to close an output stream AFTER data transmission (without exception) is now no longer failing the send(Packet) call. diff --git a/README.md b/README.md index 59a1d40..e5e592e 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,15 @@ # matomo-sdk-ohos - ## 本项目是基于开源项目matomo-sdk-ohos进行鸿蒙化的移植和开发的,可以通过项目地址()追踪到原安卓项目版本 - +## 本项目是基于开源项目matomo-sdk-android进行openharmony的移植和开发的,可以通过项目地址()追踪到原安卓项目版本 ## 项目介绍 项目名称:打点数据上报 -所属系列:鸿蒙的第三方组件适配移植 +所属系列:openharmony的第三方组件适配移植 功能:可以解析每个按钮的点击事件所上报的数据 -基线版本:matomo-sdk-ohos-master组件 Release版本号 v4.1.2 +基线版本:matomo-sdk-android组件 Release版本号 v4.1.2 项目移植状态:有差异 @@ -22,26 +21,31 @@ 联系方式:zhaoxudong073@chinasoftinc.com -原项目Doc地址:https://github.com/matomo-org/matomo-sdk-android +原项目Doc地址: -## 项目介绍 编程语言:Java 外部库依赖:matomo-sdk-ohos项目中的tracker库 ## 安装教程 -1.下载tracker的har包tracker-debug.har(位于:)。 - -2.启动 DevEco Studio,将下载的har包,导入工程目录“entry->libs”下。 - -3.在moudle级别下的build.gradle文件中添加依赖,在dependences标签中增加对libs目录下har包的引用。 -``` -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - …… +1、在项目根目录下的build.gradle文件中 + ```gradle +allprojects { + repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } + } } ``` +2.在entry模块的build.gradle文件中 + ```gradle + dependencies { + implementation('com.gitee.chinasoft_ohos:matomo-sdk-ohos:0.0.1-SNAPSHOT') + ...... + } +``` 在sdk5,DevEco Studio2.1 beta3下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 @@ -75,7 +79,7 @@ TrackHelper.track(new TrackMe().set(QueryParams.SESSION_START, 1)) ``` ## 版本迭代 -v0.0.1_alpha +- 0.0.1-SNAPSHOT ## 版权和许可信息 Copyright 2018 Matomo team -- Gitee