Skip to content

Commit cb86e1c

Browse files
authored
Merge pull request #77 from layoutBox/update_license_and_cocoapod
Update Cocoapod to 1.5 and change the license to MIT
2 parents 782bf55 + 122826d commit cb86e1c

File tree

15 files changed

+63
-82
lines changed

15 files changed

+63
-82
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ Carthage/Checkouts
2121
/.buckconfig.local
2222
/.buckd
2323
/gentest/test.html
24-
.buckversion
24+
.buckversion
25+
26+
fastlane/report.xml
27+
fastlane/test_output

Example/FlexLayoutSample.xcodeproj/project.pbxproj

-16
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@
351351
DF1F2A181F17D11700BA1B97 /* Resources */,
352352
DF1F2A1B1F17D11700BA1B97 /* Embed Frameworks */,
353353
DF1F2A1C1F17D11700BA1B97 /* [CP] Embed Pods Frameworks */,
354-
DF1F2A1D1F17D11700BA1B97 /* [CP] Copy Pods Resources */,
355354
DF1F2A1E1F17D11700BA1B97 /* Run Swiftlint */,
356355
);
357356
buildRules = (
@@ -445,21 +444,6 @@
445444
shellScript = "\"${SRCROOT}/../Pods/Target Support Files/Pods-FlexLayoutSample/Pods-FlexLayoutSample-frameworks.sh\"\n";
446445
showEnvVarsInLog = 0;
447446
};
448-
DF1F2A1D1F17D11700BA1B97 /* [CP] Copy Pods Resources */ = {
449-
isa = PBXShellScriptBuildPhase;
450-
buildActionMask = 2147483647;
451-
files = (
452-
);
453-
inputPaths = (
454-
);
455-
name = "[CP] Copy Pods Resources";
456-
outputPaths = (
457-
);
458-
runOnlyForDeploymentPostprocessing = 0;
459-
shellPath = /bin/sh;
460-
shellScript = "\"${SRCROOT}/../Pods/Target Support Files/Pods-FlexLayoutSample/Pods-FlexLayoutSample-resources.sh\"\n";
461-
showEnvVarsInLog = 0;
462-
};
463447
DF1F2A1E1F17D11700BA1B97 /* Run Swiftlint */ = {
464448
isa = PBXShellScriptBuildPhase;
465449
buildActionMask = 2147483647;

Example/FlexLayoutSample/UI/Examples/Example1/Example1View.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Example1View: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
let view1 = BasicView(text: "View 1")
2627
let view2 = BasicView(text: "View 2")

Example/FlexLayoutSample/UI/Examples/Intro/IntroView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class IntroView: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
let imageView = UIImageView(image: UIImage(named: "flexlayout-logo"))
2627

Example/FlexLayoutSample/UI/Examples/YogaExampleA/YogaExampleAView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class YogaExampleAView: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
// Yoga's C Example
2627
rootFlexContainer.flex.direction(.row).padding(20).define { (flex) in

Example/FlexLayoutSample/UI/Examples/YogaExampleB/YogaExampleBView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class YogaExampleBView: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
let imageView = UIView()
2627
imageView.backgroundColor = .flexLayoutColor

Example/FlexLayoutSample/UI/Examples/YogaExampleC/YogaExampleCView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class YogaExampleCView: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
let label = UIView()
2627
label.backgroundColor = .black

Example/FlexLayoutSample/UI/Examples/YogaExampleD/YogaExampleDView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class YogaExampleDView: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
let imageView = UIView()
2627
imageView.backgroundColor = .flexLayoutColor

Example/FlexLayoutSample/UI/Examples/YogaExampleE/YogaExampleEView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class YogaExampleEView: UIView {
2121

2222
init() {
2323
super.init(frame: .zero)
24+
backgroundColor = .white
2425

2526
let imageView = UIView()
2627
imageView.backgroundColor = .flexLayoutColor

FlexLayout.xcodeproj/project.pbxproj

-16
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@
306306
6AA61EBD9B5B3C3BFCBC353F /* [CP] Check Pods Manifest.lock */,
307307
24DA375F1EF843C500D1AB2F /* Sources */,
308308
24DA37601EF843C500D1AB2F /* Frameworks */,
309-
6CAD7AF75EFAC45BB7600E90 /* [CP] Copy Pods Resources */,
310309
AE3D984F700B529A3E1CA66E /* [CP] Embed Pods Frameworks */,
311310
);
312311
buildRules = (
@@ -388,21 +387,6 @@
388387
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
389388
showEnvVarsInLog = 0;
390389
};
391-
6CAD7AF75EFAC45BB7600E90 /* [CP] Copy Pods Resources */ = {
392-
isa = PBXShellScriptBuildPhase;
393-
buildActionMask = 2147483647;
394-
files = (
395-
);
396-
inputPaths = (
397-
);
398-
name = "[CP] Copy Pods Resources";
399-
outputPaths = (
400-
);
401-
runOnlyForDeploymentPostprocessing = 0;
402-
shellPath = /bin/sh;
403-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FlexLayoutTests/Pods-FlexLayoutTests-resources.sh\"\n";
404-
showEnvVarsInLog = 0;
405-
};
406390
AE3D984F700B529A3E1CA66E /* [CP] Embed Pods Frameworks */ = {
407391
isa = PBXShellScriptBuildPhase;
408392
buildActionMask = 2147483647;

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://rubygems.org'
22
gem 'synx'
3-
gem 'cocoapods', '~> 1.3.1'
3+
gem 'cocoapods', '~> 1.5.0'
44
gem 'jazzy'
55
gem 'fastlane'

Gemfile.lock

+23-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (2.3.6)
4+
CFPropertyList (3.0.0)
55
activesupport (4.2.10)
66
i18n (~> 0.7)
77
minitest (~> 5.1)
@@ -13,31 +13,31 @@ GEM
1313
babosa (1.0.2)
1414
claide (1.0.2)
1515
clamp (0.6.5)
16-
cocoapods (1.3.1)
16+
cocoapods (1.5.0)
1717
activesupport (>= 4.0.2, < 5)
1818
claide (>= 1.0.2, < 2.0)
19-
cocoapods-core (= 1.3.1)
20-
cocoapods-deintegrate (>= 1.0.1, < 2.0)
21-
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)
2222
cocoapods-plugins (>= 1.0.0, < 2.0)
2323
cocoapods-search (>= 1.0.0, < 2.0)
2424
cocoapods-stats (>= 1.0.0, < 2.0)
25-
cocoapods-trunk (>= 1.2.0, < 2.0)
25+
cocoapods-trunk (>= 1.3.0, < 2.0)
2626
cocoapods-try (>= 1.1.0, < 2.0)
2727
colored2 (~> 3.1)
2828
escape (~> 0.0.4)
2929
fourflusher (~> 2.0.1)
3030
gh_inspector (~> 1.0)
31-
molinillo (~> 0.5.7)
31+
molinillo (~> 0.6.5)
3232
nap (~> 1.0)
3333
ruby-macho (~> 1.1)
34-
xcodeproj (>= 1.5.1, < 2.0)
35-
cocoapods-core (1.3.1)
34+
xcodeproj (>= 1.5.7, < 2.0)
35+
cocoapods-core (1.5.0)
3636
activesupport (>= 4.0.2, < 6)
3737
fuzzy_match (~> 2.0.4)
3838
nap (~> 1.0)
39-
cocoapods-deintegrate (1.0.1)
40-
cocoapods-downloader (1.1.3)
39+
cocoapods-deintegrate (1.0.2)
40+
cocoapods-downloader (1.2.0)
4141
cocoapods-plugins (1.0.0)
4242
nap
4343
cocoapods-search (1.0.0)
@@ -51,6 +51,7 @@ GEM
5151
colorize (0.8.1)
5252
commander-fastlane (4.4.6)
5353
highline (~> 1.7.2)
54+
concurrent-ruby (1.0.5)
5455
declarative (0.0.10)
5556
declarative-option (0.1.0)
5657
domain_name (0.5.20170404)
@@ -103,7 +104,7 @@ GEM
103104
ffi (1.9.18)
104105
fourflusher (2.0.1)
105106
fuzzy_match (2.0.4)
106-
gh_inspector (1.1.2)
107+
gh_inspector (1.1.3)
107108
google-api-client (0.13.6)
108109
addressable (~> 2.5, >= 2.5.1)
109110
googleauth (~> 0.5)
@@ -123,7 +124,8 @@ GEM
123124
http-cookie (1.0.3)
124125
domain_name (~> 0.5)
125126
httpclient (2.8.3)
126-
i18n (0.8.6)
127+
i18n (0.9.5)
128+
concurrent-ruby (~> 1.0)
127129
jazzy (0.8.3)
128130
cocoapods (~> 1.0)
129131
mustache (~> 0.99)
@@ -145,13 +147,13 @@ GEM
145147
mime-types-data (~> 3.2015)
146148
mime-types-data (3.2016.0521)
147149
mini_magick (4.5.1)
148-
minitest (5.10.3)
149-
molinillo (0.5.7)
150+
minitest (5.11.3)
151+
molinillo (0.6.5)
150152
multi_json (1.13.1)
151153
multi_xml (0.6.0)
152154
multipart-post (2.0.0)
153155
mustache (0.99.8)
154-
nanaimo (0.2.3)
156+
nanaimo (0.2.5)
155157
nap (1.1.0)
156158
netrc (0.11.0)
157159
open4 (1.3.4)
@@ -195,7 +197,7 @@ GEM
195197
tty-screen (0.6.4)
196198
tty-spinner (0.8.0)
197199
tty-cursor (>= 0.5.0)
198-
tzinfo (1.2.3)
200+
tzinfo (1.2.5)
199201
thread_safe (~> 0.1)
200202
uber (0.1.0)
201203
unf (0.1.4)
@@ -205,12 +207,12 @@ GEM
205207
word_wrap (1.0.0)
206208
xcinvoke (0.3.0)
207209
liferaft (~> 0.0.6)
208-
xcodeproj (1.5.6)
209-
CFPropertyList (~> 2.3.3)
210+
xcodeproj (1.5.7)
211+
CFPropertyList (>= 2.3.3, < 4.0)
210212
atomos (~> 0.1.2)
211213
claide (>= 1.0.2, < 2.0)
212214
colored2 (~> 3.1)
213-
nanaimo (~> 0.2.3)
215+
nanaimo (~> 0.2.4)
214216
xcpretty (0.2.6)
215217
rouge (~> 1.8)
216218
xcpretty-travis-formatter (1.0.0)
@@ -220,7 +222,7 @@ PLATFORMS
220222
ruby
221223

222224
DEPENDENCIES
223-
cocoapods (~> 1.3.1)
225+
cocoapods (~> 1.5.0)
224226
fastlane
225227
jazzy
226228
synx

LICENSE

+17-25
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
BSD 3-Clause License
1+
MIT License
22

3-
Copyright (c) 2017, Luc Dion
4-
All rights reserved.
3+
Copyright (c) 2017 Luc Dion
54

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
811

9-
* Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1114

12-
* Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
15-
16-
* Neither the name of the copyright holder nor the names of its
17-
contributors may be used to endorse or promote products derived from
18-
this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Podfile.lock

+10-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@ DEPENDENCIES:
1414
- Reveal-SDK (~> 10)
1515
- SwiftLint
1616

17+
SPEC REPOS:
18+
https://github.com/CocoaPods/Specs.git:
19+
- Nimble
20+
- PinLayout
21+
- Quick
22+
- Reveal-SDK
23+
- SwiftLint
24+
1725
EXTERNAL SOURCES:
1826
FlexLayout:
19-
:path: ./
27+
:path: "./"
2028

2129
SPEC CHECKSUMS:
2230
FlexLayout: f201d829cc720412fa7bbb0e548d239b01b24724
@@ -28,4 +36,4 @@ SPEC CHECKSUMS:
2836

2937
PODFILE CHECKSUM: 17e434c5ea0e4a80a0221e86e99c1962e47f6a3d
3038

31-
COCOAPODS: 1.4.0
39+
COCOAPODS: 1.5.0

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ The FlexLayout's Example App exposes some usage example of FlexLayout.
10521052
<br/>
10531053

10541054
## Flexbox interesting external links
1055+
* [Introduction to Flexbox using Yoga](https://yogalayout.com/)
10551056
* [THE flexbox CSS reference: A Complete Guide to Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
10561057
* [Raywenderlich interesting Yoga tutorial](https://www.raywenderlich.com/161413/yoga-tutorial-using-cross-platform-layout-engine)
10571058
* [An Introduction to Flexbox CSS](https://slicejack.com/introduction-to-flexbox/)

0 commit comments

Comments
 (0)