Skip to content

Commit 8bd4f93

Browse files
authored
Merge pull request #131 from mirego/add_osx_support
PinLayout now support macOS
2 parents ff8afef + 7303358 commit 8bd4f93

Some content is hidden

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

58 files changed

+1915
-788
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ data/
88

99
Pods/
1010

11-
docs/1.2
11+
docs/1.2
12+
fastlane/README.md
13+
fastlane/report.xml
14+
fastlane/test_output

.travis.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,13 @@
11
language: objective-c
22
osx_image: xcode9.2
3+
cache: bundler
34

4-
#env:
5-
#matrix:
6-
#- SCHEME=PinLayout SDK=iphonesimulator11.2
7-
#- SCHEME=PinLayout SDK=iphonesimulator10.3
8-
#- SCHEME=PinLayoutSample SDK=iphonesimulator11.2
9-
#- SCHEME=PinLayoutTVOS SDK=appletvsimulator11.0
10-
11-
before_install:
12-
# - brew outdated xctool || brew upgrade xctool;
13-
- gem install xcpretty-travis-formatter;
14-
- gem install cocoapods --no-document --quiet;
15-
# - pod repo update --silent;
5+
install:
6+
- bundle install # --deployment # to cache vendor/bundle
167
- pod install --repo-update;
178

189
script:
19-
- set -o pipefail && bundle exec fastlane travis
20-
#- |
21-
#if [[ $SCHEME = "PinLayout" ]]; then
22-
#set -o pipefail && xcodebuild -workspace PinLayout.xcworkspace -scheme "$SCHEME" -sdk $SDK -destination 'platform=iOS Simulator,name=iPhone 6' -enableCodeCoverage YES build test | xcpretty -f `xcpretty-travis-formatter`
23-
# bundle exec fastlane travis
24-
#fi
25-
26-
#if [[ $SCHEME = "PinLayoutSample" ]]; then
27-
# set -o pipefail && xcodebuild -workspace PinLayout.xcworkspace -scheme "$SCHEME" -sdk $SDK -destination 'platform=iOS Simulator,name=iPhone 6' build | xcpretty -f `xcpretty-travis-formatter`
28-
#fi
29-
30-
#if [[ $SCHEME = "PinLayoutTVOS" ]]; then
31-
# set -o pipefail && xcodebuild -workspace PinLayout.xcworkspace -scheme "$SCHEME" -sdk $SDK -destination 'platform=tvOS Simulator,name=Apple TV 1080p' build | xcpretty -f `xcpretty-travis-formatter`
32-
#fi
10+
- set -o pipefail && bundle exec fastlane ios travis && bundle exec fastlane mac travis
3311

3412
after_success:
35-
# - |
36-
# if [[ $SCHEME = "PinLayout" ]]; then
3713
bash <(curl -s https://codecov.io/bash) -J 'PinLayout' -J 'PinLayoutTests'
38-
# fi

Example/PinLayoutSample.xcodeproj/project.pbxproj

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@
195195
isa = PBXGroup;
196196
children = (
197197
2439CC241E665858003326FB /* PinLayout.framework */,
198-
2439CC261E665858003326FB /* PinLayoutTests.xctest */,
199198
24DA374F1EF7F90700D1AB2F /* PinLayoutTVOS.framework */,
199+
2439CC261E665858003326FB /* PinLayoutTests.xctest */,
200200
);
201201
name = Products;
202202
sourceTree = "<group>";
@@ -433,7 +433,6 @@
433433
249EFE3D1E64FAFE00165E39 /* Resources */,
434434
2460ACCE1E64FD9D000BCAC5 /* Embed Frameworks */,
435435
5D3C4568AFC08267110D9971 /* [CP] Embed Pods Frameworks */,
436-
CCCCC7EE5AE16BA960D7DB4F /* [CP] Copy Pods Resources */,
437436
24E6547E1E68F88D00A72A8B /* Run Swiftlint */,
438437
2468130D1F8D013600462E53 /* Embed App Extensions */,
439438
);
@@ -558,21 +557,6 @@
558557
shellScript = "\"${SRCROOT}/../Pods/Target Support Files/Pods-PinLayoutSample/Pods-PinLayoutSample-frameworks.sh\"\n";
559558
showEnvVarsInLog = 0;
560559
};
561-
CCCCC7EE5AE16BA960D7DB4F /* [CP] Copy Pods Resources */ = {
562-
isa = PBXShellScriptBuildPhase;
563-
buildActionMask = 2147483647;
564-
files = (
565-
);
566-
inputPaths = (
567-
);
568-
name = "[CP] Copy Pods Resources";
569-
outputPaths = (
570-
);
571-
runOnlyForDeploymentPostprocessing = 0;
572-
shellPath = /bin/sh;
573-
shellScript = "\"${SRCROOT}/../Pods/Target Support Files/Pods-PinLayoutSample/Pods-PinLayoutSample-resources.sh\"\n";
574-
showEnvVarsInLog = 0;
575-
};
576560
DDE1EE639E8C959FEBC41FDC /* [CP] Check Pods Manifest.lock */ = {
577561
isa = PBXShellScriptBuildPhase;
578562
buildActionMask = 2147483647;
@@ -780,7 +764,7 @@
780764
PRODUCT_NAME = "$(TARGET_NAME)";
781765
SWIFT_OBJC_BRIDGING_HEADER = "PinLayoutSample/UI/Examples/PinLayoutSample-Bridging-Header.h";
782766
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
783-
SWIFT_VERSION = 3.0;
767+
SWIFT_VERSION = 4.0;
784768
};
785769
name = Debug;
786770
};
@@ -797,7 +781,7 @@
797781
PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutSample;
798782
PRODUCT_NAME = "$(TARGET_NAME)";
799783
SWIFT_OBJC_BRIDGING_HEADER = "PinLayoutSample/UI/Examples/PinLayoutSample-Bridging-Header.h";
800-
SWIFT_VERSION = 3.0;
784+
SWIFT_VERSION = 4.0;
801785
};
802786
name = Release;
803787
};

Example/PinLayoutSample.xcodeproj/xcshareddata/xcschemes/PinLayoutSample.xcscheme

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
3332
skipped = "NO">
3433
<BuildableReference
3534
BuildableIdentifier = "primary"
3635
BlueprintIdentifier = "249EFE821E64FB4C00165E39"
37-
BuildableName = "PinLayoutTests.xctest"
38-
BlueprintName = "PinLayoutTests"
36+
BuildableName = "PinLayoutTests-iOS.xctest"
37+
BlueprintName = "PinLayoutTests-iOS"
3938
ReferencedContainer = "container:../PinLayout.xcodeproj">
4039
</BuildableReference>
4140
</TestableReference>
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source 'https://rubygems.org'
22
gem 'synx'
3-
gem 'cocoapods'
3+
gem 'cocoapods', '~> 1.5.0'
44
gem 'jazzy', '0.9'
55
gem 'fastlane'
6+
gem 'xcpretty-travis-formatter'

Gemfile.lock

Lines changed: 54 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (2.3.5)
4+
CFPropertyList (3.0.0)
55
activesupport (4.2.10)
66
i18n (~> 0.7)
77
minitest (~> 5.1)
88
thread_safe (~> 0.3, >= 0.3.4)
99
tzinfo (~> 1.1)
1010
addressable (2.5.2)
1111
public_suffix (>= 2.0.2, < 4.0)
12+
atomos (0.1.2)
1213
babosa (1.0.2)
1314
claide (1.0.2)
1415
clamp (0.6.5)
15-
cocoapods (1.3.1)
16+
cocoapods (1.5.0)
1617
activesupport (>= 4.0.2, < 5)
1718
claide (>= 1.0.2, < 2.0)
18-
cocoapods-core (= 1.3.1)
19-
cocoapods-deintegrate (>= 1.0.1, < 2.0)
20-
cocoapods-downloader (>= 1.1.3, < 2.0)
19+
cocoapods-core (= 1.5.0)
20+
cocoapods-deintegrate (>= 1.0.2, < 2.0)
21+
cocoapods-downloader (>= 1.2.0, < 2.0)
2122
cocoapods-plugins (>= 1.0.0, < 2.0)
2223
cocoapods-search (>= 1.0.0, < 2.0)
2324
cocoapods-stats (>= 1.0.0, < 2.0)
24-
cocoapods-trunk (>= 1.2.0, < 2.0)
25+
cocoapods-trunk (>= 1.3.0, < 2.0)
2526
cocoapods-try (>= 1.1.0, < 2.0)
2627
colored2 (~> 3.1)
2728
escape (~> 0.0.4)
2829
fourflusher (~> 2.0.1)
2930
gh_inspector (~> 1.0)
30-
molinillo (~> 0.5.7)
31+
molinillo (~> 0.6.5)
3132
nap (~> 1.0)
3233
ruby-macho (~> 1.1)
33-
xcodeproj (>= 1.5.1, < 2.0)
34-
cocoapods-core (1.3.1)
34+
xcodeproj (>= 1.5.7, < 2.0)
35+
cocoapods-core (1.5.0)
3536
activesupport (>= 4.0.2, < 6)
3637
fuzzy_match (~> 2.0.4)
3738
nap (~> 1.0)
38-
cocoapods-deintegrate (1.0.1)
39-
cocoapods-downloader (1.1.3)
39+
cocoapods-deintegrate (1.0.2)
40+
cocoapods-downloader (1.2.0)
4041
cocoapods-plugins (1.0.0)
4142
nap
4243
cocoapods-search (1.0.0)
@@ -48,38 +49,40 @@ GEM
4849
colored (1.2)
4950
colored2 (3.1.2)
5051
colorize (0.8.1)
51-
commander-fastlane (4.4.5)
52+
commander-fastlane (4.4.6)
5253
highline (~> 1.7.2)
5354
concurrent-ruby (1.0.5)
5455
declarative (0.0.10)
5556
declarative-option (0.1.0)
5657
domain_name (0.5.20170404)
5758
unf (>= 0.0.5, < 1.0.0)
58-
dotenv (2.2.1)
59+
dotenv (2.2.2)
60+
emoji_regex (0.1.1)
5961
escape (0.0.4)
60-
excon (0.59.0)
61-
faraday (0.13.1)
62+
excon (0.62.0)
63+
faraday (0.14.0)
6264
multipart-post (>= 1.2, < 3)
6365
faraday-cookie_jar (0.0.6)
6466
faraday (>= 0.7.4)
6567
http-cookie (~> 1.0.0)
6668
faraday_middleware (0.12.2)
6769
faraday (>= 0.7.4, < 1.0)
68-
fastimage (2.1.0)
69-
fastlane (2.65.0)
70-
CFPropertyList (>= 2.3, < 3.0.0)
70+
fastimage (2.1.1)
71+
fastlane (2.91.0)
72+
CFPropertyList (>= 2.3, < 4.0.0)
7173
addressable (>= 2.3, < 3.0.0)
7274
babosa (>= 1.0.2, < 2.0.0)
7375
bundler (>= 1.12.0, < 2.0.0)
7476
colored
75-
commander-fastlane (>= 4.4.5, < 5.0.0)
77+
commander-fastlane (>= 4.4.6, < 5.0.0)
7678
dotenv (>= 2.1.1, < 3.0.0)
79+
emoji_regex (~> 0.1)
7780
excon (>= 0.45.0, < 1.0.0)
7881
faraday (~> 0.9)
7982
faraday-cookie_jar (~> 0.0.6)
8083
faraday_middleware (~> 0.9)
8184
fastimage (>= 2.1.0, < 3.0.0)
82-
gh_inspector (>= 1.0.1, < 2.0.0)
85+
gh_inspector (>= 1.1.2, < 2.0.0)
8386
google-api-client (>= 0.13.1, < 0.14.0)
8487
highline (>= 1.7.2, < 2.0.0)
8588
json (< 3.0.0)
@@ -91,18 +94,20 @@ GEM
9194
public_suffix (~> 2.0.0)
9295
rubyzip (>= 1.1.0, < 2.0.0)
9396
security (= 0.1.3)
94-
slack-notifier (>= 1.3, < 2.0.0)
97+
simctl (~> 1.6.3)
98+
slack-notifier (>= 2.0.0, < 3.0.0)
9599
terminal-notifier (>= 1.6.2, < 2.0.0)
96100
terminal-table (>= 1.4.5, < 2.0.0)
97-
tty-screen (~> 0.5.0)
101+
tty-screen (>= 0.6.3, < 1.0.0)
102+
tty-spinner (>= 0.8.0, < 1.0.0)
98103
word_wrap (~> 1.0.0)
99-
xcodeproj (>= 1.5.2, < 2.0.0)
104+
xcodeproj (>= 1.5.7, < 2.0.0)
100105
xcpretty (>= 0.2.4, < 1.0.0)
101106
xcpretty-travis-formatter (>= 0.0.3)
102107
ffi (1.9.18)
103108
fourflusher (2.0.1)
104109
fuzzy_match (2.0.4)
105-
gh_inspector (1.0.3)
110+
gh_inspector (1.1.3)
106111
google-api-client (0.13.6)
107112
addressable (~> 2.5, >= 2.5.1)
108113
googleauth (~> 0.5)
@@ -118,11 +123,11 @@ GEM
118123
multi_json (~> 1.11)
119124
os (~> 0.9)
120125
signet (~> 0.7)
121-
highline (1.7.8)
126+
highline (1.7.10)
122127
http-cookie (1.0.3)
123128
domain_name (~> 0.5)
124129
httpclient (2.8.3)
125-
i18n (0.9.1)
130+
i18n (0.9.5)
126131
concurrent-ruby (~> 1.0)
127132
jazzy (0.9.0)
128133
cocoapods (~> 1.0)
@@ -145,18 +150,19 @@ GEM
145150
mime-types-data (~> 3.2015)
146151
mime-types-data (3.2016.0521)
147152
mini_magick (4.5.1)
148-
minitest (5.10.3)
149-
molinillo (0.5.7)
150-
multi_json (1.12.2)
153+
minitest (5.11.3)
154+
molinillo (0.6.5)
155+
multi_json (1.13.1)
151156
multi_xml (0.6.0)
152157
multipart-post (2.0.0)
153158
mustache (0.99.8)
154-
nanaimo (0.2.3)
159+
nanaimo (0.2.5)
155160
nap (1.1.0)
161+
naturally (2.1.0)
156162
netrc (0.11.0)
157163
open4 (1.3.4)
158164
os (0.9.6)
159-
plist (3.3.0)
165+
plist (3.4.0)
160166
public_suffix (2.0.5)
161167
rb-fsevent (0.10.2)
162168
rb-inotify (0.9.10)
@@ -181,7 +187,10 @@ GEM
181187
faraday (~> 0.9)
182188
jwt (>= 1.5, < 3.0)
183189
multi_json (~> 1.10)
184-
slack-notifier (1.5.1)
190+
simctl (1.6.4)
191+
CFPropertyList
192+
naturally
193+
slack-notifier (2.3.2)
185194
sqlite3 (1.3.13)
186195
synx (0.2.1)
187196
clamp (~> 0.6)
@@ -191,22 +200,26 @@ GEM
191200
terminal-table (1.8.0)
192201
unicode-display_width (~> 1.1, >= 1.1.1)
193202
thread_safe (0.3.6)
194-
tty-screen (0.5.1)
195-
tzinfo (1.2.4)
203+
tty-cursor (0.5.0)
204+
tty-screen (0.6.4)
205+
tty-spinner (0.8.0)
206+
tty-cursor (>= 0.5.0)
207+
tzinfo (1.2.5)
196208
thread_safe (~> 0.1)
197209
uber (0.1.0)
198210
unf (0.1.4)
199211
unf_ext
200-
unf_ext (0.0.7.4)
212+
unf_ext (0.0.7.5)
201213
unicode-display_width (1.3.0)
202214
word_wrap (1.0.0)
203215
xcinvoke (0.3.0)
204216
liferaft (~> 0.0.6)
205-
xcodeproj (1.5.3)
206-
CFPropertyList (~> 2.3.3)
217+
xcodeproj (1.5.7)
218+
CFPropertyList (>= 2.3.3, < 4.0)
219+
atomos (~> 0.1.2)
207220
claide (>= 1.0.2, < 2.0)
208221
colored2 (~> 3.1)
209-
nanaimo (~> 0.2.3)
222+
nanaimo (~> 0.2.4)
210223
xcpretty (0.2.6)
211224
rouge (~> 1.8)
212225
xcpretty-travis-formatter (1.0.0)
@@ -216,10 +229,11 @@ PLATFORMS
216229
ruby
217230

218231
DEPENDENCIES
219-
cocoapods
232+
cocoapods (~> 1.5.0)
220233
fastlane
221234
jazzy (= 0.9)
222235
synx
236+
xcpretty-travis-formatter
223237

224238
BUNDLED WITH
225-
1.13.6
239+
1.16.1

0 commit comments

Comments
 (0)