X Tutup
Skip to content

Commit c503354

Browse files
committed
Updated to Swift 5
1 parent 299bebd commit c503354

File tree

9 files changed

+34
-33
lines changed

9 files changed

+34
-33
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
5.0

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.2
1+
// swift-tools-version:5.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
44

SwiftyTimer.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Pod::Spec.new do |s|
66
s.homepage = 'https://github.com/radex/SwiftyTimer'
77
s.authors = { 'Radek Pietruszewski' => 'this.is@radex.io' }
88
s.source = { git: 'https://github.com/radex/SwiftyTimer.git', tag: s.version }
9-
s.swift_version = '4.2'
9+
s.swift_version = '5.0'
1010
s.requires_arc = true
1111
s.ios.deployment_target = '8.0'
1212
s.osx.deployment_target = '10.9'
13-
s.tvos.deployment_target = '9.0'
14-
s.watchos.deployment_target = '2.0'
13+
s.tvos.deployment_target = '15.4'
14+
s.watchos.deployment_target = '8.5'
1515

1616
s.source_files = 'Sources/*.swift'
1717
end

SwiftyTimer.xcodeproj/project.pbxproj

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@
205205
3E721AB21BF7255C008AF027 /* Project object */ = {
206206
isa = PBXProject;
207207
attributes = {
208-
LastUpgradeCheck = 1000;
208+
LastUpgradeCheck = 1340;
209209
ORGANIZATIONNAME = "Radosław Pietruszewski";
210210
TargetAttributes = {
211211
3E721ABA1BF7255D008AF027 = {
212212
CreatedOnToolsVersion = 7.1;
213-
LastSwiftMigration = 0800;
213+
LastSwiftMigration = 1340;
214214
};
215215
6E7E40891C84B1A20030CEBB = {
216216
CreatedOnToolsVersion = 7.2;
@@ -228,6 +228,7 @@
228228
developmentRegion = English;
229229
hasScannedForEncodings = 0;
230230
knownRegions = (
231+
English,
231232
en,
232233
);
233234
mainGroup = 3E721AB11BF7255C008AF027;
@@ -314,6 +315,7 @@
314315
isa = XCBuildConfiguration;
315316
buildSettings = {
316317
ALWAYS_SEARCH_USER_PATHS = NO;
318+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
317319
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
318320
CLANG_CXX_LIBRARY = "libc++";
319321
CLANG_ENABLE_MODULES = YES;
@@ -332,6 +334,7 @@
332334
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
333335
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
334336
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
337+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
335338
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
336339
CLANG_WARN_STRICT_PROTOTYPES = YES;
337340
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -363,17 +366,20 @@
363366
ONLY_ACTIVE_ARCH = YES;
364367
SDKROOT = iphoneos;
365368
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
366-
SWIFT_VERSION = 4.2;
369+
SWIFT_VERSION = 5.0;
367370
TARGETED_DEVICE_FAMILY = "1,2";
371+
TVOS_DEPLOYMENT_TARGET = 15.4;
368372
VERSIONING_SYSTEM = "apple-generic";
369373
VERSION_INFO_PREFIX = "";
374+
WATCHOS_DEPLOYMENT_TARGET = 8.5;
370375
};
371376
name = Debug;
372377
};
373378
3E721AC21BF7255D008AF027 /* Release */ = {
374379
isa = XCBuildConfiguration;
375380
buildSettings = {
376381
ALWAYS_SEARCH_USER_PATHS = NO;
382+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
377383
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
378384
CLANG_CXX_LIBRARY = "libc++";
379385
CLANG_ENABLE_MODULES = YES;
@@ -392,6 +398,7 @@
392398
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
393399
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
394400
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
401+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
395402
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
396403
CLANG_WARN_STRICT_PROTOTYPES = YES;
397404
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -416,11 +423,13 @@
416423
MTL_ENABLE_DEBUG_INFO = NO;
417424
SDKROOT = iphoneos;
418425
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
419-
SWIFT_VERSION = 4.2;
426+
SWIFT_VERSION = 5.0;
420427
TARGETED_DEVICE_FAMILY = "1,2";
428+
TVOS_DEPLOYMENT_TARGET = 15.4;
421429
VALIDATE_PRODUCT = YES;
422430
VERSIONING_SYSTEM = "apple-generic";
423431
VERSION_INFO_PREFIX = "";
432+
WATCHOS_DEPLOYMENT_TARGET = 8.5;
424433
};
425434
name = Release;
426435
};
@@ -441,7 +450,7 @@
441450
PRODUCT_BUNDLE_IDENTIFIER = io.radex.SwiftyTimer;
442451
PRODUCT_NAME = "$(TARGET_NAME)";
443452
SKIP_INSTALL = YES;
444-
SWIFT_VERSION = 4.2;
453+
SWIFT_VERSION = 5.0;
445454
};
446455
name = Debug;
447456
};
@@ -462,7 +471,7 @@
462471
PRODUCT_BUNDLE_IDENTIFIER = io.radex.SwiftyTimer;
463472
PRODUCT_NAME = "$(TARGET_NAME)";
464473
SKIP_INSTALL = YES;
465-
SWIFT_VERSION = 4.2;
474+
SWIFT_VERSION = 5.0;
466475
};
467476
name = Release;
468477
};
@@ -530,7 +539,7 @@
530539
SKIP_INSTALL = YES;
531540
SWIFT_VERSION = 4.2;
532541
TARGETED_DEVICE_FAMILY = 3;
533-
TVOS_DEPLOYMENT_TARGET = 9.0;
542+
TVOS_DEPLOYMENT_TARGET = 12.0;
534543
};
535544
name = Debug;
536545
};
@@ -552,7 +561,7 @@
552561
SKIP_INSTALL = YES;
553562
SWIFT_VERSION = 4.2;
554563
TARGETED_DEVICE_FAMILY = 3;
555-
TVOS_DEPLOYMENT_TARGET = 9.0;
564+
TVOS_DEPLOYMENT_TARGET = 12.0;
556565
};
557566
name = Release;
558567
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>PreviewsEnabled</key>
6+
<false/>
7+
</dict>
8+
</plist>

SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer OS X.xcscheme

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:SwiftyTimer.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer tvOS.xcscheme

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:SwiftyTimer.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer watchOS.xcscheme

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:SwiftyTimer.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer.xcscheme

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:SwiftyTimer.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

0 commit comments

Comments
 (0)
X Tutup