Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit 2df3a70

Browse files
create sample app to test cocoapods integration (#125)
1 parent c73a960 commit 2df3a70

Some content is hidden

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

57 files changed

+1351
-29
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ osx_image: xcode8.3
33
script: sh build.sh /tmp/LayoutKit
44
after_success:
55
- bash <(curl -s https://codecov.io/bash) -D /tmp/LayoutKit
6+
before_install:
7+
- pod repo update

LayoutKit.podspec

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ Pod::Spec.new do |spec|
66
spec.authors = 'LinkedIn'
77
spec.summary = 'LayoutKit is a fast view layout library for iOS, macOS, and tvOS.'
88
spec.source = { :git => 'https://github.com/linkedin/LayoutKit.git', :tag => spec.version }
9-
spec.source_files = 'LayoutKit/**/*.swift'
9+
spec.source_files = 'Sources/**/*.swift'
1010

1111
spec.ios.deployment_target = '8.0'
1212
spec.ios.frameworks = 'Foundation', 'CoreGraphics', 'UIKit'
13-
spec.ios.exclude_files = 'LayoutKit/AppKitSupport.swift'
13+
spec.ios.exclude_files = 'Sources/AppKitSupport.swift'
1414

1515
spec.osx.deployment_target = '10.9'
1616
spec.osx.frameworks = 'Foundation', 'CoreGraphics', 'AppKit'
1717
spec.osx.exclude_files = [
18-
'LayoutKit/Internal/CGFloatExtension.swift',
19-
'LayoutKit/Internal/TextViewDefaultFont.swift',
20-
'LayoutKit/Internal/NSAttributedStringExtension.swift',
21-
'LayoutKit/Layouts/ButtonLayout.swift',
22-
'LayoutKit/Layouts/LabelLayout.swift',
23-
'LayoutKit/Layouts/TextViewLayout.swift',
24-
'LayoutKit/Text.swift',
25-
'LayoutKit/UIKitSupport.swift',
26-
'LayoutKit/Views/**'
18+
'Sources/Internal/CGFloatExtension.swift',
19+
'Sources/Internal/TextViewDefaultFont.swift',
20+
'Sources/Internal/NSAttributedStringExtension.swift',
21+
'Sources/Layouts/ButtonLayout.swift',
22+
'Sources/Layouts/LabelLayout.swift',
23+
'Sources/Layouts/TextViewLayout.swift',
24+
'Sources/Text.swift',
25+
'Sources/UIKitSupport.swift',
26+
'Sources/Views/**'
2727
]
2828

2929
spec.tvos.deployment_target = '9.0'
3030
spec.tvos.frameworks = 'Foundation', 'CoreGraphics', 'UIKit'
31-
spec.tvos.exclude_files = 'LayoutKit/AppKitSupport.swift'
31+
spec.tvos.exclude_files = 'Sources/AppKitSupport.swift'
3232

3333
end
3434

LayoutKit.xcodeproj/project.pbxproj

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@
546546
0BCB75EB1D8724800065E02A /* ViewRecycler.swift */,
547547
0BCB75EC1D8724800065E02A /* Views */,
548548
);
549-
path = LayoutKit;
549+
name = LayoutKit;
550+
path = Sources;
550551
sourceTree = "<group>";
551552
};
552553
0BCB756C1D8720110065E02A /* LayoutKitTests */ = {
@@ -1416,7 +1417,7 @@
14161417
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
14171418
GCC_WARN_UNUSED_FUNCTION = YES;
14181419
GCC_WARN_UNUSED_VARIABLE = YES;
1419-
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
1420+
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
14201421
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
14211422
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
14221423
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -1476,7 +1477,7 @@
14761477
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
14771478
GCC_WARN_UNUSED_FUNCTION = YES;
14781479
GCC_WARN_UNUSED_VARIABLE = YES;
1479-
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
1480+
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
14801481
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
14811482
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
14821483
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -1643,7 +1644,7 @@
16431644
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
16441645
GCC_WARN_UNUSED_FUNCTION = YES;
16451646
GCC_WARN_UNUSED_VARIABLE = YES;
1646-
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
1647+
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
16471648
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
16481649
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
16491650
MTL_ENABLE_DEBUG_INFO = YES;
@@ -1702,7 +1703,7 @@
17021703
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
17031704
GCC_WARN_UNUSED_FUNCTION = YES;
17041705
GCC_WARN_UNUSED_VARIABLE = YES;
1705-
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
1706+
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
17061707
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
17071708
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
17081709
MTL_ENABLE_DEBUG_INFO = NO;
@@ -1869,7 +1870,7 @@
18691870
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
18701871
GCC_WARN_UNUSED_FUNCTION = YES;
18711872
GCC_WARN_UNUSED_VARIABLE = YES;
1872-
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
1873+
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
18731874
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
18741875
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
18751876
MACOSX_DEPLOYMENT_TARGET = 10.11;
@@ -1929,7 +1930,7 @@
19291930
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
19301931
GCC_WARN_UNUSED_FUNCTION = YES;
19311932
GCC_WARN_UNUSED_VARIABLE = YES;
1932-
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
1933+
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
19331934
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
19341935
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
19351936
MACOSX_DEPLOYMENT_TARGET = 10.11;

Package.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2017 LinkedIn Corp.
2+
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
//
5+
// Unless required by applicable law or agreed to in writing,
6+
// software distributed under the License is distributed on an "AS IS" BASIS,
7+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8+
9+
// swift-tools-version:3.1
10+
11+
import PackageDescription
12+
13+
let package = Package(
14+
name: "LayoutKit"
15+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)