Skip to content

Commit

Permalink
Merge pull request #5 from ole/xcodeproj
Browse files Browse the repository at this point in the history
Make Xcode project with macOS, iOS, tvOS, watchOS targets
  • Loading branch information
ole authored Mar 26, 2017
2 parents e58bfae + bfc6194 commit 78ab4fb
Show file tree
Hide file tree
Showing 12 changed files with 1,434 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
28 changes: 28 additions & 0 deletions Configs/SortedArray.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<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>0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 Ole Begemann. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
24 changes: 24 additions & 0 deletions Configs/SortedArrayTests.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<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>1</string>
</dict>
</plist>
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ For more info, see my accompanying [blog article](https://oleb.net/blog/2017/02/

[![Build Status](https://travis-ci.org/ole/SortedArray.svg?branch=master)](https://travis-ci.org/ole/SortedArray)

## Supported Platforms

Since the code has no dependencies other than the Swift standard library (it doesn't even use Foundation), it should work on all platforms where Swift is available.

I tested it on macOS, iOS, tvOS, and Linux.

## Usage

Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.
### Swift Package Manager

If you want to try this out in a Swift Package Manager project, add this to your `Package.swift` file:
Add this to your `Package.swift` file:

```swift
// Package.swift
Expand All @@ -30,6 +36,20 @@ let package = Package(
)
```

### Carthage

Add this to your `Cartfile`:

```
github "ole/SortedArray" ~> 0.3
```

Integration via Carthage should work for macOS, iOS, tvOS, and watchOS targets.

### Manually

Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.

## Dependencies

None.
Expand Down
Loading

0 comments on commit 78ab4fb

Please sign in to comment.