File tree Expand file tree Collapse file tree 7 files changed +17
-23
lines changed Expand file tree Collapse file tree 7 files changed +17
-23
lines changed Original file line number Diff line number Diff line change 1+ ## 4.0.2
2+
3+ * 全埋点页面浏览事件采集标题支持 AppBar title
4+
15## 4.0.1
26
37* 修改依赖的原生 iOS 埋点 SDK 的引入方式
Original file line number Diff line number Diff line change 11<img src =" https://ow-file.sensorsdata.cn/www/home/header/sensors_header_icon.svg " width =" 200 " >
22
3- [ ![ License] ( https://img.shields.io/badge/license-Commercial-lightgrey )] ( https://github.com/sensorsdata/sensors_analytics_flutter_plugin/blob/master/LICENSE )
4- [ ![ Average time to resolve an issue] ( http://isitmaintained.com/badge/resolution/sensorsdata/sensors_analytics_flutter_plugin.svg )] ( http://isitmaintained.com/project/sensorsdata/sensors_analytics_flutter_plugin " Average time to resolve an issue ")
5- [ ![ Percentage of issues still open] ( http://isitmaintained.com/badge/open/sensorsdata/sensors_analytics_flutter_plugin.svg )] ( http://isitmaintained.com/project/sensorsdata/sensors_analytics_flutter_plugin " Percentage of issues still open ")
6- [ ![ GitHub release] ( https://img.shields.io/github/tag/sensorsdata/sensors_analytics_flutter_plugin.svg?label=release )] ( https://github.com/sensorsdata/sensors_analytics_flutter_plugin/releases )
7- [ ![ GitHub release date] ( https://img.shields.io/github/release-date/sensorsdata/sensors_analytics_flutter_plugin.svg )] ( https://github.com/sensorsdata/sensors_analytics_flutter_plugin/releases )
8- ![ platform] ( https://img.shields.io/badge/platform-Android%20%7C%20iOS%20%7C%20Web%20%7C%20HarmonyOS-yellowgreen )
9-
10-
113## 神策简介
124
135[ ** 神策数据** ] ( https://www.sensorsdata.cn/ )
179
1810神策 sensors_analytics_flutter_plugin 插件,封装了神策 iOS & Android SDK 常用 API ,使用此插件,可以完成埋点的统计上报。
1911
20- ## 神策埋点 SDK 官网
21- 如需了解神策埋点 SDK 的更多商业授权信息,请访问[ 神策埋点 SDK 官网] ( https://jssdk.debugbox.sensorsdata.cn/ ) 获取更多详细信息。
22-
23- ## 联系我们
24- 若您有商业合作或产品集成需求,请通过下面的渠道联系我们获取专业服务与支持。
25-
26- | 加微信号:skycode008,或扫码添加联系人 <img src =" https://github.com/sensorsdata/sa-sdk-android/blob/master/WechatIMG180.jpg " width =" 300 " height =" 450 " /> | 扫码关注「神策埋点 SDK」公众号 ![ gzh] ( https://github.com/sensorsdata/sa-sdk-android/blob/master/gzh.jpeg ) |
27- | ------ | ------ |
28-
2912## 使用方式
3013
3114在 Flutter 项目的 ` pubspec.yaml ` 文件中添加 ` sensors_analytics_flutter_plugin ` 依赖
3215
3316``` yml
3417dependencies :
3518 # 添加神策 flutter plugin
36- sensors_analytics_flutter_plugin : ^4.0.1
19+ sensors_analytics_flutter_plugin : ^4.0.2
3720` ` `
3821
3922执行 flutter packages get 命令安装插件
Original file line number Diff line number Diff line change 33#
44Pod ::Spec . new do |s |
55 s . name = 'sensors_analytics_flutter_plugin'
6- s . version = '4.0.1 '
6+ s . version = '4.0.2 '
77 s . summary = 'The official flutter iOS plugin of Sensors Analytics.'
88 s . homepage = 'https://www.sensorsdata.cn/'
99 s . license = {
Original file line number Diff line number Diff line change 1- import 'package:flutter/widgets .dart' ;
1+ import 'package:flutter/material .dart' ;
22
33typedef SAElementWalker = bool Function (Element child, Element ? parent);
44
@@ -26,6 +26,13 @@ class SAElementUtil {
2626 static String ? findTitle (Element element) {
2727 String ? title;
2828 walkElement (element, (child, _) {
29+ if (child.widget is AppBar ) {
30+ AppBar appBar = child.widget as AppBar ;
31+ if (appBar.title is Text ) {
32+ title = (appBar.title as Text ).data;
33+ return false ;
34+ }
35+ }
2936 if (child.widget is NavigationToolbar ) {
3037 NavigationToolbar toolBar = child.widget as NavigationToolbar ;
3138 if (toolBar.middle == null ) {
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class HarmonyConfig {
6868
6969// This is the official Flutter Plugin for Sensors Analytics.
7070class SensorsAnalyticsFlutterPlugin {
71- static const String FLUTTER_PLUGIN_VERSION = "4.0.1 " ;
71+ static const String FLUTTER_PLUGIN_VERSION = "4.0.2 " ;
7272 static bool hasAddedFlutterPluginVersion = false ;
7373
7474 static Future <String ?> get getDistinctId async {
Original file line number Diff line number Diff line change 11{
22 "name" : "sensors_analytics_flutter_plugin" ,
3- "version" : "4.0.1 " ,
3+ "version" : "4.0.2 " ,
44 "description" : "神策分析 SDK Flutter 组件,支持 HarmonyOS 埋点" ,
55 "keywords" : [
66 "神策分析" ,
Original file line number Diff line number Diff line change 11name : sensors_analytics_flutter_plugin
22description : This is the official flutter plugin for Sensors Analytics,with this plugin you can easily collect your app data on Android and iOS.
3- version : 4.0.1
3+ version : 4.0.2
44homepage : " https://github.com/sensorsdata/sensors_analytics_flutter_plugin"
55
66environment :
You can’t perform that action at this time.
0 commit comments