Skip to content
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

[native_dio_adapter] ✨ Adds createCronetEngine and createCupertinoConfiguration #2040

Merged

Conversation

AlexV525
Copy link
Member

...to deprecate cronetEngine and cupertinoConfiguration for the NativeAdapter, to avoid platform exceptions.

Fixes #2039.

New Pull Request Checklist

  • I have read the Documentation
  • I have searched for a similar pull request in the project and found none
  • I have updated this branch with the latest main branch to avoid conflicts (via merge from master or rebase)
  • I have added the required tests to prove the fix/feature I'm adding
  • I have updated the documentation (if necessary)
  • I have run the tests without failures
  • I have updated the CHANGELOG.md in the corresponding package

@AlexV525 AlexV525 added p: native_dio_adapter Targeting `native_dio_adapter` package s: bug Something isn't working labels Nov 25, 2023
@AlexV525 AlexV525 marked this pull request as ready for review November 25, 2023 02:29
@AlexV525 AlexV525 requested a review from a team as a code owner November 25, 2023 02:29
Copy link
Contributor

@ueman ueman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a really nice improvement in terms of usability!

'Use createCupertinoConfiguration instead. '
'This will cause platform exception on the Android platform. '
'This will be removed in v2.0.0',
)
URLSessionConfiguration? cupertinoConfiguration,
}) {
if (Platform.isAndroid) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but I guess we could make use of https://pub.dev/packages/platform here later to enable better testing in the future

@AlexV525 AlexV525 added this pull request to the merge queue Nov 25, 2023
Merged via the queue into main with commit bb6d65b Nov 25, 2023
3 checks passed
@AlexV525 AlexV525 deleted the feat/native-dio-adapter-create-configuration-by-function branch November 25, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: native_dio_adapter Targeting `native_dio_adapter` package s: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[native_dio_adapter] Pre-defined URLSessionConfiguration will fail platforms other than Darwin
2 participants