Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: move swift from NSURLSession to URLSession #226

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

Merged
merged 14 commits into from
Apr 10, 2024
10 changes: 5 additions & 5 deletions src/helpers/__snapshots__/utils.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,14 @@ exports[`availableTargets > returns all available targets 1`] = `
{
"clients": [
{
"description": "Foundation's NSURLSession request",
"description": "Foundation's URLSession request",
"extname": ".swift",
"key": "nsurlsession",
"link": "https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",
"title": "NSURLSession",
"key": "urlsession",
"link": "https://developer.apple.com/documentation/foundation/urlsession",
"title": "URLSession",
},
],
"default": "nsurlsession",
"default": "urlsession",
"key": "swift",
"title": "Swift",
},
Expand Down
2 changes: 1 addition & 1 deletion src/targets/swift/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const literalRepresentation = <T, U>(value: T, opts: U, indentLevel?: num

default:
if (value === null || value === undefined) {
return '';
return 'nil';
}
return `"${(value as any).toString().replace(/"/g, '\\"')}"`;
}
Expand Down

This file was deleted.

32 changes: 0 additions & 32 deletions src/targets/swift/nsurlsession/fixtures/application-json.swift

This file was deleted.

21 changes: 0 additions & 21 deletions src/targets/swift/nsurlsession/fixtures/cookies.swift

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/swift/nsurlsession/fixtures/custom-method.swift

This file was deleted.

28 changes: 0 additions & 28 deletions src/targets/swift/nsurlsession/fixtures/full.swift

This file was deleted.

26 changes: 0 additions & 26 deletions src/targets/swift/nsurlsession/fixtures/headers.swift

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/swift/nsurlsession/fixtures/http-insecure.swift

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/swift/nsurlsession/fixtures/indent-option.swift

This file was deleted.

25 changes: 0 additions & 25 deletions src/targets/swift/nsurlsession/fixtures/json-null-value.swift

This file was deleted.

25 changes: 0 additions & 25 deletions src/targets/swift/nsurlsession/fixtures/jsonObj-multiline.swift

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/swift/nsurlsession/fixtures/nested.swift

This file was deleted.

This file was deleted.

Loading