Skip to content

Commit 7042391

Browse files
committed
Inference swift 3 objc
1 parent 016fb33 commit 7042391

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Swamp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.2.0</string>
18+
<string>0.4.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Swamp/Messages/SwampMessages.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ enum SwampMessages: Int {
8484
var messageType: SwampMessages?
8585

8686
if let mapping = payload[0] as? UInt64 {
87-
messageType = SwampMessages(rawValue: Int(truncatingBitPattern: mapping))
87+
messageType = SwampMessages(rawValue: Int(truncatingIfNeeded: mapping))
8888
} else if let mapping = payload[0] as? Int64 {
89-
messageType = SwampMessages(rawValue: Int(truncatingBitPattern: mapping))
89+
messageType = SwampMessages(rawValue: Int(truncatingIfNeeded: mapping))
9090
} else if let mapping = payload[0] as? UInt {
9191
messageType = SwampMessages(rawValue: Int(mapping))
9292
} else if let mapping = payload[0] as? Int {

SwampFramework.xcodeproj/project.pbxproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@
435435
TargetAttributes = {
436436
5424B87B1DAD576A00236769 = {
437437
CreatedOnToolsVersion = 8.0;
438-
DevelopmentTeam = LSXG8FJZLT;
439-
LastSwiftMigration = 0800;
438+
LastSwiftMigration = 0920;
440439
ProvisioningStyle = Automatic;
441440
};
442441
543C069E1DB5424200FC8257 = {
@@ -703,7 +702,7 @@
703702
CLANG_ENABLE_MODULES = YES;
704703
CODE_SIGN_IDENTITY = "";
705704
DEFINES_MODULE = YES;
706-
DEVELOPMENT_TEAM = LSXG8FJZLT;
705+
DEVELOPMENT_TEAM = "";
707706
DYLIB_COMPATIBILITY_VERSION = 1;
708707
DYLIB_CURRENT_VERSION = 1;
709708
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -720,7 +719,8 @@
720719
SKIP_INSTALL = YES;
721720
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/CommonCrypto";
722721
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
723-
SWIFT_VERSION = 3.0;
722+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
723+
SWIFT_VERSION = 4.0;
724724
};
725725
name = Debug;
726726
};
@@ -731,7 +731,7 @@
731731
CLANG_ENABLE_MODULES = YES;
732732
CODE_SIGN_IDENTITY = "";
733733
DEFINES_MODULE = YES;
734-
DEVELOPMENT_TEAM = LSXG8FJZLT;
734+
DEVELOPMENT_TEAM = "";
735735
DYLIB_COMPATIBILITY_VERSION = 1;
736736
DYLIB_CURRENT_VERSION = 1;
737737
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -746,7 +746,8 @@
746746
PRODUCT_NAME = Swamp;
747747
SKIP_INSTALL = YES;
748748
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/CommonCrypto";
749-
SWIFT_VERSION = 3.0;
749+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
750+
SWIFT_VERSION = 4.0;
750751
};
751752
name = Release;
752753
};

0 commit comments

Comments
 (0)