Skip to content

Commit ebb85f3

Browse files
Nested tag support cases added
1 parent 5f45aa0 commit ebb85f3

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

lib/src/optimizely_client_wrapper.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ class OptimizelyClientWrapper {
371371

372372
if (checkCallBackExist(sdkKey, callback)) {
373373
// ignore: avoid_print
374-
print("callback already exists.");
375374
return -1;
376375
}
377376

@@ -417,7 +416,6 @@ class OptimizelyClientWrapper {
417416

418417
if (checkCallBackExist(sdkKey, callback)) {
419418
// ignore: avoid_print
420-
print("callback already exists.");
421419
return -1;
422420
}
423421

@@ -440,7 +438,6 @@ class OptimizelyClientWrapper {
440438

441439
if (checkCallBackExist(sdkKey, callback)) {
442440
// ignore: avoid_print
443-
print("callback already exists.");
444441
return -1;
445442
}
446443

@@ -464,7 +461,6 @@ class OptimizelyClientWrapper {
464461

465462
if (checkCallBackExist(sdkKey, callback)) {
466463
// ignore: avoid_print
467-
print("callback already exists.");
468464
return -1;
469465
}
470466

test/test_utils.dart

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,15 @@ class TestUtils {
136136
Constants.eventKey: "$id",
137137
Constants.userId: "test",
138138
Constants.attributes: {"test": id},
139-
Constants.eventTags: {"testTag": id}
139+
Constants.eventTags: {
140+
"testTag": id,
141+
"nestedTag": {
142+
"string_key": "stringValue",
143+
"int_key": 123,
144+
"double_key": 123.456,
145+
"bool_key": true
146+
}
147+
}
140148
};
141149
handler(MethodCall(Constants.trackCallBackListener, {
142150
Constants.id: id,
@@ -152,6 +160,12 @@ class TestUtils {
152160
Constants.attributes: {"test": id},
153161
Constants.eventTags: {
154162
"testTag": id,
163+
"nestedTag": {
164+
"string_key": "stringValue",
165+
"int_key": 123,
166+
"double_key": 123.456,
167+
"bool_key": true
168+
},
155169
"client_name": clientName,
156170
"client_version": sdkVersion
157171
}

0 commit comments

Comments
 (0)