Skip to content

Commit 56d0489

Browse files
committed
updated pods
1 parent 55b27d1 commit 56d0489

File tree

5 files changed

+31
-16
lines changed

5 files changed

+31
-16
lines changed

NAToolKit.xcodeproj/project.pbxproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,16 @@
174174
isa = PBXProject;
175175
attributes = {
176176
LastSwiftUpdateCheck = 0720;
177-
LastUpgradeCheck = 0720;
177+
LastUpgradeCheck = 0810;
178178
ORGANIZATIONNAME = NordicArts;
179179
TargetAttributes = {
180180
F322D03A1C6788F100F35120 = {
181181
CreatedOnToolsVersion = 7.2.1;
182+
LastSwiftMigration = 0810;
182183
};
183184
F322D0441C6788F100F35120 = {
184185
CreatedOnToolsVersion = 7.2.1;
186+
LastSwiftMigration = 0810;
185187
};
186188
};
187189
};
@@ -310,8 +312,10 @@
310312
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
311313
CLANG_WARN_EMPTY_BODY = YES;
312314
CLANG_WARN_ENUM_CONVERSION = YES;
315+
CLANG_WARN_INFINITE_RECURSION = YES;
313316
CLANG_WARN_INT_CONVERSION = YES;
314317
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
318+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
315319
CLANG_WARN_UNREACHABLE_CODE = YES;
316320
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
317321
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -358,8 +362,10 @@
358362
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
359363
CLANG_WARN_EMPTY_BODY = YES;
360364
CLANG_WARN_ENUM_CONVERSION = YES;
365+
CLANG_WARN_INFINITE_RECURSION = YES;
361366
CLANG_WARN_INT_CONVERSION = YES;
362367
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
368+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
363369
CLANG_WARN_UNREACHABLE_CODE = YES;
364370
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
365371
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -379,6 +385,7 @@
379385
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
380386
MTL_ENABLE_DEBUG_INFO = NO;
381387
SDKROOT = iphoneos;
388+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
382389
TARGETED_DEVICE_FAMILY = "1,2";
383390
VALIDATE_PRODUCT = YES;
384391
VERSIONING_SYSTEM = "apple-generic";
@@ -390,6 +397,7 @@
390397
isa = XCBuildConfiguration;
391398
buildSettings = {
392399
CLANG_ENABLE_MODULES = YES;
400+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
393401
DEFINES_MODULE = YES;
394402
DYLIB_COMPATIBILITY_VERSION = 1;
395403
DYLIB_CURRENT_VERSION = 1;
@@ -401,13 +409,15 @@
401409
PRODUCT_NAME = "$(TARGET_NAME)";
402410
SKIP_INSTALL = YES;
403411
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
412+
SWIFT_VERSION = 3.0;
404413
};
405414
name = Debug;
406415
};
407416
F322D0511C6788F100F35120 /* Release */ = {
408417
isa = XCBuildConfiguration;
409418
buildSettings = {
410419
CLANG_ENABLE_MODULES = YES;
420+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
411421
DEFINES_MODULE = YES;
412422
DYLIB_COMPATIBILITY_VERSION = 1;
413423
DYLIB_CURRENT_VERSION = 1;
@@ -418,28 +428,33 @@
418428
PRODUCT_BUNDLE_IDENTIFIER = net.nordicarts.NAToolKit;
419429
PRODUCT_NAME = "$(TARGET_NAME)";
420430
SKIP_INSTALL = YES;
431+
SWIFT_VERSION = 3.0;
421432
};
422433
name = Release;
423434
};
424435
F322D0531C6788F100F35120 /* Debug */ = {
425436
isa = XCBuildConfiguration;
426437
baseConfigurationReference = 8574B10743CDCD9A0CD28A8A /* Pods-NAToolKitTests.debug.xcconfig */;
427438
buildSettings = {
439+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
428440
INFOPLIST_FILE = NAToolKitTests/Info.plist;
429441
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
430442
PRODUCT_BUNDLE_IDENTIFIER = net.nordicarts.NAToolKitTests;
431443
PRODUCT_NAME = "$(TARGET_NAME)";
444+
SWIFT_VERSION = 3.0;
432445
};
433446
name = Debug;
434447
};
435448
F322D0541C6788F100F35120 /* Release */ = {
436449
isa = XCBuildConfiguration;
437450
baseConfigurationReference = 4CD513AB5E5CC348139C307A /* Pods-NAToolKitTests.release.xcconfig */;
438451
buildSettings = {
452+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
439453
INFOPLIST_FILE = NAToolKitTests/Info.plist;
440454
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
441455
PRODUCT_BUNDLE_IDENTIFIER = net.nordicarts.NAToolKitTests;
442456
PRODUCT_NAME = "$(TARGET_NAME)";
457+
SWIFT_VERSION = 3.0;
443458
};
444459
name = Release;
445460
};

NAToolKit.xcodeproj/xcshareddata/xcschemes/NAToolKit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0720"
3+
LastUpgradeVersion = "0810"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

NAToolKit/NAToolKit.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ public extension String {
2020

2121
// MARK: UIImage
2222
public extension UIImage {
23-
public func resizeImage(width: Int, height: Int) -> UIImage {
23+
public func resizeImage(_ width: Int, height: Int) -> UIImage {
2424
let hasAlpha:Bool = true
2525
let scale:CGFloat = 0.0
2626
let size:CGSize = CGSize(width: width, height: height)
2727

2828
UIGraphicsBeginImageContextWithOptions(size, !hasAlpha, scale)
29-
self.drawInRect(CGRect(origin: CGPointZero, size: size))
29+
self.draw(in: CGRect(origin: CGPoint.zero, size: size))
3030

3131
let scaledImage = UIGraphicsGetImageFromCurrentImageContext()
32-
return scaledImage
32+
return scaledImage!
3333
}
3434
}
3535

3636
// MARK: UIColor
3737
public extension UIColor {
3838
public convenience init(hexString: String) {
39-
let hex = hexString.stringByTrimmingCharactersInSet(NSCharacterSet.alphanumericCharacterSet().invertedSet)
39+
let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
4040
var int = UInt32()
41-
NSScanner(string: hex).scanHexInt(&int)
41+
Scanner(string: hex).scanHexInt32(&int)
4242

4343
let a:UInt32
4444
let r:UInt32
@@ -66,4 +66,4 @@ public extension UIColor {
6666
alpha: CGFloat(a) / 255
6767
)
6868
}
69-
}
69+
}

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ target 'NAToolKit' do
88
end
99

1010
target 'NAToolKitTests' do
11-
pod 'Quick', '~> 0.9.0'
12-
pod 'Nimble', '3.0.0'
11+
pod 'Quick', '~> 0.10.0'
12+
pod 'Nimble', '~> 5.1.0'
1313
end
1414

Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
PODS:
2-
- Nimble (3.0.0)
3-
- Quick (0.9.0)
2+
- Nimble (5.1.0)
3+
- Quick (0.10.0)
44

55
DEPENDENCIES:
6-
- Nimble (= 3.0.0)
7-
- Quick (~> 0.9.0)
6+
- Nimble (~> 5.1.0)
7+
- Quick (~> 0.10.0)
88

99
SPEC CHECKSUMS:
10-
Nimble: 4c353d43735b38b545cbb4cb91504588eb5de926
11-
Quick: 332eb1da73125a2106dd637424c803f2ae97e4a9
10+
Nimble: 5ea121a2eda60440287054cde077fc0ad22227b3
11+
Quick: 5d290df1c69d5ee2f0729956dcf0fd9a30447eaa
1212

1313
COCOAPODS: 0.39.0

0 commit comments

Comments
 (0)