Skip to content

Commit 242f230

Browse files
feat(https): iOS migration to Alamofire
* Initial plan * Add Alamofire Swift wrappers and update TypeScript to use them Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fc9101f9-5596-43a3-ab69-ff9c48eeef06 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Fix parameter encoding in Swift wrapper and add error key constants Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fc9101f9-5596-43a3-ab69-ff9c48eeef06 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Fix request chaining in multipart POST and add migration documentation Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fc9101f9-5596-43a3-ab69-ff9c48eeef06 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Address code review feedback: fix task casting, security validation, and deprecated APIs Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fc9101f9-5596-43a3-ab69-ff9c48eeef06 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add migration summary documentation Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fc9101f9-5596-43a3-ab69-ff9c48eeef06 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Implement cleaner API names and streaming downloads for iOS Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/99200ca0-c02e-437d-bbdc-d3c5f6f221c3 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add comprehensive documentation for API improvements and streaming downloads Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/99200ca0-c02e-437d-bbdc-d3c5f6f221c3 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Fix code review issues: safe unwrapping and documentation numbering Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/99200ca0-c02e-437d-bbdc-d3c5f6f221c3 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add comprehensive API improvements summary documentation Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/99200ca0-c02e-437d-bbdc-d3c5f6f221c3 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Revert iOS to Android-like response behavior - remove downloadFilePath streaming Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/8051dbe0-1e71-4045-88d9-5e25d50ae83e Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add usage examples demonstrating iOS/Android parity behavior Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/8051dbe0-1e71-4045-88d9-5e25d50ae83e Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Implement streaming downloads for iOS GET requests Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/07e4da87-be33-46f4-872f-e397b5e6c049 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Update documentation for streaming download behavior Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/07e4da87-be33-46f4-872f-e397b5e6c049 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add comprehensive iOS streaming implementation documentation Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/07e4da87-be33-46f4-872f-e397b5e6c049 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add flow diagrams for iOS streaming implementation Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/07e4da87-be33-46f4-872f-e397b5e6c049 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add early resolution and conditional streaming support Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/7bc451f5-53da-42f8-b904-b8680baa893e Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add early resolution documentation and fix scope issue Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/7bc451f5-53da-42f8-b904-b8680baa893e Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add Q&A documentation explaining request behavior Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/7bc451f5-53da-42f8-b904-b8680baa893e Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Implement Phase 3: Conditional streaming by size threshold Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/b24160f5-a282-496c-8e1a-72b4239d4084 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add conditional streaming documentation and update memory Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/b24160f5-a282-496c-8e1a-72b4239d4084 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add implementation summary documenting all completed phases Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/b24160f5-a282-496c-8e1a-72b4239d4084 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add comprehensive Vue demo components for testing features Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/03f5d740-4e22-4369-8afc-fdfe1f2d2e57 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add FileOperations and SSLPinning demo components Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/03f5d740-4e22-4369-8afc-fdfe1f2d2e57 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Complete comprehensive Vue demo suite with all features Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/03f5d740-4e22-4369-8afc-fdfe1f2d2e57 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add comprehensive README for Vue demo suite Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/03f5d740-4e22-4369-8afc-fdfe1f2d2e57 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * chore: working on alamofire * Fix all Alamofire 5.11.2 build errors and add threading support Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fa11e6d9-72f7-4e57-8e1a-13c2f49064cd Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Fix server trust validation for Alamofire 5.11+ Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fa11e6d9-72f7-4e57-8e1a-13c2f49064cd Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Update TypeScript definitions for new Swift API signatures Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/fa11e6d9-72f7-4e57-8e1a-13c2f49064cd Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * chore: sub * chore: fixes * Fix session deinitialization, nil task, and Swift 6 sendable issues Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/4b252308-9e3b-4ecf-ba98-32f702b528f0 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * chore: buid fix * fix: default size threshold * Update AlamofireWrapper to use request IDs and NSHTTPURLResponse Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/b7e39983-090a-48a9-b8d2-1f08682e72e0 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Update request.ios.ts to use request IDs and NSHTTPURLResponse Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/b7e39983-090a-48a9-b8d2-1f08682e72e0 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add interceptor imports and application support for iOS Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/b7e39983-090a-48a9-b8d2-1f08682e72e0 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Update AlamofireWrapper upload/download methods to use request IDs and NSHTTPURLResponse Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/cb3011ae-c8b8-4453-9b0e-af75b9bb74ce Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Update TypeScript typings and remove responseSerializer.deserialize calls Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/cb3011ae-c8b8-4453-9b0e-af75b9bb74ce Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Remove useLegacy parameter and update upload methods in request.ios.ts Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/cb3011ae-c8b8-4453-9b0e-af75b9bb74ce Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Update downloadToTemp calls to use new signatures Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/cb3011ae-c8b8-4453-9b0e-af75b9bb74ce Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * chore: tsc * chore: cleanup * Fix session deinitialization and add @objc interceptor wrappers Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/d2d9c53a-efe5-4696-a2aa-b293851b2169 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Add documentation for interceptor and event monitor wrappers Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/d2d9c53a-efe5-4696-a2aa-b293851b2169 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * Fix parallel request cancellation - don't cancel on session recreation Agent-Logs-Url: https://github.com/nativescript-community/https/sessions/2b5c5424-6294-4897-9330-fba1baeec171 Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> * chore: alamofire working * chore(ios): swift 6 support * chore: cleanup --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com> Co-authored-by: Martin Guillon <dev@akylas.fr>
1 parent 8c9bd39 commit 242f230

35 files changed

Lines changed: 11220 additions & 334 deletions
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
3+
<?xml version="1.0" encoding="UTF-8"?>
4+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
5+
<plist version="1.0">
6+
<dict>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>en</string>
9+
<key>CFBundleDisplayName</key>
10+
<string>${PRODUCT_NAME}</string>
11+
<key>CFBundleExecutable</key>
12+
<string>${EXECUTABLE_NAME}</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>${PRODUCT_NAME}</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>CFBundleSignature</key>
24+
<string>????</string>
25+
<key>CFBundleVersion</key>
26+
<string>1.0</string>
27+
<key>LSRequiresIPhoneOS</key>
28+
<true/>
29+
<key>UILaunchStoryboardName</key>
30+
<string>LaunchScreen</string>
31+
<key>UIRequiresFullScreen</key>
32+
<true/>
33+
<key>UIRequiredDeviceCapabilities</key>
34+
<array>
35+
<string>armv7</string>
36+
</array>
37+
<key>UISupportedInterfaceOrientations</key>
38+
<array>
39+
<string>UIInterfaceOrientationPortrait</string>
40+
<string>UIInterfaceOrientationLandscapeLeft</string>
41+
<string>UIInterfaceOrientationLandscapeRight</string>
42+
</array>
43+
<key>UISupportedInterfaceOrientations~ipad</key>
44+
<array>
45+
<string>UIInterfaceOrientationPortrait</string>
46+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
47+
<string>UIInterfaceOrientationLandscapeLeft</string>
48+
<string>UIInterfaceOrientationLandscapeRight</string>
49+
</array>
50+
<key>NSAppTransportSecurity</key>
51+
<dict>
52+
<key>NSExceptionDomains</key>
53+
<dict>
54+
<key>domain.com</key>
55+
<dict>
56+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
57+
<true/>
58+
<key>NSIncludesSubdomains</key>
59+
<true/>
60+
</dict>
61+
</dict>
62+
</dict>
63+
</dict>
64+
</plist>

demo-snippets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "0.0.1",
55
"dependencies": {
6-
"@nativescript-community/https": "4.0.11"
6+
"@nativescript-community/https": "*"
77
},
88
"nativescript": {
99
"platforms": {

0 commit comments

Comments
 (0)