-
Notifications
You must be signed in to change notification settings - Fork 18
Updated nocodes logic and dart version #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Constants.kProjectKey: config.projectKey, | ||
| Constants.kVersion: QonversionInternal.sdkVersion, | ||
| Constants.kSource: Constants.sdkSource, | ||
| if (config.proxyUrl != null) Constants.kProxyUrl: config.proxyUrl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we add without the null-check, will it break up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to check to avoid unnecessary behavior
| _channel.invokeMethod(Constants.mInitializeNoCodes, args); | ||
| // Initialize is fire-and-forget, errors will be handled in subsequent calls | ||
| _channel.invokeMethod(Constants.mInitializeNoCodes, args).catchError((error) { | ||
| // Silently ignore initialization errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's log them at least
| throw _convertPlatformException(e); | ||
| final result = QMapper.userFromJson(rawResult); | ||
| if (result == null) { | ||
| throw new Exception("User deserialization failed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and below lets replace all Exceptions with Qonversion ones
No description provided.