File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class JSONDecoder {
41
41
return value as? Array < JSONDecoder >
42
42
}
43
43
//pull the raw values out of an array
44
- public func array < T> ( inout collect: Array < T > ? ) {
44
+ public func getArray < T> ( inout collect: Array < T > ? ) {
45
45
if let array = value as? Array < JSONDecoder > {
46
46
if collect == nil {
47
47
collect = Array < T > ( )
@@ -54,7 +54,7 @@ public class JSONDecoder {
54
54
}
55
55
}
56
56
//pull the raw values out of a dictonary.
57
- public func dictonary < T> ( inout collect: Dictionary < String , T > ? ) {
57
+ public func getDictonary < T> ( inout collect: Dictionary < String , T > ? ) {
58
58
if let dictonary = value as? Dictionary < String , JSONDecoder > {
59
59
if collect == nil {
60
60
collect = Dictionary < String , T > ( )
Original file line number Diff line number Diff line change 424
424
DYLIB_INSTALL_NAME_BASE = "@rpath";
425
425
INFOPLIST_FILE = Info.plist;
426
426
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
427
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
427
428
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
428
429
PRODUCT_NAME = "$(TARGET_NAME)";
429
430
SKIP_INSTALL = YES;
441
442
DYLIB_INSTALL_NAME_BASE = "@rpath";
442
443
INFOPLIST_FILE = Info.plist;
443
444
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
445
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
444
446
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
445
447
PRODUCT_NAME = "$(TARGET_NAME)";
446
448
SKIP_INSTALL = YES;
594
596
D958024219E6ED8E003C8218 /* Release */,
595
597
);
596
598
defaultConfigurationIsVisible = 0;
599
+ defaultConfigurationName = Release;
597
600
};
598
601
D958024619E6ED8E003C8218 /* Build configuration list for PBXNativeTarget "JSONJoyOSXTests" */ = {
599
602
isa = XCConfigurationList;
602
605
D958024419E6ED8E003C8218 /* Release */,
603
606
);
604
607
defaultConfigurationIsVisible = 0;
608
+ defaultConfigurationName = Release;
605
609
};
606
610
/* End XCConfigurationList section */
607
611
};
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ struct Scopes : JSONJoy {
142
142
init () {
143
143
}
144
144
init (_ decoder : JSONDecoder) {
145
- decoder.array (& scopes) // pass the optional array by reference, it will be allocated if it is not and filled
145
+ decoder.getArray (& scopes) // pass the optional array by reference, it will be allocated if it is not and filled
146
146
}
147
147
}
148
148
```
@@ -176,10 +176,10 @@ struct Addresses : JSONJoy {
176
176
}
177
177
init (_ decoder : JSONDecoder) {
178
178
// we check if the array is valid then alloc our array and loop through it, creating the new address objects.
179
- if decoder[" addresses" ].array {
179
+ if let addrs = decoder[" addresses" ].array {
180
180
addresses = Array < Address> ()
181
- for address in decoder[ " addresses " ]. array {
182
- addresses.append (Address (address ))
181
+ for addrDecoder in addrs {
182
+ addresses.append (Address (addrDecoder ))
183
183
}
184
184
}
185
185
}
You can’t perform that action at this time.
0 commit comments