Skip to content

Commit 245268b

Browse files
committed
refactor: rename objc/native to objc/nsurlsession
- Avoid confusion with why FOundation is included - Avoid confusion with what the README states - More coherent with swift/nsurlsession
1 parent 5e0349f commit 245268b

16 files changed

Lines changed: 4 additions & 4 deletions

src/targets/objc/info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
key: 'objc',
55
title: 'Objective-C',
66
extname: '.m',
7-
default: 'native'
7+
default: 'nsurlsession'
88
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = function (source, options) {
130130
}
131131

132132
module.exports.info = {
133-
key: 'native',
133+
key: 'nsurlsession',
134134
title: 'NSURLSession',
135135
link: 'https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html',
136136
description: 'Foundation\'s NSURLSession request'

test/fixtures/available-targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@
135135
"key": "objc",
136136
"title": "Objective-C",
137137
"extname": ".m",
138-
"default": "native",
138+
"default": "nsurlsession",
139139
"clients": [
140140
{
141-
"key": "native",
141+
"key": "nsurlsession",
142142
"title": "NSURLSession",
143143
"link": "https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",
144144
"description": "Foundation's NSURLSession request"

test/fixtures/output/objc/native/application-form-encoded.m renamed to test/fixtures/output/objc/nsurlsession/application-form-encoded.m

File renamed without changes.

test/fixtures/output/objc/native/application-json.m renamed to test/fixtures/output/objc/nsurlsession/application-json.m

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)