Skip to content

Commit e2e3dd2

Browse files
committed
Add CocoaPod spec and watchOS/tvOS targets
1 parent a399d46 commit e2e3dd2

12 files changed

+612
-58
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Carthage/Build
2+
gh-pages

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44

55
language: objective-c
66
osx_image: xcode7.2
7-
before_script:
8-
- brew update
97
script: xcrun xcodebuild -project BTree.xcodeproj -scheme BTree-Mac test
108
after_success: bash <(curl -s https://codecov.io/bash)

BTree.podspec

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = 'BTree'
3+
spec.version = '1.0.0'
4+
spec.osx.deployment_target = "10.9"
5+
spec.ios.deployment_target = "8.0"
6+
spec.tvos.deployment_target = "9.0"
7+
spec.watchos.deployment_target = "2.0"
8+
spec.license = { :type => 'MIT', :file => 'LICENCE.md' }
9+
spec.summary = 'In-memory b-trees and ordered collections in Swift'
10+
spec.homepage = 'https://github.com/lorentey/BTree'
11+
spec.author = 'Károly Lőrentey'
12+
spec.source = { :git => 'https://github.com/lorentey/BTree.git', :tag => 'v1.0.0' }
13+
spec.source_files = 'Sources/*.swift'
14+
spec.social_media_url = 'https://twitter.com/lorentey'
15+
spec.documentation_url = 'http://lorentey.github.io/BTree/api/'
16+
end

BTree.xcodeproj/project.pbxproj

+468-41
Large diffs are not rendered by default.

BTree.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BTree.xcodeproj/xcshareddata/xcschemes/BTree-Mac.xcscheme

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "0730"
4-
version = "1.3">
4+
version = "1.8">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
@@ -16,7 +16,7 @@
1616
<BuildableReference
1717
BuildableIdentifier = "primary"
1818
BlueprintIdentifier = "BB9AE43A1C1FCC35002C5D63"
19-
BuildableName = "TreeCollections.framework"
19+
BuildableName = "BTree.framework"
2020
BlueprintName = "Mac"
2121
ReferencedContainer = "container:BTree.xcodeproj">
2222
</BuildableReference>
@@ -35,7 +35,7 @@
3535
<BuildableReference
3636
BuildableIdentifier = "primary"
3737
BlueprintIdentifier = "BB9AE44B1C1FCE0B002C5D63"
38-
BuildableName = "TreeCollectionsTests.xctest"
38+
BuildableName = "BTreeTests.xctest"
3939
BlueprintName = "Tests-Mac"
4040
ReferencedContainer = "container:BTree.xcodeproj">
4141
</BuildableReference>
@@ -45,7 +45,7 @@
4545
<BuildableReference
4646
BuildableIdentifier = "primary"
4747
BlueprintIdentifier = "BB9AE43A1C1FCC35002C5D63"
48-
BuildableName = "TreeCollections.framework"
48+
BuildableName = "BTree.framework"
4949
BlueprintName = "Mac"
5050
ReferencedContainer = "container:BTree.xcodeproj">
5151
</BuildableReference>
@@ -67,7 +67,7 @@
6767
<BuildableReference
6868
BuildableIdentifier = "primary"
6969
BlueprintIdentifier = "BB9AE43A1C1FCC35002C5D63"
70-
BuildableName = "TreeCollections.framework"
70+
BuildableName = "BTree.framework"
7171
BlueprintName = "Mac"
7272
ReferencedContainer = "container:BTree.xcodeproj">
7373
</BuildableReference>
@@ -85,7 +85,7 @@
8585
<BuildableReference
8686
BuildableIdentifier = "primary"
8787
BlueprintIdentifier = "BB9AE43A1C1FCC35002C5D63"
88-
BuildableName = "TreeCollections.framework"
88+
BuildableName = "BTree.framework"
8989
BlueprintName = "Mac"
9090
ReferencedContainer = "container:BTree.xcodeproj">
9191
</BuildableReference>

BTree.xcodeproj/xcshareddata/xcschemes/BTree-iOS.xcscheme

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "0730"
4-
version = "1.3">
4+
version = "1.8">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
@@ -16,7 +16,7 @@
1616
<BuildableReference
1717
BuildableIdentifier = "primary"
1818
BlueprintIdentifier = "BB54D0AE1C1F0357008A462B"
19-
BuildableName = "TreeCollections.framework"
19+
BuildableName = "BTree.framework"
2020
BlueprintName = "iOS"
2121
ReferencedContainer = "container:BTree.xcodeproj">
2222
</BuildableReference>
@@ -34,7 +34,7 @@
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
3636
BlueprintIdentifier = "BB54D0B81C1F0357008A462B"
37-
BuildableName = "TreeCollectionsTests.xctest"
37+
BuildableName = "BTreeTests.xctest"
3838
BlueprintName = "Tests-iOS"
3939
ReferencedContainer = "container:BTree.xcodeproj">
4040
</BuildableReference>
@@ -44,7 +44,7 @@
4444
<BuildableReference
4545
BuildableIdentifier = "primary"
4646
BlueprintIdentifier = "BB54D0AE1C1F0357008A462B"
47-
BuildableName = "TreeCollections.framework"
47+
BuildableName = "BTree.framework"
4848
BlueprintName = "iOS"
4949
ReferencedContainer = "container:BTree.xcodeproj">
5050
</BuildableReference>
@@ -66,7 +66,7 @@
6666
<BuildableReference
6767
BuildableIdentifier = "primary"
6868
BlueprintIdentifier = "BB54D0AE1C1F0357008A462B"
69-
BuildableName = "TreeCollections.framework"
69+
BuildableName = "BTree.framework"
7070
BlueprintName = "iOS"
7171
ReferencedContainer = "container:BTree.xcodeproj">
7272
</BuildableReference>
@@ -84,7 +84,7 @@
8484
<BuildableReference
8585
BuildableIdentifier = "primary"
8686
BlueprintIdentifier = "BB54D0AE1C1F0357008A462B"
87-
BuildableName = "TreeCollections.framework"
87+
BuildableName = "BTree.framework"
8888
BlueprintName = "iOS"
8989
ReferencedContainer = "container:BTree.xcodeproj">
9090
</BuildableReference>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0720"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "BB8FE9981C7C8CDC0051268F"
18+
BuildableName = "watchOS.framework"
19+
BlueprintName = "watchOS"
20+
ReferencedContainer = "container:BTree.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<AdditionalOptions>
33+
</AdditionalOptions>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
launchStyle = "0"
40+
useCustomWorkingDirectory = "NO"
41+
ignoresPersistentStateOnLaunch = "NO"
42+
debugDocumentVersioning = "YES"
43+
debugServiceExtension = "internal"
44+
allowLocationSimulation = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "BB8FE9981C7C8CDC0051268F"
49+
BuildableName = "watchOS.framework"
50+
BlueprintName = "watchOS"
51+
ReferencedContainer = "container:BTree.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
54+
<AdditionalOptions>
55+
</AdditionalOptions>
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "BB8FE9981C7C8CDC0051268F"
67+
BuildableName = "watchOS.framework"
68+
BlueprintName = "watchOS"
69+
ReferencedContainer = "container:BTree.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
</ProfileAction>
73+
<AnalyzeAction
74+
buildConfiguration = "Debug">
75+
</AnalyzeAction>
76+
<ArchiveAction
77+
buildConfiguration = "Release"
78+
revealArchiveInOrganizer = "YES">
79+
</ArchiveAction>
80+
</Scheme>

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# In-Memory B-Trees and Ordered Collections in Swift
22

3+
[![Swift 2.1](https://img.shields.io/badge/Swift-2.1-blue.svg)](https://developer.apple.com/swift/)
4+
[![Documented](https://img.shields.io/cocoapods/metrics/doc-percent/BTree.svg)](http://lorentey.github.io/BTree/api)
5+
[![License](https://img.shields.io/badge/licence-MIT-blue.svg)](http://cocoapods.org/pods/BTree)
6+
[![Platform](https://img.shields.io/cocoapods/p/BTree.svg)](http://cocoapods.org/pods/BTree)
7+
38
[![Build Status](https://travis-ci.org/lorentey/BTree.svg?branch=master)](https://travis-ci.org/lorentey/BTree)
4-
[![codecov.io](https://codecov.io/github/lorentey/BTree/coverage.svg?branch=master)](https://codecov.io/github/lorentey/BTree?branch=master)
9+
[![Code Coverage](https://codecov.io/github/lorentey/BTree/coverage.svg?branch=master)](https://codecov.io/github/lorentey/BTree?branch=master)
10+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/Carthage/Carthage)
11+
[![Version](https://img.shields.io/cocoapods/v/BTree.svg)](http://cocoapods.org/pods/BTree)
512

613
This project provides an efficient in-memory b-tree implementation in pure Swift, and several useful
714
collection types that use b-trees for their underlying storage.

Sources/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>$(VERSION_STRING)</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

generate-docs.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
module="BTree"
6+
scheme="BTree-Mac"
7+
8+
version="$(grep VERSION_STRING version.xcconfig | sed 's/^VERSION_STRING = //' | sed 's/ *$//')"
9+
tag="v$version"
10+
11+
jazzy \
12+
--clean \
13+
--author "Károly Lőrentey" \
14+
--author_url "https://twitter.com/lorentey" \
15+
--github_url "https://github.com/lorentey/$module" \
16+
--github-file-prefix "https://github.com/lorentey/$module/tree/$tag" \
17+
--module-version "$version" \
18+
--xcodebuild-arguments "-scheme,$scheme" \
19+
--module "$module" \
20+
--root-url "https://lorentey.github.io/$module/reference/" \
21+
--theme fullwidth \
22+
--output gh-pages/api \
23+
--swift-version 2.1.1

version.xcconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VERSION_STRING = 1.0.0
2+
BUILD_NUMBER = 1

0 commit comments

Comments
 (0)