-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple platforms + Swift Package Manager (#3)
* Reorganise folders for SPM support and multiple platforms * Default associated type for cleaner conformances * Update readme * Update readme * Run CI on multiple platforms * test * Test * Fix linux tests * Restore all travis builds * Fix pod warnings
- Loading branch information
1 parent
7098915
commit 2a24f64
Showing
36 changed files
with
1,311 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4 | ||
4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
language: objective-c | ||
osx_image: xcode9 | ||
|
||
before_script: | ||
- export LANG=en_US.UTF-8 | ||
script: | ||
- xcodebuild -project Stated.xcodeproj clean | ||
- travis_retry xcodebuild -project Stated.xcodeproj -scheme Stated -destination 'platform=iOS Simulator,name=iPhone 7' -configuration Debug test | ||
matrix: | ||
include: | ||
- language: objective-c | ||
osx_image: xcode9 | ||
before_script: | ||
- export LANG=en_US.UTF-8 | ||
|
||
script: | ||
- xcodebuild -project Stated.xcodeproj clean | ||
- travis_retry xcodebuild -project Stated.xcodeproj -scheme Stated-iOS -destination 'platform=iOS Simulator,name=iPhone 7' -configuration Debug test | ||
|
||
- language: objective-c | ||
osx_image: xcode9 | ||
before_script: | ||
- export LANG=en_US.UTF-8 | ||
|
||
script: | ||
- xcodebuild -project Stated.xcodeproj clean | ||
- travis_retry xcodebuild -project Stated.xcodeproj -scheme Stated-macOS -configuration Debug test | ||
|
||
- language: generic | ||
os: linux | ||
sudo: required | ||
dist: trusty | ||
install: | ||
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)" | ||
- swiftenv install https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz | ||
- swift build | ||
|
||
script: | ||
- swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Stated" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Stated/DSL/InputSlotDSL.swift → Sources/Stated/DSL/InputSlotDSL.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
extension InputSlot { | ||
/// | ||
/// Define the current state the system must be in for a valid transition. | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Pod::Spec.new do |spec| | ||
spec.name = 'Stated' | ||
spec.version = '1.1.0' | ||
spec.license = { :type => 'MIT' } | ||
spec.homepage = 'https://github.com/jordanhamill/StateMachine' | ||
spec.authors = { 'Jordan Hamill' => '[email protected]' } | ||
spec.summary = 'Swift state machine with a beautiful DSL' | ||
spec.source = { :git => 'https://github.com/jordanhamill/StateMachine.git', :tag => '1.1.0' } | ||
spec.source_files = 'Stated/**/*.{swift}' | ||
|
||
spec.ios.deployment_target = '10.0' | ||
Pod::Spec.new do |s| | ||
s.name = 'Stated' | ||
s.version = '1.2.0' | ||
s.summary = 'Swift state machine with a beautiful DSL' | ||
s.homepage = 'https://github.com/jordanhamill/StateMachine' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.author = { 'Jordan Hamill' => '[email protected]' } | ||
s.ios.deployment_target = '10.0' | ||
s.osx.deployment_target = '10.9' | ||
s.source = { :git => 'https://github.com/jordanhamill/StateMachine.git', :tag => s.version.to_s } | ||
s.source_files = 'Sources/**/*' | ||
end |
Oops, something went wrong.