-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add proper support for Xcode 11 and SPM (#14)
* Remove podspec * Use Equatable synthesized conformance * Remove Playgrounds * Move source code * Update package manifest * Update README
- Loading branch information
1 parent
94d9735
commit 6cc9840
Showing
17 changed files
with
69 additions
and
172 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 +1,20 @@ | ||
// swift-tools-version:5.1 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Markup" | ||
name: "Markup", | ||
platforms: [ | ||
.iOS(.v8), | ||
.macOS(.v10_10), | ||
.tvOS(.v9), | ||
.watchOS(.v2) | ||
], | ||
products: [ | ||
.library(name: "Markup", targets: ["Markup"]), | ||
], | ||
targets: [ | ||
.target(name: "Markup", dependencies: []), | ||
.testTarget(name: "MarkupTests", dependencies: ["Markup"]), | ||
] | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 +1,10 @@ | ||
# Markup | ||
[![CocoaPods](https://img.shields.io/cocoapods/v/Markup.svg)](https://cocoapods.org/pods/Markup) | ||
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) | ||
![Swift 5.1](https://img.shields.io/badge/Swift-5.1-orange.svg) | ||
[![Platforms](https://img.shields.io/cocoapods/p/Markup.svg)](https://cocoapods.org/pods/Markup) | ||
[![Swift Package Manager](https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager) | ||
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) | ||
[![CocoaPods](https://img.shields.io/cocoapods/v/Markup.svg)](https://cocoapods.org/pods/Markup) | ||
[![Twitter: @gonzalezreal](https://img.shields.io/badge/[email protected]?style=flat)](https://twitter.com/gonzalezreal) | ||
|
||
Markup generates attributed strings using a familiar markup syntax: | ||
|
||
|
@@ -70,23 +73,21 @@ Both the parsing and the rendering will take linear time to complete. | |
[This post](https://medium.com/makingtuenti/writing-a-lightweight-markup-parser-in-swift-5c8a5f0f793f) explains how Markup internally works, in case you are curious about the implementation. | ||
|
||
## Installation | ||
**Using CocoaPods** | ||
**Using the Swift Package Manager** | ||
|
||
Add `pod Markup` to your `Podfile` | ||
Add Markup as a dependency to your `Package.swift` file. For more information, see the [Swift Package Manager documentation](https://github.com/apple/swift-package-manager/tree/master/Documentation). | ||
|
||
``` | ||
.package(url: "https://github.com/gonzalezreal/Markup", from: "2.3") | ||
``` | ||
|
||
**Using Carthage** | ||
|
||
Add `github "gonzalezreal/Markup"` to your `Cartfile` | ||
|
||
**Using the Swift Package Manager** | ||
|
||
Add `Package(url: "https://github.com/gonzalezreal/Markup.git", majorVersion: 1)` to your `Package.swift` file. | ||
|
||
**Swift compatibility** | ||
**Using CocoaPods** | ||
|
||
- Version `2.2` supports `Swift 5.0` | ||
- Version `2.1` supports `Swift 4.2` | ||
- Version `2.0` supports `Swift 4` | ||
Add `pod Markup` to your `Podfile` | ||
|
||
## Help & Feedback | ||
- [Open an issue](https://github.com/gonzalezreal/Markup/issues/new) if you need help, if you found a bug, or if you want to discuss a feature request. | ||
|
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.
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.
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