Skip to content

Commit b2bb377

Browse files
author
weizhangxiang
committed
[fix] 1.修复 getLoginId 方法空判断问题
1 parent 839a576 commit b2bb377

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.5.0
2+
3+
* 修复 getLoginId 方法缺陷
4+
15
## 2.4.0
26

37
* 异常处理优化

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
```yml
1818
dependencies:
1919
# 添加神策 flutter plugin
20-
sensors_analytics_flutter_plugin: ^2.4.0
20+
sensors_analytics_flutter_plugin: ^2.5.0
2121
```
2222
2323
执行 flutter packages get 命令安装插件

lib/sensors_analytics_flutter_plugin.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class VisualizedConfig {
3737

3838
// This is the official Flutter Plugin for Sensors Analytics.
3939
class SensorsAnalyticsFlutterPlugin {
40-
static const String FLUTTER_PLUGIN_VERSION = "2.4.0";
40+
static const String FLUTTER_PLUGIN_VERSION = "2.5.0";
4141
static bool hasAddedFlutterPluginVersion = false;
4242

4343
static Future<String?> get getDistinctId async {
@@ -582,7 +582,7 @@ class SensorsAnalyticsFlutterPlugin {
582582
}
583583

584584
/// 获取当前用户的 loginId
585-
static Future<String> getLoginId() async {
585+
static Future<String?> getLoginId() async {
586586
return await _channel.invokeMethod("getLoginId");
587587
}
588588

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sensors_analytics_flutter_plugin
22
description: 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: 2.4.0
3+
version: 2.5.0
44
homepage: "https://github.com/sensorsdata/sensors_analytics_flutter_plugin"
55

66
environment:

0 commit comments

Comments
 (0)