Skip to content

Commit 136fd31

Browse files
committed
Merge pull request #4 from loudnate/loudnate/cocoapods
CocoaPods support
2 parents 0c85e64 + cdf1351 commit 136fd31

39 files changed

+899
-438
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ Carthage
3030
# Note: if you ignore the Pods directory, make sure to uncomment
3131
# `pod install` in .travis.yml
3232
#
33-
Pods/
3433

35-
# Sensitive details about remote backup
36-
RemoteSettings.plist
34+
Pods/

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# references:
2+
# * http://www.objc.io/issue-6/travis-ci.html
3+
# * https://github.com/supermarin/xcpretty#usage
4+
5+
language: objective-c
6+
osx_image: xcode7.2
7+
cache: cocoapods
8+
podfile: Example/Podfile
9+
10+
# before_install:
11+
# - gem install cocoapods # Since Travis is not always on latest version
12+
# - pod install --project-directory=Example
13+
14+
script:
15+
- set -o pipefail && xcodebuild test -workspace Example/xDripG5.xcworkspace -scheme xDripG5-Example -sdk iphonesimulator -destination name="iPhone 6" ONLY_ACTIVE_ARCH=NO | xcpretty
16+
- pod lib lint

Example/Podfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source 'https://github.com/CocoaPods/Specs.git'
2+
use_frameworks!
3+
4+
target 'xDripG5_Example', :exclusive => true do
5+
pod "xDripG5", :path => "../"
6+
end
7+
8+
target 'xDripG5_Tests', :exclusive => true do
9+
pod "xDripG5", :path => "../"
10+
11+
12+
end

Example/Podfile.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
PODS:
2+
- RNCryptor (4.0.0)
3+
- xDripG5 (0.1.0):
4+
- RNCryptor (~> 4.0)
5+
6+
DEPENDENCIES:
7+
- xDripG5 (from `../`)
8+
9+
EXTERNAL SOURCES:
10+
xDripG5:
11+
:path: ../
12+
13+
SPEC CHECKSUMS:
14+
RNCryptor: 59d6483908115af5c12b884db23392024e52a5fe
15+
xDripG5: cb76b6fb53220157b724cb6eca625760d0974b0e
16+
17+
COCOAPODS: 0.39.0

Example/Tests/Info.plist

Lines changed: 24 additions & 0 deletions
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>

Example/Tests/Tests.swift

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import UIKit
2+
import XCTest
3+
import xDripG5
4+
5+
class Tests: XCTestCase {
6+
7+
override func setUp() {
8+
super.setUp()
9+
// Put setup code here. This method is called before the invocation of each test method in the class.
10+
}
11+
12+
override func tearDown() {
13+
// Put teardown code here. This method is called after the invocation of each test method in the class.
14+
super.tearDown()
15+
}
16+
17+
func testExample() {
18+
// This is an example of a functional test case.
19+
XCTAssert(true, "Pass")
20+
}
21+
22+
func testPerformanceExample() {
23+
// This is an example of a performance test case.
24+
self.measureBlock() {
25+
// Put the code you want to measure the time of here.
26+
}
27+
}
28+
29+
}

0 commit comments

Comments
 (0)