Skip to content

Commit aa105bc

Browse files
author
weiqiangliu
committed
Release 2.4.0
1 parent 83dea53 commit aa105bc

File tree

3 files changed

+5
-38
lines changed

3 files changed

+5
-38
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2015-2021 Sensors Data Inc.
189+
Copyright 2015-2023 Sensors Data Inc.
190190

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

example/test/widget_test.dart

Lines changed: 0 additions & 27 deletions
This file was deleted.

lib/sensors_analytics_flutter_plugin.dart

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class SensorsAnalyticsFlutterPlugin {
8181
Set<SANetworkType>? networkTypes,
8282
int flushInterval = 15000,
8383
int flushBulkSize = 100,
84-
bool enableLog: false,
84+
bool enableLog = false,
8585
bool javaScriptBridge = false,
8686
bool encrypt = false,
8787
AndroidConfig? android,
@@ -320,9 +320,7 @@ class SensorsAnalyticsFlutterPlugin {
320320
/// SensorsAnalyticsFlutterPlugin.profileSet({'key1':'value1','key2':'value2'});
321321
///
322322
static void profileSet(Map<String, dynamic> profileProperties) {
323-
if (profileProperties != null) {
324-
profileProperties = {...profileProperties};
325-
}
323+
profileProperties = {...profileProperties};
326324
_convertDateTime(profileProperties);
327325
List<dynamic> params = [profileProperties];
328326
_channel.invokeMethod('profileSet', params);
@@ -338,9 +336,7 @@ class SensorsAnalyticsFlutterPlugin {
338336
/// SensorsAnalyticsFlutterPlugin.profileSetOnce({'key1':'value1','key2':'value2'});
339337
///
340338
static void profileSetOnce(Map<String, dynamic> profileProperties) {
341-
if (profileProperties != null) {
342-
profileProperties = {...profileProperties};
343-
}
339+
profileProperties = {...profileProperties};
344340
_convertDateTime(profileProperties);
345341
List<dynamic> params = [profileProperties];
346342
_channel.invokeMethod('profileSetOnce', params);
@@ -422,9 +418,7 @@ class SensorsAnalyticsFlutterPlugin {
422418
/// SensorsAnalyticsFlutterPlugin.registerSuperProperties({'key1':'value1','key2':'value2'});
423419
///
424420
static void registerSuperProperties(Map<String, dynamic> superProperties) {
425-
if (superProperties != null) {
426-
superProperties = {...superProperties};
427-
}
421+
superProperties = {...superProperties};
428422
_convertDateTime(superProperties);
429423
List<dynamic> params = [superProperties];
430424
_channel.invokeMethod('registerSuperProperties', params);

0 commit comments

Comments
 (0)