Skip to content

Commit 4df23f5

Browse files
authored
Spring cleaning (#36)
* Bump SQLite.swift to 0.12.2 * Update recommended Xcode settings * Remove travis config file, rip * Set recommended Swift version to 5.0 * 0.12.2 part 2 * Update project settings part 2 * Update testing scripts * Add GitHub action
1 parent ecd16bf commit 4df23f5

14 files changed

+62
-73
lines changed

.github/workflows/build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-10.15
13+
14+
steps:
15+
- name: setup
16+
run: ./bin/setup
17+
- name: tests
18+
run: ./bin/run-tests

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ xcuserdata
2828

2929
# Swift Package Manager
3030
.build/
31+
.swiftpm/
3132

3233
# Carthage
3334
Carthage/Build

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
5.0

.travis.yml

-27
This file was deleted.

Cartfile.resolved

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "stephencelis/SQLite.swift" "0.12.0"
1+
github "stephencelis/SQLite.swift" "0.12.2"

Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repositoryURL": "https://github.com/stephencelis/SQLite.swift.git",
77
"state": {
88
"branch": null,
9-
"revision": "691fc89e75873d417d700920e79a63cf210d1d71",
10-
"version": "0.12.0"
9+
"revision": "0a9893ec030501a3956bee572d6b4fdd3ae158a1",
10+
"version": "0.12.2"
1111
}
1212
}
1313
]

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
.library(name: "SQLiteMigrationManager", targets: ["SQLiteMigrationManager"])
88
],
99
dependencies: [
10-
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.12.0")
10+
.package(url: "https://github.com/stephencelis/SQLite.swift.git", .upToNextMinor(from: "0.12.2"))
1111
],
1212
targets: [
1313
.target(

SQLiteMigrationManager.swift.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
1919
s.source = { :git => "https://github.com/garriguv/SQLiteMigrationManager.swift.git", tag: s.version.to_s, submodules: true }
2020
s.source_files = "Sources"
2121

22-
s.dependency "SQLite.swift", "~> 0.12.0"
22+
s.dependency "SQLite.swift", "~> 0.12.2"
2323
end

SQLiteMigrationManager.xcodeproj/project.pbxproj

+10-5
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
isa = PBXProject;
297297
attributes = {
298298
LastSwiftUpdateCheck = 1010;
299-
LastUpgradeCheck = 1020;
299+
LastUpgradeCheck = 1300;
300300
ORGANIZATIONNAME = "Vincent Garrigues";
301301
TargetAttributes = {
302302
CFE35EC521DE71980004E4E4 = {
@@ -305,6 +305,7 @@
305305
};
306306
EBB203692205CCF9001B59FA = {
307307
CreatedOnToolsVersion = 10.1;
308+
LastSwiftMigration = 1300;
308309
ProvisioningStyle = Automatic;
309310
};
310311
EBE813E31C4BA00200EE04E8 = {
@@ -524,7 +525,7 @@
524525
PRODUCT_NAME = "$(TARGET_NAME)";
525526
SDKROOT = macosx;
526527
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
527-
SWIFT_VERSION = 4.2;
528+
SWIFT_VERSION = 5.0;
528529
};
529530
name = Debug;
530531
};
@@ -548,7 +549,7 @@
548549
PRODUCT_BUNDLE_IDENTIFIER = "io.garriguv.SQLiteMigrationManagerTests-macOS";
549550
PRODUCT_NAME = "$(TARGET_NAME)";
550551
SDKROOT = macosx;
551-
SWIFT_VERSION = 4.2;
552+
SWIFT_VERSION = 5.0;
552553
};
553554
name = Release;
554555
};
@@ -575,6 +576,7 @@
575576
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
576577
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
577578
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
579+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
578580
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
579581
CLANG_WARN_STRICT_PROTOTYPES = YES;
580582
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -600,7 +602,7 @@
600602
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
601603
GCC_WARN_UNUSED_FUNCTION = YES;
602604
GCC_WARN_UNUSED_VARIABLE = YES;
603-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
605+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
604606
MACOSX_DEPLOYMENT_TARGET = 10.10;
605607
MTL_ENABLE_DEBUG_INFO = YES;
606608
ONLY_ACTIVE_ARCH = YES;
@@ -636,6 +638,7 @@
636638
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
637639
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
638640
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
641+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
639642
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
640643
CLANG_WARN_STRICT_PROTOTYPES = YES;
641644
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -655,7 +658,7 @@
655658
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
656659
GCC_WARN_UNUSED_FUNCTION = YES;
657660
GCC_WARN_UNUSED_VARIABLE = YES;
658-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
661+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
659662
MACOSX_DEPLOYMENT_TARGET = 10.10;
660663
MTL_ENABLE_DEBUG_INFO = NO;
661664
SDKROOT = iphoneos;
@@ -681,6 +684,7 @@
681684
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
682685
INFOPLIST_FILE = "SQLiteMigrationManager iOS/Info.plist";
683686
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
687+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
684688
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
685689
PRODUCT_BUNDLE_IDENTIFIER = io.garriguv.SQLiteMigrationManager;
686690
PRODUCT_MODULE_NAME = SQLiteMigrationManager;
@@ -702,6 +706,7 @@
702706
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
703707
INFOPLIST_FILE = "SQLiteMigrationManager iOS/Info.plist";
704708
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
709+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
705710
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
706711
PRODUCT_BUNDLE_IDENTIFIER = io.garriguv.SQLiteMigrationManager;
707712
PRODUCT_MODULE_NAME = SQLiteMigrationManager;

SQLiteMigrationManager.xcodeproj/xcshareddata/xcschemes/SQLiteMigrationManager iOS.xcscheme

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,9 +26,18 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
2930
codeCoverageEnabled = "YES"
30-
onlyGenerateCoverageForSpecifiedTargets = "YES"
31-
shouldUseLaunchSchemeArgsEnv = "YES">
31+
onlyGenerateCoverageForSpecifiedTargets = "YES">
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
36+
BuildableName = "SQLiteMigrationManager.framework"
37+
BlueprintName = "SQLiteMigrationManager iOS"
38+
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
3241
<CodeCoverageTargets>
3342
<BuildableReference
3443
BuildableIdentifier = "primary"
@@ -52,17 +61,6 @@
5261
</BuildableReference>
5362
</TestableReference>
5463
</Testables>
55-
<MacroExpansion>
56-
<BuildableReference
57-
BuildableIdentifier = "primary"
58-
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
59-
BuildableName = "SQLiteMigrationManager.framework"
60-
BlueprintName = "SQLiteMigrationManager iOS"
61-
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
62-
</BuildableReference>
63-
</MacroExpansion>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6664
</TestAction>
6765
<LaunchAction
6866
buildConfiguration = "Debug"
@@ -83,8 +81,6 @@
8381
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
8482
</BuildableReference>
8583
</MacroExpansion>
86-
<AdditionalOptions>
87-
</AdditionalOptions>
8884
</LaunchAction>
8985
<ProfileAction
9086
buildConfiguration = "Release"

SQLiteMigrationManager.xcodeproj/xcshareddata/xcschemes/SQLiteMigrationManager macOS.xcscheme

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "CFE35EC521DE71980004E4E4"
34+
BuildableName = "SQLiteMigrationManager.framework"
35+
BlueprintName = "SQLiteMigrationManager macOS"
36+
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO"
@@ -41,17 +50,6 @@
4150
</BuildableReference>
4251
</TestableReference>
4352
</Testables>
44-
<MacroExpansion>
45-
<BuildableReference
46-
BuildableIdentifier = "primary"
47-
BlueprintIdentifier = "CFE35EC521DE71980004E4E4"
48-
BuildableName = "SQLiteMigrationManager.framework"
49-
BlueprintName = "SQLiteMigrationManager macOS"
50-
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
51-
</BuildableReference>
52-
</MacroExpansion>
53-
<AdditionalOptions>
54-
</AdditionalOptions>
5553
</TestAction>
5654
<LaunchAction
5755
buildConfiguration = "Debug"
@@ -72,8 +70,6 @@
7270
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
7371
</BuildableReference>
7472
</MacroExpansion>
75-
<AdditionalOptions>
76-
</AdditionalOptions>
7773
</LaunchAction>
7874
<ProfileAction
7975
buildConfiguration = "Release"

bin/run-tests

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ main() {
66
xcodebuild \
77
-workspace SQLiteMigrationManager.xcworkspace \
88
-scheme "SQLiteMigrationManager iOS" \
9-
-sdk iphonesimulator12.2 \
10-
-destination "platform=iOS Simulator,name=iPhone X,OS=12.2"\
9+
-sdk iphonesimulator15.0 \
10+
-destination "platform=iOS Simulator,name=iPhone 12,OS=15.0"\
1111
test
1212
xcodebuild \
1313
-workspace SQLiteMigrationManager.xcworkspace \
1414
-scheme "SQLiteMigrationManager macOS" \
15-
-sdk macosx10.14 \
15+
-sdk macosx11.3 \
1616
-destination "arch=x86_64" \
1717
test
1818
swift build

bin/setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ carthage_installed() {
77
}
88

99
install_dependencies() {
10-
carthage update --platform iOS,macOS --use-submodules --no-use-binaries
10+
carthage update --platform iOS,macOS --use-submodules --no-use-binaries --use-xcframeworks
1111
}
1212

1313
main() {

0 commit comments

Comments
 (0)