Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Update SwiftPM manifest to work with Accio #253

Open
wants to merge 6 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
23 changes: 12 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// Copyright 2017 LinkedIn Corp.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

// swift-tools-version:3.1

// swift-tools-version:4.2
import PackageDescription

let package = Package(
name: "LayoutKit"
name: "LayoutKit",
// platforms: [.iOS("8.0"), .macOS("10.10"), tvOS("9.0")],
products: [
.library(name: "LayoutKit", targets: ["LayoutKit"])
],
targets: [
.target(
name: "LayoutKit",
path: "Sources/Internal"
)
]
)
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ We have found LayoutKit to be a useful tool, but you should be aware of what it

## Installation

LayoutKit can be installed with [CocoaPods](https://cocoapods.org/) or [Carthage](https://github.com/Carthage/Carthage).
LayoutKit can be installed with [CocoaPods](https://cocoapods.org/), [Carthage](https://github.com/Carthage/Carthage) or [Accio](https://github.com/JamitLabs/Accio).

### CocoaPods

Expand All @@ -80,6 +80,25 @@ github "linkedin/LayoutKit"

Then run `carthage update`.

### Accio

Add this to your Package.swift:
```swift
.package(url: "https://github.com/linkedin/LayoutKit.git", .upToNextMajor(from: "10.1.0")),
```

Next, add `LayoutKit` to your App targets dependencies like so:
```swift
.target(
name: "App",
dependencies: [
"LayoutKit",
]
),
```

Then run `accio update`.

## Documentation

Now you are ready to start [building UI](http://layoutkit.org/building-ui).