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

create sample app to test cocoapods integration #125

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ osx_image: xcode8.3
script: sh build.sh /tmp/LayoutKit
after_success:
- bash <(curl -s https://codecov.io/bash) -D /tmp/LayoutKit
before_install:
- pod repo update
2 changes: 1 addition & 1 deletion LayoutKit.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='6.0' target-platform='ios'>
<playground version='6.0' target-platform='ios' display-mode='raw'>
<pages>
<page name='Introduction'/>
<page name='Animation'/>
Expand Down
24 changes: 12 additions & 12 deletions LayoutKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ Pod::Spec.new do |spec|
spec.authors = 'LinkedIn'
spec.summary = 'LayoutKit is a fast view layout library for iOS, macOS, and tvOS.'
spec.source = { :git => 'https://github.com/linkedin/LayoutKit.git', :tag => spec.version }
spec.source_files = 'LayoutKit/**/*.swift'
spec.source_files = 'Sources/**/*.swift'

spec.ios.deployment_target = '8.0'
spec.ios.frameworks = 'Foundation', 'CoreGraphics', 'UIKit'
spec.ios.exclude_files = 'LayoutKit/AppKitSupport.swift'
spec.ios.exclude_files = 'Sources/AppKitSupport.swift'

spec.osx.deployment_target = '10.9'
spec.osx.frameworks = 'Foundation', 'CoreGraphics', 'AppKit'
spec.osx.exclude_files = [
'LayoutKit/Internal/CGFloatExtension.swift',
'LayoutKit/Internal/TextViewDefaultFont.swift',
'LayoutKit/Internal/NSAttributedStringExtension.swift',
'LayoutKit/Layouts/ButtonLayout.swift',
'LayoutKit/Layouts/LabelLayout.swift',
'LayoutKit/Layouts/TextViewLayout.swift',
'LayoutKit/Text.swift',
'LayoutKit/UIKitSupport.swift',
'LayoutKit/Views/**'
'Sources/Internal/CGFloatExtension.swift',
'Sources/Internal/TextViewDefaultFont.swift',
'Sources/Internal/NSAttributedStringExtension.swift',
'Sources/Layouts/ButtonLayout.swift',
'Sources/Layouts/LabelLayout.swift',
'Sources/Layouts/TextViewLayout.swift',
'Sources/Text.swift',
'Sources/UIKitSupport.swift',
'Sources/Views/**'
]

spec.tvos.deployment_target = '9.0'
spec.tvos.frameworks = 'Foundation', 'CoreGraphics', 'UIKit'
spec.tvos.exclude_files = 'LayoutKit/AppKitSupport.swift'
spec.tvos.exclude_files = 'Sources/AppKitSupport.swift'

end

15 changes: 8 additions & 7 deletions LayoutKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@
0BCB75EB1D8724800065E02A /* ViewRecycler.swift */,
0BCB75EC1D8724800065E02A /* Views */,
);
path = LayoutKit;
name = LayoutKit;
path = Sources;
sourceTree = "<group>";
};
0BCB756C1D8720110065E02A /* LayoutKitTests */ = {
Expand Down Expand Up @@ -1416,7 +1417,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand Down Expand Up @@ -1476,7 +1477,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand Down Expand Up @@ -1643,7 +1644,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
Expand Down Expand Up @@ -1702,7 +1703,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
Expand Down Expand Up @@ -1869,7 +1870,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
Expand Down Expand Up @@ -1929,7 +1930,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "$(SRCROOT)/LayoutKit/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
Expand Down
15 changes: 15 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2017 LinkedIn Corp.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

// swift-tools-version:3.1

import PackageDescription

let package = Package(
name: "LayoutKit"
)
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.
Loading