Skip to content

use okhttp3 #19706

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

Closed
wants to merge 1 commit into from
Closed

use okhttp3 #19706

wants to merge 1 commit into from

Conversation

PatriceJiang
Copy link
Contributor

use okhttp to replace android-async-http in CCDownloader android implementation.

base on cocos/engine-native#1731

@PatriceJiang PatriceJiang added this to the next milestone May 13, 2019
else
downloader.onFinish(id, ErrorCode.ERROR_IMPL_INTERNAL, errStr, null);
} else {
// 非文件
Copy link
Contributor

Choose a reason for hiding this comment

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

comments in chinese

@halx99
Copy link
Contributor

halx99 commented May 15, 2019

why not use curl for all platforms?

@minggo
Copy link
Contributor

minggo commented May 16, 2019

@halx99 according the issue: #10382, i think it is about to reduce package size. Use platform network can reduce the package size. But it is pity that it brings JAR lib on Android too, though the package size is smaller than libcurl(curl depends on ssl).

So i think it will be better if not 3rd party library is needed.

@PatriceJiang
Copy link
Contributor Author

re-commit in #19766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants