Граф коммитов

674 Коммитов

Автор SHA1 Сообщение Дата
Sahil Ashar 6db544995d
partial revert of #608, adding support for MinVersion 8.1 (#633) 2021-11-09 16:18:53 -06:00
John L 0021f5e8f6
Win32 to use WinHttp WebSockets if available (#627)
Improve implementation of platform default Http/WebSocket handler selection to allow for runtime selection of WinHttp WebSockets on Win32 if they are available (win 8+).  Changed all platform default providers to this same pattern for consistency.
2021-11-09 13:07:33 -08:00
Sahil Ashar 293574f963
update NDK version (#631) 2021-11-08 19:57:39 -06:00
Jason Sandlin d22c78aef1
Switching Win32 projects to use Win8.1 SDK (#608)
* Switching Win32 projects to use Win8.1 SDK

* PR

* Kicking PR build
2021-11-08 12:43:58 -08:00
Jason Sandlin b0bc8cd369
Updating to build images and build process (#630)
* Updating to build images and build process

* Updates
2021-11-08 12:00:48 -08:00
MSFT-Heba 8fa8c484eb
Fixing Win32 and iOS Builds (#628)
* Fixing typo affecting Win32 builds

* Fixing preprocessor flags

* Adding Result.h to xcode + fixing explicitly operators being implicitly deleted error

Co-authored-by: heba <xlivexdevx@Hebas-Mini.local>
2021-11-06 14:07:57 -07:00
John L c8ad087c0f
Reworking WinHttp stack to support handling PLM events (#625)
* Reworking WinHttp stack to support handling PLM events

* remove invalid assert

* Add some tracing, fix a bug after doing console suspend/resume testing
2021-10-25 21:55:45 -07:00
Sasha Weiss 2ce04eaac8
Expose tracing init/cleanup separately from overall libHttpClient init (#626)
* Expose tracing init/cleanup separately from overall libHttpClient init

* Add remarks about calling multiple times
2021-10-15 17:28:06 -07:00
Sasha Weiss 30b62191cf
When hitting an Android network failure, pass through and log the stack trace (#623)
* Pass network error stack traces through and log them on Android

* Some clang-tidy bits

* Don't use ArrayCritical on read function either

* Copy back on writes

* Some preemptive nits
2021-10-15 14:21:58 -07:00
Sasha Weiss 9da346fa4e
Fix unreferenced parameter build break in release (#624) 2021-10-15 14:15:29 -07:00
Sasha Weiss 5774e6b316
Set trace level to verbose/important based on configuration (#622)
* Set trace level to verbose/important based on configuration

* Build fix

* Set trace level separately in the props

Co-authored-by: sashaweiss <asashaweiss@gmail.com>
2021-10-14 15:02:21 -07:00
Luca Beltrami cb781dca7a
Switch to GetByteArrayElements from GetPrimitiveArrayCritical to avoid deadlock issues in JNI (#621)
* Switch to GetByteArrayElements from GetPrimitiveArrayCritical to avoid deadlock issues in JNI

* Build fixes
2021-10-13 16:20:19 -07:00
Chuy Galván 5803a302ca
Fix WinHttp SSL validation and other small fixes (#620)
* Bug fixes

* Change how we check the platform for SSL validation
2021-10-05 11:10:07 -07:00
MSFT-Heba 70c3ac97d2
Readding i386 for simulator support (#619)
* Readding i386 for simulator support
2021-10-02 10:27:23 -07:00
John L a053c7e65c
Import correct version of XCurl based on targeted GDK (#618) 2021-09-29 14:27:24 -07:00
John L 871a68d692
Fix to Curl provider for custom HTTP requests (#617) 2021-09-27 17:56:36 -07:00
John L d3ce3b43d2
Fix WinHttp WebSocket stack for GDK (#616)
* HC_PERFORM_ENV is the context for both the HTTP and WebSocket providers.  On GDK, we want to user the Curl HTTP provider but the WinHttp WebSocket provider, so I've separated out WinHttpState from the WinHttp provider's HC_PERFORM_ENV so that it can be included in XCurl provider as well.
* Also added missing XCurl lib path to libHttpClient.props that was causing link issues
* Properly use client WriteResponseBody/ReadRequestBody callbacks in Curl HTTP provider
2021-09-23 13:40:26 -07:00
Sasha Weiss 1af4d35f99
Update min iOS version to 11.0 (#615)
* Update the iOS min version to 11.0

* Enable base i18n to silence warning

* Drop armv7 from the OpenSSL script
2021-09-22 09:45:00 -07:00
Sasha Weiss f89c9a8b0d
Support the streaming callbacks in the mocks (#614) 2021-09-20 16:57:15 -07:00
Sasha Weiss 19afd51719
Add missing method to Framework exports (#613)
Co-authored-by: sashaweiss <asashaweiss@gmail.com>
2021-09-20 12:48:24 -07:00
John L c9fdea9bd0
Fix GDK release build (#610) 2021-09-17 12:04:44 -07:00
John L b3f8a985cc
Add missing header (#609)
* Add missing header

* Alphabetize includes
2021-09-13 10:47:48 -07:00
John L fd3593cf7f
Swapping HTTP provider for GDK from WinHttp to XCurl (#605)
* Swapping HTTP provider for GDK from WinHttp to XCurl

* Add locking around XCurlMulti::m_easyRequests, cleanup logging

* Minor fixes

* Cleanup headers slist

* Addressing feedback

* Addressing more feedback

* Small fixes

* Fix comment, add a couple curl error codes
2021-08-26 13:24:33 -07:00
Sasha Weiss 2aec337f24
Update OpenSSL and support M1 Macs (#602)
* Update openssl commit to 1.1.1k

* Format openssl and add log function

* Quick script fix

* More cleaning the script

* More rewriting and cleaning up of script

* Unblock arm64 from xcodeprojs and heavily modify script

* Remove short circuit

* Don't suffix with platform name, already broken out in DerivedData

* Re-add armv7 support

* Fix header path and replace deprecated Sec method

* Wrap SecTrust method in an availablity check

* Build fixes

* Fix Win32 and Android builds

* Empty commit to bump CI

Co-authored-by: sashaweiss <asashaweiss@gmail.com>
Co-authored-by: Jason Sandlin <jasonsa@microsoft.com>
2021-08-23 15:31:08 -07:00
Sasha Weiss b184826b45
Short-circuit request body read if no more data (#601)
* Skip calling RequestBodyRead if no more data is expected

* Return -1 in Android cpp to signal Android Java

* Add comments

* Empty commit to bump CI

* Empty commit to bump CI again

Co-authored-by: sashaweiss <asashaweiss@gmail.com>
2021-08-16 13:13:49 -07:00
Sasha Weiss 7af5486f4f
Fix broken Android build (#600) 2021-07-30 16:10:47 -07:00
Sasha Weiss 3af828ca42
Move the Android build to a Windows agent (#598)
* Move the Android build to a Windows agent

* Empty commit to bump CI

* Trigger for PRs to main
2021-07-30 15:20:08 -07:00
Jason Sandlin be92eacf55
Switching to ADO YAML build defs (#597)
* Switching to ADO YAML build defs

* PR

* PR

* PR
2021-07-29 15:56:31 -07:00
Jason Sandlin 1b4257351e
Fixing HCCleanup() API (#596) 2021-07-26 15:35:06 -07:00
Jason Sandlin 7e7ce137bc
Updating readme (#595) 2021-07-23 17:56:29 -07:00
Jason Sandlin 4b5d3f7c2b
Add x64 build configurations to 2017 .sln (#594)
* Add Debug|x64 to vs17 projects missing it

* Also add Release|x64

* Fixing errors

* Fixing errors

* Fixing warning

Co-authored-by: sashaweiss-msft <saweiss@microsoft.com>
2021-07-14 20:28:31 -07:00
Luca Beltrami fda07c155f
Fix exports (#593) 2021-07-14 17:44:46 -07:00
Sasha Weiss 30db9825eb
Remove Visual Studio Android builds (#591)
* README updates

* Start stripping Android from CMakeLists.txts and stuff

* More stripping

* Do the deleting >:D

* More deletion

* Strip more

* Remove Android projects from VS

* Update README

* Reset unintended vcxproj guid changing

* Add Debug|x64 to vs17 projects missing it

* Also add Release|x64

* Revert "Add Debug|x64 to vs17 projects missing it"

This reverts commit 19d9d22300.

* Revert "Also add Release|x64"

This reverts commit d64fe15764.
2021-07-14 14:15:16 -07:00
Jason Sandlin b3906e913a
Adding assert for GDK console to note that SSL validation is enforced on RETAIL sandboxes (#589)
* Adding assert for GDK console to note that SSL validation is enforced on RETAIL sandboxes

* Updating comment
2021-07-13 14:49:58 -07:00
Sasha Weiss 4443721ea5
Update to Gradle 6.6 (#590) 2021-07-08 17:38:14 -07:00
tculotta c23196f037
Task 33321557: Streamline XSAPI thunk dll generation and ship it in the GDK (#588)
* Task 33321557: Streamline XSAPI thunk dll generation and ship it in the GDK

* Task 33321557: Streamline XSAPI thunk dll generation and ship it in the GDK
2021-06-21 09:58:03 -07:00
Ramsey b598dd886f
Update header docs to match official docs (#587) 2021-06-16 13:23:56 -07:00
Nathan Iskandar d34b3b125f
Release locks before calling into HC_WEBSOCKET client funcions (#586) 2021-06-03 17:18:02 -07:00
Nathan Iskandar 117ea9d990
include httpClient.h in httpProvider.h for HCHttpCallRequestBodyReadFunction and HCHttpCallRequestBodyWriteFunction (#584) 2021-05-27 10:31:14 -07:00
MSFT-Heba 9941d00183
Removing jcenter from LibHttpClient (#583)
Removing jcenter from LibHttpClient as it's being deprecated
2021-05-26 17:05:11 -07:00
John L f82df0e569
Change BasicAsciiLowercase implementation to avoid allocation (#582)
* Change BasicAsciiLowercase implementation to avoid allocation
2021-05-20 18:14:06 -07:00
Nathan Iskandar 84c913f748
Avoid holding locks in winhttp_http_task completion callback handling when calling into websocket event functions (#580)
* Move winhttp_http_task completion_callback lock handling into the individual callback type handlers to avoid holding onto lock when calling into externally provided event handlers

* Move duplicate XAsyncComplete checking to compete_task

* tabs -> spaces

* don't hold lock for complete_task since it can call back into client code synchronously
2021-05-14 16:06:53 -07:00
Sasha Weiss a15f7ffe38
Use a size_t to fix 32-bit build (#581) 2021-05-13 16:23:36 -07:00
Sasha Weiss 81f6ddd2fd
Fix Android build dir path (#579)
* Use relative file path API

* Empty commit to bump CI
2021-05-13 12:20:11 -07:00
David Westen 21f12b36de
Read and write callbacks to support large file transfers (#577)
* Add prototypes and declarations

* Default read/write functions and WinHttp implementation

* XMLHttp

* Apple

* Android

* Correctly handle empty POST and PUT requests with OkHttp

* PR feedback

* PR feedback

* Build fix

* PR feedback

* Exit critical section before calling ThrowIOException

* Remove "bytesRead" from write callback

* Check for singleton init read and write callback setters

* Restore default read callback when setting body bytes

* Comments for set body bytes and set body string

* Bounds check in DefaultRequestBodyReadFunction

* UWP cleanup

* Update comments

* Context pointers

* Build fix

Co-authored-by: Jason Sandlin <jasonsa@microsoft.com>
2021-05-06 16:54:43 -07:00
boczar 03f47abde5
Added check to remove duplicate import of platform_select.props. (#578)
Co-authored-by: Alexander Boczar <alexboc@microsoft.com>
2021-04-30 18:11:26 -07:00
Sasha Weiss a2f5d91e5a
Place Android Gradle/CMake build files under `/Binaries` (#576)
* Use the /Binaries dir for Android intermediates

* Put the .cxx staging dir as a sibling to the build dir

* Remove unused file
2021-04-19 15:09:17 -07:00
Sahil Ashar 048ad4e322
Adding cgmanifest.json to libHttpClient (#575)
* added cgmanifest.json for Component Governance in ADO Pipelines

* updated cgmanifest, moved to root
2021-04-12 13:50:25 -05:00
John L 0b86f1e2b0
Add missing win32 dependency lib to props file (#572) 2021-03-13 14:39:20 -08:00
Sahil Ashar 909e1e40b1
Update targetSDKVersion, Gradle version, and Android Gradle Plug-in version (#571)
This PR targets libHttpClient builds for Android Studio.
- Updating targetSDKVersion and compileSDKVersion to 30. [Android has asked that developers target API Level 30 by Nov 2021.](https://developer.android.com/distribute/best-practices/develop/target-sdk)
- Updating to Gradle 6.5
- Updating to Android Gradle Plug-in 4.1.2
2021-03-10 16:02:11 -06:00