Skip to content

Commit 81252ce

Browse files
author
Joe Newton
committed
Added support for macOS, tvOS, and watchOS. Added Carthage support. Restructured project hierarchy. Added additional test coverage. Added support for automated building and code coverage reporting
1 parent a56e51e commit 81252ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1619
-1107
lines changed

.gitignore

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,2 @@
1-
# OS X
2-
.DS_Store
3-
4-
# Xcode
5-
build/
6-
*.pbxuser
7-
!default.pbxuser
8-
*.mode1v3
9-
!default.mode1v3
10-
*.mode2v3
11-
!default.mode2v3
12-
*.perspectivev3
13-
!default.perspectivev3
14-
xcuserdata/
15-
*.xccheckout
16-
profile
17-
*.moved-aside
18-
DerivedData
19-
*.hmap
20-
*.ipa
21-
22-
# Bundler
23-
.bundle
24-
25-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
26-
# Carthage/Checkouts
27-
28-
Carthage/Build
29-
30-
# We recommend against adding the Pods directory to your .gitignore. However
31-
# you should judge for yourself, the pros and cons are mentioned at:
32-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
33-
#
34-
# Note: if you ignore the Pods directory, make sure to uncomment
35-
# `pod install` in .travis.yml
36-
#
37-
# Pods/
38-
39-
Example/KeyValueObservation.xcodeproj/project.xcworkspace
40-
IDEWorkspaceChecks.plist
41-
Example/Pods
1+
KeyValueObservation.xcodeproj/project.xcworkspace
2+
KeyValueObservation.xcodeproj/xcuserdata

.travis.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# references:
2-
# * https://www.objc.io/issues/6-build-tools/travis-ci/
3-
# * https://github.com/supermarin/xcpretty#usage
4-
5-
osx_image: xcode7.3
1+
os: osx
62
language: objective-c
7-
# cache: cocoapods
8-
# podfile: Example/Podfile
9-
# before_install:
10-
# - gem install cocoapods # Since Travis is not always on latest version
11-
# - pod install --project-directory=Example
3+
osx_image: xcode10.2
4+
xcode_project: KeyValueObservation.xcodeproj
5+
6+
before_install:
7+
- gem install cocoapods
8+
129
script:
13-
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/KeyValueObservation.xcworkspace -scheme KeyValueObservation-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14-
- pod lib lint
10+
- set -o pipefail && travis_retry xcodebuild -scheme "KeyValueObservation" -destination "platform=iOS Simulator,name=iPhone XS Max" -configuration Test ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
11+
- set -o pipefail && travis_retry xcodebuild -scheme "KeyValueObservation tvOS" -destination "platform=tvOS Simulator,name=Apple TV 4K" -configuration Test ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
12+
- set -o pipefail && travis_retry xcodebuild -scheme "KeyValueObservation watchOS" -destination "platform=watchOS Simulator,name=Apple Watch Series 4 - 44mm" -configuration Debug ONLY_ACTIVE_ARCH=YES
13+
- set -o pipefail && travis_retry xcodebuild -scheme "KeyValueObservation macOS" -destination "platform=macOS" -configuration Test ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
14+
- pod lib lint
15+
16+
after_success:
17+
- bash <(curl -s https://codecov.io/bash)

Example/KeyValueObservation.xcodeproj/project.pbxproj

Lines changed: 0 additions & 638 deletions
This file was deleted.

Example/KeyValueObservation.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

Example/KeyValueObservation/AppDelegate.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

Example/KeyValueObservation/AppDelegate.m

Lines changed: 0 additions & 46 deletions
This file was deleted.

Example/KeyValueObservation/Base.lproj/LaunchScreen.storyboard

Lines changed: 0 additions & 31 deletions
This file was deleted.

Example/KeyValueObservation/Base.lproj/Main.storyboard

Lines changed: 0 additions & 31 deletions
This file was deleted.

Example/KeyValueObservation/Images.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 0 additions & 98 deletions
This file was deleted.

Example/KeyValueObservation/KeyValueObservation-Info.plist

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)