Bläddra i källkod

Set Swift 5.0 compiler version

Marcin Krzyzanowski 6 år sedan
förälder
incheckning
d866726a77

+ 1 - 1
.swift-version

@@ -1 +1 @@
-4.2.1
+5.0

+ 1 - 1
CryptoSwift.podspec

@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
   s.authors      = {'Marcin Krzyżanowski' => 'marcin@krzyzanowskim.com'}
   s.authors      = {'Marcin Krzyżanowski' => 'marcin@krzyzanowskim.com'}
   s.social_media_url = "https://twitter.com/krzyzanowskim"
   s.social_media_url = "https://twitter.com/krzyzanowskim"
   s.cocoapods_version = '>= 1.4.0'
   s.cocoapods_version = '>= 1.4.0'
-  s.swift_version = "4.2"
+  s.swift_version = "5.0"
   s.ios.deployment_target = "8.0"
   s.ios.deployment_target = "8.0"
   s.osx.deployment_target = "10.10"
   s.osx.deployment_target = "10.10"
   s.watchos.deployment_target = "2.0"
   s.watchos.deployment_target = "2.0"

+ 5 - 8
CryptoSwift.xcodeproj/project.pbxproj

@@ -792,27 +792,27 @@
 				TargetAttributes = {
 				TargetAttributes = {
 					75211F91207249D8004E41F8 = {
 					75211F91207249D8004E41F8 = {
 						CreatedOnToolsVersion = 9.3;
 						CreatedOnToolsVersion = 9.3;
-						LastSwiftMigration = 1000;
+						LastSwiftMigration = 1020;
 						ProvisioningStyle = Automatic;
 						ProvisioningStyle = Automatic;
 					};
 					};
 					754BE45419693E190098E6F3 = {
 					754BE45419693E190098E6F3 = {
 						CreatedOnToolsVersion = 6.0;
 						CreatedOnToolsVersion = 6.0;
-						LastSwiftMigration = 1000;
+						LastSwiftMigration = 1020;
 						ProvisioningStyle = Manual;
 						ProvisioningStyle = Manual;
 					};
 					};
 					754BE45F19693E190098E6F3 = {
 					754BE45F19693E190098E6F3 = {
 						CreatedOnToolsVersion = 6.0;
 						CreatedOnToolsVersion = 6.0;
-						LastSwiftMigration = 1000;
+						LastSwiftMigration = 1020;
 						ProvisioningStyle = Manual;
 						ProvisioningStyle = Manual;
 					};
 					};
 					7564F04E2072EAEB00CA5A96 = {
 					7564F04E2072EAEB00CA5A96 = {
-						LastSwiftMigration = 1000;
+						LastSwiftMigration = 1020;
 						ProvisioningStyle = Manual;
 						ProvisioningStyle = Manual;
 						TestTargetID = 75211F91207249D8004E41F8;
 						TestTargetID = 75211F91207249D8004E41F8;
 					};
 					};
 					7595C1492072E48C00EA1A5F = {
 					7595C1492072E48C00EA1A5F = {
 						CreatedOnToolsVersion = 9.3;
 						CreatedOnToolsVersion = 9.3;
-						LastSwiftMigration = 1000;
+						LastSwiftMigration = 1020;
 						ProvisioningStyle = Manual;
 						ProvisioningStyle = Manual;
 					};
 					};
 				};
 				};
@@ -1121,7 +1121,6 @@
 			isa = XCBuildConfiguration;
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 75211FB020724A10004E41F8 /* Project-Debug.xcconfig */;
 			baseConfigurationReference = 75211FB020724A10004E41F8 /* Project-Debug.xcconfig */;
 			buildSettings = {
 			buildSettings = {
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 			};
 			};
 			name = Debug;
 			name = Debug;
 		};
 		};
@@ -1129,7 +1128,6 @@
 			isa = XCBuildConfiguration;
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 75211FAA20724A0F004E41F8 /* Project-Release.xcconfig */;
 			baseConfigurationReference = 75211FAA20724A0F004E41F8 /* Project-Release.xcconfig */;
 			buildSettings = {
 			buildSettings = {
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 			};
 			};
 			name = Release;
 			name = Release;
 		};
 		};
@@ -1198,7 +1196,6 @@
 			isa = XCBuildConfiguration;
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 75211FA620724A0F004E41F8 /* Project-Test.xcconfig */;
 			baseConfigurationReference = 75211FA620724A0F004E41F8 /* Project-Test.xcconfig */;
 			buildSettings = {
 			buildSettings = {
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 			};
 			};
 			name = Test;
 			name = Test;
 		};
 		};

+ 1 - 1
Sources/CryptoSwift/Foundation/Data+Extension.swift

@@ -82,7 +82,7 @@ extension Data {
 
 
 extension Data {
 extension Data {
     public init(hex: String) {
     public init(hex: String) {
-        self.init(bytes: Array<UInt8>(hex: hex))
+        self.init(Array<UInt8>(hex: hex))
     }
     }
 
 
     public var bytes: Array<UInt8> {
     public var bytes: Array<UInt8> {

+ 2 - 1
config/CryptoSwift-Shared.xcconfig

@@ -5,6 +5,7 @@
 // https://github.com/dempseyatgithub/BuildSettingExtractor
 // https://github.com/dempseyatgithub/BuildSettingExtractor
 //
 //
 
 
+CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES
 
 
 // Require Only App-Extension-Safe API
 // Require Only App-Extension-Safe API
 // 
 // 
@@ -139,7 +140,7 @@ SKIP_INSTALL = YES
 // 
 // 
 // 
 // 
 
 
-SWIFT_VERSION = 4.2
+SWIFT_VERSION = 5.0
 
 
 
 
 
 

+ 1 - 1
config/Project-Shared.xcconfig

@@ -479,7 +479,7 @@ SWIFT_COMPILATION_MODE = wholemodule
 // 
 // 
 // 
 // 
 
 
-SWIFT_VERSION = 4.2
+SWIFT_VERSION = 5.0