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

[TIMOB-19154]: iOS9 Deprecate NSURLConnection and replace with NSURLSession API #9366

Merged
merged 17 commits into from Feb 23, 2018

Conversation

vijaysingh-axway
Copy link
Contributor

@build
Copy link
Contributor

build commented Oct 31, 2017

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@sgtcoolguy
Copy link
Contributor

@hansemannn This now has a conflict due to the PR #9619 - not sure if that means some of this fix has already been "snuck in"? This ticket was marked 7.0.0...

@sgtcoolguy
Copy link
Contributor

The APS PR: tidev/APSHTTPClient#40

@sgtcoolguy
Copy link
Contributor

appcelerator.https module PR: tidev/appcelerator.https#46

@hansemannn
Copy link
Collaborator

@sgtcoolguy We decided to move it out of 7.0.0 due to other fixes being prioritized. The merge-conflict comes from #9612, so I just need to rebase using that revision.

@hansemannn hansemannn modified the milestones: 7.0.0, 7.1.0 Nov 23, 2017
@sgtcoolguy
Copy link
Contributor

@hansemannn ping again 😄

@hansemannn
Copy link
Collaborator

@sgtcoolguy I talked to Vijay last week. It needs passing unit-tests before going further in the review.

@@ -20,6 +20,7 @@ typedef NS_ENUM(NSInteger, APSRequestError) {
@protocol APSConnectionDelegate <NSURLConnectionDelegate, NSURLSessionDelegate, NSURLSessionDataDelegate>
@optional
-(BOOL)willHandleChallenge:(NSURLAuthenticationChallenge *)challenge forConnection:(NSURLConnection *)connection;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should not be required anymore. Also delegates like NSURLConnectionDelegate should be replaced. Please make sure to test all Ti.Network.HTTPClient API's in your unit-tests and ensure the old ones work without adjustments.

# Conflicts:
#	iphone/Classes/APSHTTPClient/libAPSHTTPClient.a
@vijaysingh-axway
Copy link
Contributor Author

vijaysingh-axway commented Dec 27, 2017

Test-Cases: https://gist.github.com/hansemannn/5021f0aaf2bcbe5ed054449912f3b92b

(EDIT by Hans: Moved the test-case to a gist to save some scroll-time here :-)

Copy link
Collaborator

@hansemannn hansemannn left a comment

Choose a reason for hiding this comment

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

CR + FT approved! See the 30 test-cases in JIRA.

@build build added the ios label Feb 17, 2018
@ewieberappc
Copy link
Contributor

FR Passed. Tested using all of the sample and referenced tickets in the issue ticket as well as the module examples and http test suite

@ewieberappc ewieberappc merged commit c7f61be into tidev:master Feb 23, 2018
@sgtcoolguy sgtcoolguy modified the milestones: 7.2.0, 7.3.0 May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants