Skip to content

Commit ce196e4

Browse files
authored
Merge pull request #103 from misterfourtytwo/patch-1
validate options type
2 parents e8c3a3f + badcf55 commit ce196e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/appsflyer_sdk.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class AppsflyerSdk {
2727
EventChannel(AppsflyerConstants.AF_EVENTS_CHANNEL);
2828

2929
//check if the option variable is AFOptions type or map type
30+
assert(options is AppsFlyerOptions || options is Map);
3031
if (options is AppsFlyerOptions) {
3132
_instance = AppsflyerSdk.private(methodChannel, eventChannel,
3233
afOptions: options);

0 commit comments

Comments
 (0)