Skip to content

SwiftPM support #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Carthage
Relayout.framework.zip
build

.build
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.2.1
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ osx_image: xcode7.3
xcode_project: Relayout.xcodeproj
xcode_sdk: iphonesimulator9.3

env:
global:
- FRAMEWORK_NAME=Relayout

before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet

install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"

script:
- xctool clean build -project Relayout.xcodeproj -scheme "Relayout" -sdk iphonesimulator
- xctool test -project Relayout.xcodeproj -scheme "Relayout" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 5s"
Expand All @@ -22,6 +21,7 @@ script:
- xctool clean build -project Relayout.xcodeproj -scheme "Sample App" -sdk iphonesimulator
- carthage build --no-skip-current
- pod lib lint
- swift build

before_deploy:
- carthage archive Relayout
Expand Down
5 changes: 5 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import PackageDescription

let package = Package(
name: "Relayout"
)
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Finally, Relayout is not a great tool to use in conjunction with Interface Build
Installing
==========

Relayout supports iOS 8.0+, tvOS 9.0+, and OS X 10.10+. You can install Relayout with Carthage, CocoaPods, or manually.
Relayout supports iOS 8.0+, tvOS 9.0+, and OS X 10.10+. You can install Relayout with Carthage, CocoaPods, the Swift package manager, or manually.

With CocoaPods
--------------
Expand All @@ -60,6 +60,13 @@ Add the following to your `Cartfile`:code:. ::

github "stevestreza/Relayout" ~> 1.1

With Swift Package Manager
-------------------------

Add the following to your `Package.swift`:code: dependencies. ::

.Package(url: "https://github.com/stevestreza/Relayout.git", majorVersion: 1)

Manually
--------

Expand Down
18 changes: 5 additions & 13 deletions Relayout.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
isa = PBXGroup;
children = (
9BC247281D85128400A8E79B /* Configuration */,
A7EC54FF1D51B20B00A579B9 /* Sources */,
A7EC54E41D51B15200A579B9 /* Framework */,
A7EC54F01D51B15300A579B9 /* Tests */,
A70D4A4E1D51D29E00DD71AE /* Sample App */,
Expand All @@ -169,8 +170,8 @@
A7EC54E41D51B15200A579B9 /* Framework */ = {
isa = PBXGroup;
children = (
A7EC54FF1D51B20B00A579B9 /* Layout */,
A7EC54FE1D51B1FF00A579B9 /* Support Files */,
A7EC54E51D51B15200A579B9 /* Relayout.h */,
A7EC54E71D51B15300A579B9 /* Relayout-Info.plist */,
);
path = Framework;
sourceTree = "<group>";
Expand All @@ -185,16 +186,7 @@
path = RelayoutTests;
sourceTree = "<group>";
};
A7EC54FE1D51B1FF00A579B9 /* Support Files */ = {
isa = PBXGroup;
children = (
A7EC54E51D51B15200A579B9 /* Relayout.h */,
A7EC54E71D51B15300A579B9 /* Relayout-Info.plist */,
);
name = "Support Files";
sourceTree = "<group>";
};
A7EC54FF1D51B20B00A579B9 /* Layout */ = {
A7EC54FF1D51B20B00A579B9 /* Sources */ = {
isa = PBXGroup;
children = (
A7EC55021D51B24200A579B9 /* LayingOut.swift */,
Expand All @@ -207,7 +199,7 @@
A782C3FE1D5311E20080701E /* ListLayout.swift */,
9BC247241D850FD500A8E79B /* PlatformSupport.swift */,
);
path = Layout;
path = Sources;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand Down
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.