Release v1.21.0
·
78 commits
to master
since this release
Common
- Removed deprecated
olp::client::OlpClient::SetSettings(...)method. Useolp::client::OlpClientconstructor instead. - Removed deprecated
olp::client::HttpResponse::statusfield. UseHttpResponse::GetStatus()method instead. - Removed deprecated
olp::client::HttpResponse::responsefield. UseHttpResponse::GetRawResponse()method instead. - Removed deprecated
olp::client::HttpResponse::headersfield. UseHttpResponse::GetHeaders()method instead.
olp-cpp-sdk-core
- Added
olp::client::HttpResponse::GetResponseAsBytesconvenience method to get the response body as a vector of unsigned chars. - Added
olp::client::HttpResponse::GetResponseAsStringconvenience method to get the response body content as a string. - Added
olp::client::HttpResponse::GetRawResponseconvenience method to get reference to the response object. - Added
olp::client::OlpClient::GetSettings()method. - Removed deprecated
olp::http::CreateDefaultNetwork(size_t)function. Useolp::http::CreateDefaultNetwork(NetworkInitializationSettings)instead. - Removed deprecated
olp::http::NetworkSettings::GetRetries()method. - Removed deprecated
olp::http::NetworkSettings::WithRetries()method. - Removed deprecated
olp::http::NetworkSettings::GetConnectionTimeout()method. UseNetworkSettings::GetConnectionTimeoutDuration()instead. - Removed deprecated
olp::http::NetworkSettings::WithConnectionTimeout(int)method. UseNetworkSettings::WithConnectionTimeout(std::chrono::milliseconds)instead. - Removed deprecated
olp::http::NetworkSettings::GetTransferTimeout()method. UseNetworkSettings::GetTransferTimeoutDuration()instead. - Removed deprecated
olp::http::NetworkSettings::WithTransferTimeout(int)method. UseNetworkSettings::WithTransferTimeout(std::chrono::milliseconds)instead. - Removed deprecated
olp::utils::Dir::exists(const std::string&)method. UseDir::Exists(...)instead. - Removed deprecated
olp::utils::Dir::remove(const std::string&)method. UseDir::Remove(...)instead. - Removed deprecated
olp::utils::Dir::create(const std::string&)method. UseDir::Create(...)instead. - Changed cURL network implementation requirements. OpenSSL is mandatory now.
- Fixed asynchronous access to the list of cancelled tasks in the iOS background mode.
- Fixed deleting cancelled invalid download tasks in the iOS background mode.
- Fixed crashes in
olp::cache::DiskCache::Size()method that happened when it's called on closed cache. - Fixed
olp::math::AlignedBoxtemplate compilation in certain environments. - Improved error handling on iOS.
NSURLErrorSecureConnectionFailed,NSURLErrorCannotFindHost,NSURLErrorDNSLookupFailedandNSURLErrorResourceUnavailableare retriable now. - Improved the iOS background download mode change. No additional actions performed when requested mode is already active.
- Improved cURL certificates configuration. Now, every field can be set up independently.