Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 0bde4fc

Browse files
committed
Rename project to CodableJSON
1 parent 87bc643 commit 0bde4fc

File tree

11 files changed

+77
-75
lines changed

11 files changed

+77
-75
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
2-
s.name = 'SwiftCodableJSON'
3-
s.version = '0.0.1'
2+
s.name = 'CodableJSON'
3+
s.version = '1.0.0'
44
s.summary = 'JSON in Swift - the way it should be'
55
s.description = <<-DESC
66
Simplify the way that you use JSON objects.
77
DESC
88

9-
s.homepage = 'https://github.com/guykogus/SwiftCodableJSON'
9+
s.homepage = 'https://github.com/guykogus/CodableJSON'
1010
s.license = { type: 'MIT', file: 'LICENSE' }
1111
s.authors = { 'Guy Kogus' => 'guy.kogus@gmail.com' }
1212
s.documentation_url = 'http://www.json.org'
@@ -17,6 +17,6 @@ Pod::Spec.new do |s|
1717
s.watchos.deployment_target = '2.0'
1818

1919
s.swift_version = '4.2'
20-
s.source = { git: 'https://github.com/guykogus/SwiftCodableJSON.git', tag: s.version.to_s }
21-
s.source_files = 'SwiftCodableJSON/*.swift'
20+
s.source = { git: 'https://github.com/guykogus/CodableJSON.git', tag: s.version.to_s }
21+
s.source_files = 'CodableJSON/*.swift'
2222
end

SwiftCodableJSON.xcodeproj/project.pbxproj renamed to CodableJSON.xcodeproj/project.pbxproj

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
F883AF1E21CD98BB0002D830 /* SwiftCodableJSON.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F883AF1421CD98BB0002D830 /* SwiftCodableJSON.framework */; };
11-
F883AF2521CD98BB0002D830 /* SwiftCodableJSON.h in Headers */ = {isa = PBXBuildFile; fileRef = F883AF1721CD98BB0002D830 /* SwiftCodableJSON.h */; settings = {ATTRIBUTES = (Public, ); }; };
10+
F883AF1E21CD98BB0002D830 /* CodableJSON.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F883AF1421CD98BB0002D830 /* CodableJSON.framework */; };
11+
F883AF2521CD98BB0002D830 /* CodableJSON.h in Headers */ = {isa = PBXBuildFile; fileRef = F883AF1721CD98BB0002D830 /* CodableJSON.h */; settings = {ATTRIBUTES = (Public, ); }; };
1212
F883AF2F21CD98DE0002D830 /* JSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = F883AF2E21CD98DD0002D830 /* JSON.swift */; };
1313
F883AF3321CD997C0002D830 /* JSONTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F883AF3221CD997C0002D830 /* JSONTests.swift */; };
1414
/* End PBXBuildFile section */
@@ -19,15 +19,15 @@
1919
containerPortal = F883AF0B21CD98BB0002D830 /* Project object */;
2020
proxyType = 1;
2121
remoteGlobalIDString = F883AF1321CD98BB0002D830;
22-
remoteInfo = SwiftCodableJSON;
22+
remoteInfo = CodableJSON;
2323
};
2424
/* End PBXContainerItemProxy section */
2525

2626
/* Begin PBXFileReference section */
27-
F883AF1421CD98BB0002D830 /* SwiftCodableJSON.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftCodableJSON.framework; sourceTree = BUILT_PRODUCTS_DIR; };
28-
F883AF1721CD98BB0002D830 /* SwiftCodableJSON.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftCodableJSON.h; sourceTree = "<group>"; };
27+
F883AF1421CD98BB0002D830 /* CodableJSON.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CodableJSON.framework; sourceTree = BUILT_PRODUCTS_DIR; };
28+
F883AF1721CD98BB0002D830 /* CodableJSON.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CodableJSON.h; sourceTree = "<group>"; };
2929
F883AF1821CD98BB0002D830 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
30-
F883AF1D21CD98BB0002D830 /* SwiftCodableJSONTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwiftCodableJSONTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
30+
F883AF1D21CD98BB0002D830 /* CodableJSONTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CodableJSONTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3131
F883AF2421CD98BB0002D830 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3232
F883AF2E21CD98DD0002D830 /* JSON.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSON.swift; sourceTree = "<group>"; };
3333
F883AF3221CD997C0002D830 /* JSONTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSONTests.swift; sourceTree = "<group>"; };
@@ -45,7 +45,7 @@
4545
isa = PBXFrameworksBuildPhase;
4646
buildActionMask = 2147483647;
4747
files = (
48-
F883AF1E21CD98BB0002D830 /* SwiftCodableJSON.framework in Frameworks */,
48+
F883AF1E21CD98BB0002D830 /* CodableJSON.framework in Frameworks */,
4949
);
5050
runOnlyForDeploymentPostprocessing = 0;
5151
};
@@ -55,38 +55,38 @@
5555
F883AF0A21CD98BB0002D830 = {
5656
isa = PBXGroup;
5757
children = (
58-
F883AF1621CD98BB0002D830 /* SwiftCodableJSON */,
59-
F883AF2121CD98BB0002D830 /* SwiftCodableJSONTests */,
58+
F883AF1621CD98BB0002D830 /* CodableJSON */,
59+
F883AF2121CD98BB0002D830 /* CodableJSONTests */,
6060
F883AF1521CD98BB0002D830 /* Products */,
6161
);
6262
sourceTree = "<group>";
6363
};
6464
F883AF1521CD98BB0002D830 /* Products */ = {
6565
isa = PBXGroup;
6666
children = (
67-
F883AF1421CD98BB0002D830 /* SwiftCodableJSON.framework */,
68-
F883AF1D21CD98BB0002D830 /* SwiftCodableJSONTests.xctest */,
67+
F883AF1421CD98BB0002D830 /* CodableJSON.framework */,
68+
F883AF1D21CD98BB0002D830 /* CodableJSONTests.xctest */,
6969
);
7070
name = Products;
7171
sourceTree = "<group>";
7272
};
73-
F883AF1621CD98BB0002D830 /* SwiftCodableJSON */ = {
73+
F883AF1621CD98BB0002D830 /* CodableJSON */ = {
7474
isa = PBXGroup;
7575
children = (
7676
F883AF2E21CD98DD0002D830 /* JSON.swift */,
77-
F883AF1721CD98BB0002D830 /* SwiftCodableJSON.h */,
77+
F883AF1721CD98BB0002D830 /* CodableJSON.h */,
7878
F883AF1821CD98BB0002D830 /* Info.plist */,
7979
);
80-
path = SwiftCodableJSON;
80+
path = CodableJSON;
8181
sourceTree = "<group>";
8282
};
83-
F883AF2121CD98BB0002D830 /* SwiftCodableJSONTests */ = {
83+
F883AF2121CD98BB0002D830 /* CodableJSONTests */ = {
8484
isa = PBXGroup;
8585
children = (
8686
F883AF3221CD997C0002D830 /* JSONTests.swift */,
8787
F883AF2421CD98BB0002D830 /* Info.plist */,
8888
);
89-
path = SwiftCodableJSONTests;
89+
path = CodableJSONTests;
9090
sourceTree = "<group>";
9191
};
9292
/* End PBXGroup section */
@@ -96,16 +96,16 @@
9696
isa = PBXHeadersBuildPhase;
9797
buildActionMask = 2147483647;
9898
files = (
99-
F883AF2521CD98BB0002D830 /* SwiftCodableJSON.h in Headers */,
99+
F883AF2521CD98BB0002D830 /* CodableJSON.h in Headers */,
100100
);
101101
runOnlyForDeploymentPostprocessing = 0;
102102
};
103103
/* End PBXHeadersBuildPhase section */
104104

105105
/* Begin PBXNativeTarget section */
106-
F883AF1321CD98BB0002D830 /* SwiftCodableJSON */ = {
106+
F883AF1321CD98BB0002D830 /* CodableJSON */ = {
107107
isa = PBXNativeTarget;
108-
buildConfigurationList = F883AF2821CD98BB0002D830 /* Build configuration list for PBXNativeTarget "SwiftCodableJSON" */;
108+
buildConfigurationList = F883AF2821CD98BB0002D830 /* Build configuration list for PBXNativeTarget "CodableJSON" */;
109109
buildPhases = (
110110
F883AF0F21CD98BB0002D830 /* Headers */,
111111
F883AF1021CD98BB0002D830 /* Sources */,
@@ -116,14 +116,14 @@
116116
);
117117
dependencies = (
118118
);
119-
name = SwiftCodableJSON;
120-
productName = SwiftCodableJSON;
121-
productReference = F883AF1421CD98BB0002D830 /* SwiftCodableJSON.framework */;
119+
name = CodableJSON;
120+
productName = CodableJSON;
121+
productReference = F883AF1421CD98BB0002D830 /* CodableJSON.framework */;
122122
productType = "com.apple.product-type.framework";
123123
};
124-
F883AF1C21CD98BB0002D830 /* SwiftCodableJSONTests */ = {
124+
F883AF1C21CD98BB0002D830 /* CodableJSONTests */ = {
125125
isa = PBXNativeTarget;
126-
buildConfigurationList = F883AF2B21CD98BB0002D830 /* Build configuration list for PBXNativeTarget "SwiftCodableJSONTests" */;
126+
buildConfigurationList = F883AF2B21CD98BB0002D830 /* Build configuration list for PBXNativeTarget "CodableJSONTests" */;
127127
buildPhases = (
128128
F883AF1921CD98BB0002D830 /* Sources */,
129129
F883AF1A21CD98BB0002D830 /* Frameworks */,
@@ -134,9 +134,9 @@
134134
dependencies = (
135135
F883AF2021CD98BB0002D830 /* PBXTargetDependency */,
136136
);
137-
name = SwiftCodableJSONTests;
138-
productName = SwiftCodableJSONTests;
139-
productReference = F883AF1D21CD98BB0002D830 /* SwiftCodableJSONTests.xctest */;
137+
name = CodableJSONTests;
138+
productName = CodableJSONTests;
139+
productReference = F883AF1D21CD98BB0002D830 /* CodableJSONTests.xctest */;
140140
productType = "com.apple.product-type.bundle.unit-test";
141141
};
142142
/* End PBXNativeTarget section */
@@ -158,7 +158,7 @@
158158
};
159159
};
160160
};
161-
buildConfigurationList = F883AF0E21CD98BB0002D830 /* Build configuration list for PBXProject "SwiftCodableJSON" */;
161+
buildConfigurationList = F883AF0E21CD98BB0002D830 /* Build configuration list for PBXProject "CodableJSON" */;
162162
compatibilityVersion = "Xcode 9.3";
163163
developmentRegion = en;
164164
hasScannedForEncodings = 0;
@@ -170,8 +170,8 @@
170170
projectDirPath = "";
171171
projectRoot = "";
172172
targets = (
173-
F883AF1321CD98BB0002D830 /* SwiftCodableJSON */,
174-
F883AF1C21CD98BB0002D830 /* SwiftCodableJSONTests */,
173+
F883AF1321CD98BB0002D830 /* CodableJSON */,
174+
F883AF1C21CD98BB0002D830 /* CodableJSONTests */,
175175
);
176176
};
177177
/* End PBXProject section */
@@ -215,7 +215,7 @@
215215
/* Begin PBXTargetDependency section */
216216
F883AF2021CD98BB0002D830 /* PBXTargetDependency */ = {
217217
isa = PBXTargetDependency;
218-
target = F883AF1321CD98BB0002D830 /* SwiftCodableJSON */;
218+
target = F883AF1321CD98BB0002D830 /* CodableJSON */;
219219
targetProxy = F883AF1F21CD98BB0002D830 /* PBXContainerItemProxy */;
220220
};
221221
/* End PBXTargetDependency section */
@@ -354,14 +354,14 @@
354354
DYLIB_CURRENT_VERSION = 1;
355355
DYLIB_INSTALL_NAME_BASE = "@rpath";
356356
FRAMEWORK_VERSION = A;
357-
INFOPLIST_FILE = SwiftCodableJSON/Info.plist;
357+
INFOPLIST_FILE = CodableJSON/Info.plist;
358358
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
359359
LD_RUNPATH_SEARCH_PATHS = (
360360
"$(inherited)",
361361
"@executable_path/../Frameworks",
362362
"@loader_path/Frameworks",
363363
);
364-
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.SwiftCodableJSON;
364+
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.CodableJSON;
365365
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
366366
SKIP_INSTALL = YES;
367367
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -381,14 +381,14 @@
381381
DYLIB_CURRENT_VERSION = 1;
382382
DYLIB_INSTALL_NAME_BASE = "@rpath";
383383
FRAMEWORK_VERSION = A;
384-
INFOPLIST_FILE = SwiftCodableJSON/Info.plist;
384+
INFOPLIST_FILE = CodableJSON/Info.plist;
385385
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
386386
LD_RUNPATH_SEARCH_PATHS = (
387387
"$(inherited)",
388388
"@executable_path/../Frameworks",
389389
"@loader_path/Frameworks",
390390
);
391-
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.SwiftCodableJSON;
391+
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.CodableJSON;
392392
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
393393
SKIP_INSTALL = YES;
394394
SWIFT_VERSION = 4.2;
@@ -401,13 +401,14 @@
401401
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
402402
CODE_SIGN_STYLE = Automatic;
403403
COMBINE_HIDPI_IMAGES = YES;
404-
INFOPLIST_FILE = SwiftCodableJSONTests/Info.plist;
404+
INFOPLIST_FILE = CodableJSONTests/Info.plist;
405405
LD_RUNPATH_SEARCH_PATHS = (
406406
"$(inherited)",
407407
"@executable_path/../Frameworks",
408408
"@loader_path/../Frameworks",
409409
);
410-
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.SwiftCodableJSONTests;
410+
MACOSX_DEPLOYMENT_TARGET = 10.13;
411+
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.CodableJSONTests;
411412
PRODUCT_NAME = "$(TARGET_NAME)";
412413
SWIFT_VERSION = 4.2;
413414
};
@@ -419,13 +420,14 @@
419420
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
420421
CODE_SIGN_STYLE = Automatic;
421422
COMBINE_HIDPI_IMAGES = YES;
422-
INFOPLIST_FILE = SwiftCodableJSONTests/Info.plist;
423+
INFOPLIST_FILE = CodableJSONTests/Info.plist;
423424
LD_RUNPATH_SEARCH_PATHS = (
424425
"$(inherited)",
425426
"@executable_path/../Frameworks",
426427
"@loader_path/../Frameworks",
427428
);
428-
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.SwiftCodableJSONTests;
429+
MACOSX_DEPLOYMENT_TARGET = 10.13;
430+
PRODUCT_BUNDLE_IDENTIFIER = com.kogus.CodableJSONTests;
429431
PRODUCT_NAME = "$(TARGET_NAME)";
430432
SWIFT_VERSION = 4.2;
431433
};
@@ -434,7 +436,7 @@
434436
/* End XCBuildConfiguration section */
435437

436438
/* Begin XCConfigurationList section */
437-
F883AF0E21CD98BB0002D830 /* Build configuration list for PBXProject "SwiftCodableJSON" */ = {
439+
F883AF0E21CD98BB0002D830 /* Build configuration list for PBXProject "CodableJSON" */ = {
438440
isa = XCConfigurationList;
439441
buildConfigurations = (
440442
F883AF2621CD98BB0002D830 /* Debug */,
@@ -443,7 +445,7 @@
443445
defaultConfigurationIsVisible = 0;
444446
defaultConfigurationName = Release;
445447
};
446-
F883AF2821CD98BB0002D830 /* Build configuration list for PBXNativeTarget "SwiftCodableJSON" */ = {
448+
F883AF2821CD98BB0002D830 /* Build configuration list for PBXNativeTarget "CodableJSON" */ = {
447449
isa = XCConfigurationList;
448450
buildConfigurations = (
449451
F883AF2921CD98BB0002D830 /* Debug */,
@@ -452,7 +454,7 @@
452454
defaultConfigurationIsVisible = 0;
453455
defaultConfigurationName = Release;
454456
};
455-
F883AF2B21CD98BB0002D830 /* Build configuration list for PBXNativeTarget "SwiftCodableJSONTests" */ = {
457+
F883AF2B21CD98BB0002D830 /* Build configuration list for PBXNativeTarget "CodableJSONTests" */ = {
456458
isa = XCConfigurationList;
457459
buildConfigurations = (
458460
F883AF2C21CD98BB0002D830 /* Debug */,

SwiftCodableJSON.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to CodableJSON.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SwiftCodableJSON.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist renamed to CodableJSON.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

File renamed without changes.

CodableJSON/CodableJSON.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// CodableJSON.h
3+
// CodableJSON
4+
//
5+
// Created by Guy Kogus on 22/12/2018.
6+
// Copyright © 2018 Guy Kogus. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
//! Project version number for CodableJSON.
12+
FOUNDATION_EXPORT double CodableJSONVersionNumber;
13+
14+
//! Project version string for CodableJSON.
15+
FOUNDATION_EXPORT const unsigned char CodableJSONVersionString[];
16+
17+
// In this header, you should import all the public headers of your framework using statements like #import <CodableJSON/PublicHeader.h>
18+
19+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//
22
// JSONTests.swift
3-
// SwiftCodableJSONTests
3+
// CodableJSONTests
44
//
55
// Created by Guy Kogus on 22/12/2018.
66
// Copyright © 2018 Guy Kogus. All rights reserved.
77
//
88

99
import XCTest
10-
@testable import SwiftCodableJSON
10+
@testable import CodableJSON
1111

1212
class JSONTests: XCTestCase {
1313
struct Dummy {

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SwiftCodableJSON
1+
# CodableJSON
22

33
JSON in Swift - the way it should be.
44

@@ -49,9 +49,9 @@ if var apple = companies["Apple"] as? [String: Any],
4949
}
5050
```
5151

52-
### Using `SwiftCodableJSON`
52+
### Using `CodableJSON`
5353

54-
Since JSON has a fixed set of types there's no need to perform all these casts in long form. `SwiftCodableJSON` uses an `enum` to store each type. With the aid of some helper functions, accessing the JSON values is now significantly shorter and easier.
54+
Since JSON has a fixed set of types there's no need to perform all these casts in long form. `CodableJSON` uses an `enum` to store each type. With the aid of some helper functions, accessing the JSON values is now significantly shorter and easier.
5555

5656
```Swift
5757
let companies = try JSONDecoder().decode(JSON.self, from: companiesData)
@@ -71,12 +71,12 @@ companies["Apple"]?["address"]?["state"] = "California"
7171

7272
# Installation
7373

74-
SwiftCodableJSON is available through [Cocoapods](https://cocoapods.org). To install, add to your Podfile:
74+
CodableJSON is available through [Cocoapods](https://cocoapods.org). To install, add to your Podfile:
7575

7676
```
77-
pod 'SwiftCodableJSON'
77+
pod 'CodableJSON'
7878
```
7979

8080
# License
8181

82-
SwiftCodableJSON is available under the MIT license. See the LICENSE file for more info.
82+
CodableJSON is available under the MIT license. See the LICENSE file for more info.

0 commit comments

Comments
 (0)