Skip to content

Commit

Permalink
0.5.0 (#28)
Browse files Browse the repository at this point in the history
* Rename frameworks

* Update scheme names

* reorganize project to support future targets

* Add Carthage cache on CI

* set macos sdk to 10.14

* Update SPM

* disable build cache

* use double quotes

* Add missing schemes

* Revert "disable build cache"

This reverts commit 0c7bc9c.

* Update podspec

* Add platform to Podfile

* move schemes back to the project
  • Loading branch information
garriguv authored Feb 2, 2019
1 parent 827250d commit 0805fd1
Show file tree
Hide file tree
Showing 26 changed files with 297 additions and 72 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: objective-c
osx_image: xcode10.1
cache:
directories:
- Carthage
env:
global:
- FRAMEWORK_NAME=SQLiteMigrationManager
Expand All @@ -11,7 +14,7 @@ before_script:
script:
- travis_retry ./bin/run-tests
before_deploy:
- carthage build --platform iOS --no-skip-current
- carthage build --platform iOS,macOS --no-skip-current
- carthage archive $FRAMEWORK_NAME
deploy:
provider: releases
Expand Down
2 changes: 2 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use_frameworks!

platform :ios, 9.0

target 'SQLiteExample' do
pod 'SQLite.swift'
pod 'SQLiteMigrationManager.swift', path: '../'
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ let package = Package(
.target(
name: "SQLiteMigrationManager",
dependencies: ["SQLite"],
path: "SQLiteMigrationManager",
path: "Sources",
sources: ["SQLiteMigrationManager.swift"]),
.testTarget(
name: "SQLiteMigrationManagerTests",
dependencies: ["SQLiteMigrationManager"],
path: "SQLiteMigrationManagerTests",
path: "Tests",
sources: ["SQLiteMigrationManagerTests.swift"])
])
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion SQLiteMigrationManager.swift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.module_name = 'SQLiteMigrationManager'

s.source = { :git => "https://github.com/garriguv/SQLiteMigrationManager.swift.git", tag: s.version.to_s, submodules: true }
s.source_files = "SQLiteMigrationManager", "SQLiteMigrationManager/**/*.{h,m}"
s.source_files = "Sources"

s.dependency "SQLite.swift", "~> 0.11.0"
end
261 changes: 210 additions & 51 deletions SQLiteMigrationManager.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager"
BlueprintName = "SQLiteMigrationManager iOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -34,18 +34,20 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager"
BlueprintName = "SQLiteMigrationManager iOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO">
skipped = "NO"
parallelizable = "YES"
testExecutionOrdering = "random">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBE813ED1C4BA00200EE04E8"
BuildableName = "SQLiteMigrationManagerTests.xctest"
BlueprintName = "SQLiteMigrationManagerTests"
BuildableName = "SQLiteMigrationManagerTests iOS.xctest"
BlueprintName = "SQLiteMigrationManagerTests iOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -55,7 +57,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager"
BlueprintName = "SQLiteMigrationManager iOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -77,7 +79,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager"
BlueprintName = "SQLiteMigrationManager iOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -95,7 +97,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBE813E31C4BA00200EE04E8"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager"
BlueprintName = "SQLiteMigrationManager iOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFE35EC521DE71980004E4E4"
BuildableName = "SQLiteMigrationManagerMacOs.framework"
BlueprintName = "SQLiteMigrationManagerMacOs"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager macOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -28,7 +28,28 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES"
testExecutionOrdering = "random">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EBB203692205CCF9001B59FA"
BuildableName = "SQLiteMigrationManagerTests macOS.xctest"
BlueprintName = "SQLiteMigrationManagerTests macOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFE35EC521DE71980004E4E4"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager macOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
Expand All @@ -46,8 +67,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFE35EC521DE71980004E4E4"
BuildableName = "SQLiteMigrationManagerMacOs.framework"
BlueprintName = "SQLiteMigrationManagerMacOs"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager macOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -64,8 +85,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFE35EC521DE71980004E4E4"
BuildableName = "SQLiteMigrationManagerMacOs.framework"
BlueprintName = "SQLiteMigrationManagerMacOs"
BuildableName = "SQLiteMigrationManager.framework"
BlueprintName = "SQLiteMigrationManager macOS"
ReferencedContainer = "container:SQLiteMigrationManager.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>SQLiteMigrationManager.xcscheme_^#shared#^_</key>
<key>SQLiteMigrationManager iOS.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>SQLiteMigrationManager macOS.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
<key>SQLiteMigrationManagerTests macOS.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>6</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
Expand Down
File renamed without changes.
22 changes: 22 additions & 0 deletions SQLiteMigrationManagerTests macOS/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions bin/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ set -euo pipefail
main() {
xcodebuild \
-workspace SQLiteMigrationManager.xcworkspace \
-scheme SQLiteMigrationManager\
-sdk iphonesimulator12.1\
-scheme "SQLiteMigrationManager iOS" \
-sdk iphonesimulator12.1 \
-destination "platform=iOS Simulator,name=iPhone X,OS=12.1"\
test
xcodebuild \
-workspace SQLiteMigrationManager.xcworkspace \
-scheme "SQLiteMigrationManager macOS" \
-sdk macosx10.14 \
-destination "arch=x86_64" \
test
swift build
}
main "$@"

0 comments on commit 0805fd1

Please sign in to comment.