Skip to content

Commit

Permalink
Release 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiangliu committed Apr 12, 2023
1 parent 83dea53 commit aa105bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2015-2021 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
27 changes: 0 additions & 27 deletions example/test/widget_test.dart

This file was deleted.

14 changes: 4 additions & 10 deletions lib/sensors_analytics_flutter_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class SensorsAnalyticsFlutterPlugin {
Set<SANetworkType>? networkTypes,
int flushInterval = 15000,
int flushBulkSize = 100,
bool enableLog: false,
bool enableLog = false,
bool javaScriptBridge = false,
bool encrypt = false,
AndroidConfig? android,
Expand Down Expand Up @@ -320,9 +320,7 @@ class SensorsAnalyticsFlutterPlugin {
/// SensorsAnalyticsFlutterPlugin.profileSet({'key1':'value1','key2':'value2'});
///
static void profileSet(Map<String, dynamic> profileProperties) {
if (profileProperties != null) {
profileProperties = {...profileProperties};
}
profileProperties = {...profileProperties};
_convertDateTime(profileProperties);
List<dynamic> params = [profileProperties];
_channel.invokeMethod('profileSet', params);
Expand All @@ -338,9 +336,7 @@ class SensorsAnalyticsFlutterPlugin {
/// SensorsAnalyticsFlutterPlugin.profileSetOnce({'key1':'value1','key2':'value2'});
///
static void profileSetOnce(Map<String, dynamic> profileProperties) {
if (profileProperties != null) {
profileProperties = {...profileProperties};
}
profileProperties = {...profileProperties};
_convertDateTime(profileProperties);
List<dynamic> params = [profileProperties];
_channel.invokeMethod('profileSetOnce', params);
Expand Down Expand Up @@ -422,9 +418,7 @@ class SensorsAnalyticsFlutterPlugin {
/// SensorsAnalyticsFlutterPlugin.registerSuperProperties({'key1':'value1','key2':'value2'});
///
static void registerSuperProperties(Map<String, dynamic> superProperties) {
if (superProperties != null) {
superProperties = {...superProperties};
}
superProperties = {...superProperties};
_convertDateTime(superProperties);
List<dynamic> params = [superProperties];
_channel.invokeMethod('registerSuperProperties', params);
Expand Down

0 comments on commit aa105bc

Please sign in to comment.