Skip to content

Commit

Permalink
Merge pull request #123 from kazuhiro4949/feature/spm
Browse files Browse the repository at this point in the history
supporting SPM
  • Loading branch information
kazuhiro4949 authored May 29, 2020
2 parents 21fc974 + b40bbf3 commit fddf25e
Show file tree
Hide file tree
Showing 30 changed files with 63 additions and 47 deletions.
16 changes: 16 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// swift-tools-version:5.1
import PackageDescription

let package = Package(
name: "PagingKit",
platforms: [
.iOS(.v9)
],
products: [
.library(name: "PagingKit", targets: ["PagingKit"])
],
targets: [
.target(name: "PagingKit", path: "Sources")
]
)

8 changes: 4 additions & 4 deletions PagingKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

Pod::Spec.new do |s|
s.name = "PagingKit"
s.version = "1.12.0"
s.version = "1.14.0"
s.summary = "PagingKit provides customisable menu & content UI."
s.swift_version = '5.0'
s.swift_version = '5.1'

s.description = <<-DESC
There are many libaries providing "Paging UI" which has menu and content area. They are convinience but not customizable because your app have to make compatible with the library about layout and design. When It doesn't fit the libaries, you need to fork the library or find another one.
Expand All @@ -23,7 +23,7 @@ Pod::Spec.new do |s|
s.author = { "Kazuhiro Hayashi" => "[email protected]" }
s.source = { :git => "https://github.com/kazuhiro4949/PagingKit.git", :tag => s.version.to_s }

s.ios.deployment_target = '8.0'
s.ios.deployment_target = '9.0'

s.source_files = "PagingKit/**/*.{h,m,swift}"
s.source_files = "Sources/**/*.{h,m,swift}"
end
82 changes: 41 additions & 41 deletions PagingKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,37 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2B28FBB723EFAF90007101B9 /* UnitTestHostApplication */ = {
2B003CC9248155EB00B0AF19 /* Sources */ = {
isa = PBXGroup;
children = (
2BD0FB25232F82B900BA3894 /* Menu Cells */,
6EC140BE1F0940F40054B514 /* PagingKit.h */,
6EC140BF1F0940F40054B514 /* PagingKit-Info.plist */,
6EC140D51F09410F0054B514 /* PagingMenuViewController.swift */,
6EC140D61F09410F0054B514 /* PagingContentViewController.swift */,
2BE185F523AB7AAE00B457ED /* ContentAppearanceHandler.swift */,
2B668C5E1F1395BE008A0694 /* PagingMenuView.swift */,
2B283F041FA8A2BD00DA2FE4 /* Array+NSLayoutConstraint.swift */,
2BC16A331FFE35AA00CB884A /* PagingKitProxy.swift */,
);
path = Sources;
sourceTree = "<group>";
};
2B003CCA2481561A00B0AF19 /* Tests */ = {
isa = PBXGroup;
children = (
2BE185F723AB7B2600B457ED /* ContentAppearanceHandlerTests.swift */,
2B4F03421F8FA0230015FCC8 /* PagingMenuViewControllerTests.swift */,
2B4F03481F8FB9950015FCC8 /* PagingContentViewControllerTests.swift */,
2B4F03441F8FA0760015FCC8 /* PagingMenuViewTests.swift */,
2B4F03461F8FAE5D0015FCC8 /* PagingMenuViewCellStub.xib */,
2B463D251F958C0D00F241E1 /* PagingMenuFocusView.xib */,
6EC140CB1F0940F40054B514 /* Info.plist */,
);
path = Tests;
sourceTree = "<group>";
};
2B28FBB723EFAF90007101B9 /* TestsHostApplication */ = {
isa = PBXGroup;
children = (
2B28FBB823EFAF90007101B9 /* AppDelegate.swift */,
Expand All @@ -119,7 +149,7 @@
2B28FBC323EFAF93007101B9 /* LaunchScreen.storyboard */,
2B28FBC623EFAF93007101B9 /* Info.plist */,
);
path = UnitTestHostApplication;
path = TestsHostApplication;
sourceTree = "<group>";
};
2BD0FB25232F82B900BA3894 /* Menu Cells */ = {
Expand Down Expand Up @@ -152,9 +182,9 @@
6EC140B11F0940F40054B514 = {
isa = PBXGroup;
children = (
6EC140BD1F0940F40054B514 /* PagingKit */,
6EC140C81F0940F40054B514 /* PagingKitTests */,
2B28FBB723EFAF90007101B9 /* UnitTestHostApplication */,
2B003CCA2481561A00B0AF19 /* Tests */,
2B003CC9248155EB00B0AF19 /* Sources */,
2B28FBB723EFAF90007101B9 /* TestsHostApplication */,
6EC140BC1F0940F40054B514 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -169,36 +199,6 @@
name = Products;
sourceTree = "<group>";
};
6EC140BD1F0940F40054B514 /* PagingKit */ = {
isa = PBXGroup;
children = (
2BD0FB25232F82B900BA3894 /* Menu Cells */,
6EC140BE1F0940F40054B514 /* PagingKit.h */,
6EC140BF1F0940F40054B514 /* PagingKit-Info.plist */,
6EC140D51F09410F0054B514 /* PagingMenuViewController.swift */,
6EC140D61F09410F0054B514 /* PagingContentViewController.swift */,
2BE185F523AB7AAE00B457ED /* ContentAppearanceHandler.swift */,
2B668C5E1F1395BE008A0694 /* PagingMenuView.swift */,
2B283F041FA8A2BD00DA2FE4 /* Array+NSLayoutConstraint.swift */,
2BC16A331FFE35AA00CB884A /* PagingKitProxy.swift */,
);
path = PagingKit;
sourceTree = "<group>";
};
6EC140C81F0940F40054B514 /* PagingKitTests */ = {
isa = PBXGroup;
children = (
2BE185F723AB7B2600B457ED /* ContentAppearanceHandlerTests.swift */,
2B4F03421F8FA0230015FCC8 /* PagingMenuViewControllerTests.swift */,
2B4F03481F8FB9950015FCC8 /* PagingContentViewControllerTests.swift */,
2B4F03441F8FA0760015FCC8 /* PagingMenuViewTests.swift */,
2B4F03461F8FAE5D0015FCC8 /* PagingMenuViewCellStub.xib */,
2B463D251F958C0D00F241E1 /* PagingMenuFocusView.xib */,
6EC140CB1F0940F40054B514 /* Info.plist */,
);
path = PagingKitTests;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -429,7 +429,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = R33Y42SDDR;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = UnitTestHostApplication/Info.plist;
INFOPLIST_FILE = TestsHostApplication/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
Expand All @@ -451,7 +451,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = R33Y42SDDR;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = UnitTestHostApplication/Info.plist;
INFOPLIST_FILE = TestsHostApplication/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_FAST_MATH = YES;
Expand Down Expand Up @@ -590,7 +590,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "PagingKit/PagingKit-Info.plist";
INFOPLIST_FILE = "Sources/PagingKit-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand All @@ -616,7 +616,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "PagingKit/PagingKit-Info.plist";
INFOPLIST_FILE = "Sources/PagingKit-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand All @@ -636,7 +636,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = PagingKitTests/Info.plist;
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = kazuhiro.hayashi.PagingKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -654,7 +654,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = PagingKitTests/Info.plist;
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = kazuhiro.hayashi.PagingKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import Foundation
import UIKit

extension Array where Element == NSLayoutConstraint.Attribute {
/// anchor same attributes between fromView and toView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import Foundation
import UIKit

protocol ContentsAppearanceHandlerProtocol {
var contentsDequeueHandler: (() -> [UIViewController?]?)? { get set }
Expand Down
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 comments on commit fddf25e

Please sign in to comment.