Skip to content

Commit 38a60b2

Browse files
Merge branch 'immutable-new-operator' into immutable-mappable
2 parents e26bc16 + 7388058 commit 38a60b2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

ObjectMapper.podspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Pod::Spec.new do |s|
1212
s.osx.deployment_target = '10.9'
1313
s.tvos.deployment_target = '9.0'
1414

15+
16+
s.pod_target_xcconfig = {
17+
'SWIFT_VERSION' => '3.0',
18+
}
19+
1520
s.requires_arc = 'true'
1621
s.source_files = 'ObjectMapper/**/*.swift'
1722
end

ObjectMapper.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@
11331133
ONLY_ACTIVE_ARCH = YES;
11341134
SDKROOT = iphoneos;
11351135
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1136-
SWIFT_VERSION = 2.3;
1136+
SWIFT_VERSION = 3.0;
11371137
TARGETED_DEVICE_FAMILY = "1,2";
11381138
VERSIONING_SYSTEM = "apple-generic";
11391139
VERSION_INFO_PREFIX = "";
@@ -1176,7 +1176,7 @@
11761176
MTL_ENABLE_DEBUG_INFO = NO;
11771177
SDKROOT = iphoneos;
11781178
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1179-
SWIFT_VERSION = 2.3;
1179+
SWIFT_VERSION = 3.0;
11801180
TARGETED_DEVICE_FAMILY = "1,2";
11811181
VALIDATE_PRODUCT = YES;
11821182
VERSIONING_SYSTEM = "apple-generic";

ObjectMapper/Core/Map.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public final class Map {
4040

4141
public internal(set) var JSON: [String: Any] = [:]
4242
public internal(set) var isKeyPresent = false
43-
public var currentValue: Any?
44-
public var context: MapContext?
43+
public internal(set) var currentValue: Any?
4544
public internal(set) var currentKey: String?
4645
var keyIsNested = false
46+
public var context: MapContext?
4747

4848
let toObject: Bool // indicates whether the mapping is being applied to an existing object
4949

0 commit comments

Comments
 (0)