Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #19 from wayfair/swift-5.1-support
Browse files Browse the repository at this point in the history
Swift 5.1 things
  • Loading branch information
Peter Tomaselli authored Jan 14, 2020
2 parents d42e17f + 4634207 commit 651f0d2
Show file tree
Hide file tree
Showing 36 changed files with 916 additions and 1,207 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
steps:
- uses: actions/[email protected]
- name: xcodebuild
run: xcodebuild -project Prelude.xcodeproj -scheme "Prelude macOS" -destination "platform=OS X,arch=x86_64" build test | xcpretty
run: xcodebuild -project Prelude.xcodeproj -scheme "Prelude-Package" -destination "platform=OS X,arch=x86_64" build test | xcpretty
- name: SwiftPM Build
run: swift build
test-iOS:
runs-on: macOS-latest
steps:
- uses: actions/[email protected]
- name: xcodebuild
run: xcodebuild -project Prelude.xcodeproj -scheme "Prelude iOS" -destination "platform=iOS Simulator,OS=13.1,name=iPhone 11" build test | xcpretty
run: xcodebuild -project Prelude.xcodeproj -scheme "Prelude-Package" -destination "platform=iOS Simulator,OS=13.3,name=iPhone 11" build test | xcpretty
test-linux:
runs-on: ubuntu-latest
container:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ Carthage/
# Jazzy
#
.docs/

# macOS
#
.DS_Store
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.PHONY: default clean swiftbuild swifttest sync_linuxmain sync_xcodeproj test

default: sync_linuxmain sync_xcodeproj swiftbuild

clean:
swift package clean

swiftbuild:
swift build

swifttest: sync_linuxmain
swift test

sync_linuxmain:
swift test --generate-linuxmain

sync_xcodeproj:
swift package generate-xcodeproj

test: swifttest
22 changes: 12 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swift-tools-version:5.1

import PackageDescription

let package = Package(
name: "Prelude",
// Products define the executables and libraries produced by a package, and make them visible to other packages.
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Prelude",
targets: ["Prelude"])
targets: ["Prelude"]
)
],
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "Prelude",
dependencies: []),
dependencies: []
),
.testTarget(
name: "PreludeTests",
dependencies: ["Prelude"])
dependencies: ["Prelude"]
)
]
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='6.0' target-platform='ios'>
<playground version='6.0' target-platform='macos'>
<pages>
<page name='change-tracking'/>
<page name='prelude'/>
Expand Down
25 changes: 25 additions & 0 deletions Prelude.xcodeproj/PreludeTests_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions Prelude.xcodeproj/Prelude_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</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>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Loading

0 comments on commit 651f0d2

Please sign in to comment.