Skip to content

Commit 78ab4fb

Browse files
authored
Merge pull request #5 from ole/xcodeproj
Make Xcode project with macOS, iOS, tvOS, watchOS targets
2 parents e58bfae + bfc6194 commit 78ab4fb

12 files changed

+1434
-3
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.DS_Store
22
/.build
33
/Packages
4-
/*.xcodeproj

Configs/SortedArray.plist

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>0.3</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSHumanReadableCopyright</key>
24+
<string>Copyright © 2017 Ole Begemann. All rights reserved.</string>
25+
<key>NSPrincipalClass</key>
26+
<string></string>
27+
</dict>
28+
</plist>

Configs/SortedArrayTests.plist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
</dict>
24+
</plist>

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ For more info, see my accompanying [blog article](https://oleb.net/blog/2017/02/
1212

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

15+
## Supported Platforms
16+
17+
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.
18+
19+
I tested it on macOS, iOS, tvOS, and Linux.
20+
1521
## Usage
1622

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

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

2127
```swift
2228
// Package.swift
@@ -30,6 +36,20 @@ let package = Package(
3036
)
3137
```
3238

39+
### Carthage
40+
41+
Add this to your `Cartfile`:
42+
43+
```
44+
github "ole/SortedArray" ~> 0.3
45+
```
46+
47+
Integration via Carthage should work for macOS, iOS, tvOS, and watchOS targets.
48+
49+
### Manually
50+
51+
Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.
52+
3353
## Dependencies
3454

3555
None.

0 commit comments

Comments
 (0)