From b8f30b7a553a24a24dd215bbb9f7ad8e1bec5bf2 Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Wed, 15 Feb 2017 10:53:34 +0000 Subject: [PATCH] Add basic podspec --- .../Pageboy-Example.xcodeproj/project.pbxproj | 67 ++++++++++--------- Pageboy.podspec | 21 ++++++ Pageboy.xcworkspace/contents.xcworkspacedata | 2 +- {Source => Sources}/Pageboy.podspec | 0 .../Pageboy.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 {Source => Sources}/Pageboy/Info.plist | 0 {Source => Sources}/Pageboy/Pageboy.h | 0 .../Pageboy/PageboyControllerManagement.swift | 0 .../Pageboy/PageboyScrollDetection.swift | 0 .../Pageboy/PageboyViewController.swift | 2 +- .../Utilities/PageViewControllerUtils.swift | 0 {Source => Sources}/PageboyTests/Info.plist | 0 .../PageboyTests/PageboyTests.swift | 0 14 files changed, 57 insertions(+), 35 deletions(-) create mode 100644 Pageboy.podspec rename {Source => Sources}/Pageboy.podspec (100%) rename {Source => Sources}/Pageboy.xcodeproj/project.pbxproj (100%) rename {Source => Sources}/Pageboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {Source => Sources}/Pageboy/Info.plist (100%) rename {Source => Sources}/Pageboy/Pageboy.h (100%) rename {Source => Sources}/Pageboy/PageboyControllerManagement.swift (100%) rename {Source => Sources}/Pageboy/PageboyScrollDetection.swift (100%) rename {Source => Sources}/Pageboy/PageboyViewController.swift (99%) rename {Source => Sources}/Pageboy/Utilities/PageViewControllerUtils.swift (100%) rename {Source => Sources}/PageboyTests/Info.plist (100%) rename {Source => Sources}/PageboyTests/PageboyTests.swift (100%) diff --git a/Example/Pageboy-Example.xcodeproj/project.pbxproj b/Example/Pageboy-Example.xcodeproj/project.pbxproj index d4d4f9e..eae444d 100644 --- a/Example/Pageboy-Example.xcodeproj/project.pbxproj +++ b/Example/Pageboy-Example.xcodeproj/project.pbxproj @@ -12,29 +12,29 @@ D623B1E71E1D32D700527F3D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D623B1E51E1D32D700527F3D /* Main.storyboard */; }; D623B1E91E1D32D700527F3D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D623B1E81E1D32D700527F3D /* Assets.xcassets */; }; D623B1EC1E1D32D700527F3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D623B1EA1E1D32D700527F3D /* LaunchScreen.storyboard */; }; - D6E73A6C1E51F7C400A8D5A5 /* Pageboy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 46EED5F31E4554C000C6B537 /* Pageboy.framework */; }; - D6E73A6D1E51F7C400A8D5A5 /* Pageboy.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 46EED5F31E4554C000C6B537 /* Pageboy.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + D681E3331E546A90007C08F5 /* Pageboy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D681E3241E546A7D007C08F5 /* Pageboy.framework */; }; + D681E3341E546A90007C08F5 /* Pageboy.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D681E3241E546A7D007C08F5 /* Pageboy.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; D6ECCEC61E51B6FB00E9D5B3 /* ChildViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6ECCEC51E51B6FB00E9D5B3 /* ChildViewController.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 46EED5F21E4554C000C6B537 /* PBXContainerItemProxy */ = { + D681E3231E546A7D007C08F5 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 46EED5ED1E4554C000C6B537 /* Pageboy.xcodeproj */; + containerPortal = D681E31E1E546A7D007C08F5 /* Pageboy.xcodeproj */; proxyType = 2; remoteGlobalIDString = D623B1B71E1D0C6A00527F3D; remoteInfo = Pageboy; }; - 46EED5F41E4554C000C6B537 /* PBXContainerItemProxy */ = { + D681E3251E546A7D007C08F5 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 46EED5ED1E4554C000C6B537 /* Pageboy.xcodeproj */; + containerPortal = D681E31E1E546A7D007C08F5 /* Pageboy.xcodeproj */; proxyType = 2; remoteGlobalIDString = D623B1C01E1D0C6B00527F3D; remoteInfo = PageboyTests; }; - D6E73A6E1E51F7C400A8D5A5 /* PBXContainerItemProxy */ = { + D681E3351E546A90007C08F5 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 46EED5ED1E4554C000C6B537 /* Pageboy.xcodeproj */; + containerPortal = D681E31E1E546A7D007C08F5 /* Pageboy.xcodeproj */; proxyType = 1; remoteGlobalIDString = D623B1B61E1D0C6A00527F3D; remoteInfo = Pageboy; @@ -48,7 +48,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - D6E73A6D1E51F7C400A8D5A5 /* Pageboy.framework in Embed Frameworks */, + D681E3341E546A90007C08F5 /* Pageboy.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -56,7 +56,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 46EED5ED1E4554C000C6B537 /* Pageboy.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pageboy.xcodeproj; path = ../Source/Pageboy.xcodeproj; sourceTree = ""; }; D623B1DE1E1D32D700527F3D /* Pageboy-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Pageboy-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; D623B1E11E1D32D700527F3D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; D623B1E31E1D32D700527F3D /* PageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageViewController.swift; sourceTree = ""; }; @@ -64,6 +63,7 @@ D623B1E81E1D32D700527F3D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; D623B1EB1E1D32D700527F3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; D623B1ED1E1D32D700527F3D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D681E31E1E546A7D007C08F5 /* Pageboy.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pageboy.xcodeproj; path = ../Sources/Pageboy.xcodeproj; sourceTree = ""; }; D6ECCEC51E51B6FB00E9D5B3 /* ChildViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChildViewController.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -72,26 +72,17 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D6E73A6C1E51F7C400A8D5A5 /* Pageboy.framework in Frameworks */, + D681E3331E546A90007C08F5 /* Pageboy.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 46EED5EE1E4554C000C6B537 /* Products */ = { - isa = PBXGroup; - children = ( - 46EED5F31E4554C000C6B537 /* Pageboy.framework */, - 46EED5F51E4554C000C6B537 /* PageboyTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; D623B1D51E1D32D700527F3D = { isa = PBXGroup; children = ( - 46EED5ED1E4554C000C6B537 /* Pageboy.xcodeproj */, + D681E31E1E546A7D007C08F5 /* Pageboy.xcodeproj */, D623B1E01E1D32D700527F3D /* Pageboy-Example */, D623B1DF1E1D32D700527F3D /* Products */, ); @@ -119,6 +110,15 @@ path = "Pageboy-Example"; sourceTree = ""; }; + D681E31F1E546A7D007C08F5 /* Products */ = { + isa = PBXGroup; + children = ( + D681E3241E546A7D007C08F5 /* Pageboy.framework */, + D681E3261E546A7D007C08F5 /* PageboyTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -134,7 +134,7 @@ buildRules = ( ); dependencies = ( - D6E73A6F1E51F7C400A8D5A5 /* PBXTargetDependency */, + D681E3361E546A90007C08F5 /* PBXTargetDependency */, ); name = "Pageboy-Example"; productName = "Pageboy-Example"; @@ -153,7 +153,8 @@ TargetAttributes = { D623B1DD1E1D32D700527F3D = { CreatedOnToolsVersion = 8.2; - ProvisioningStyle = Manual; + DevelopmentTeam = 6GVCVGN5W5; + ProvisioningStyle = Automatic; }; }; }; @@ -170,8 +171,8 @@ projectDirPath = ""; projectReferences = ( { - ProductGroup = 46EED5EE1E4554C000C6B537 /* Products */; - ProjectRef = 46EED5ED1E4554C000C6B537 /* Pageboy.xcodeproj */; + ProductGroup = D681E31F1E546A7D007C08F5 /* Products */; + ProjectRef = D681E31E1E546A7D007C08F5 /* Pageboy.xcodeproj */; }, ); projectRoot = ""; @@ -182,18 +183,18 @@ /* End PBXProject section */ /* Begin PBXReferenceProxy section */ - 46EED5F31E4554C000C6B537 /* Pageboy.framework */ = { + D681E3241E546A7D007C08F5 /* Pageboy.framework */ = { isa = PBXReferenceProxy; fileType = wrapper.framework; path = Pageboy.framework; - remoteRef = 46EED5F21E4554C000C6B537 /* PBXContainerItemProxy */; + remoteRef = D681E3231E546A7D007C08F5 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 46EED5F51E4554C000C6B537 /* PageboyTests.xctest */ = { + D681E3261E546A7D007C08F5 /* PageboyTests.xctest */ = { isa = PBXReferenceProxy; fileType = wrapper.cfbundle; path = PageboyTests.xctest; - remoteRef = 46EED5F41E4554C000C6B537 /* PBXContainerItemProxy */; + remoteRef = D681E3251E546A7D007C08F5 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ @@ -225,10 +226,10 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - D6E73A6F1E51F7C400A8D5A5 /* PBXTargetDependency */ = { + D681E3361E546A90007C08F5 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = Pageboy; - targetProxy = D6E73A6E1E51F7C400A8D5A5 /* PBXContainerItemProxy */; + targetProxy = D681E3351E546A90007C08F5 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -349,7 +350,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = 6GVCVGN5W5; INFOPLIST_FILE = "Pageboy-Example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.msapsford.Pageboy-Example"; @@ -366,7 +367,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = 6GVCVGN5W5; INFOPLIST_FILE = "Pageboy-Example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.msapsford.Pageboy-Example"; diff --git a/Pageboy.podspec b/Pageboy.podspec new file mode 100644 index 0000000..fbedd3f --- /dev/null +++ b/Pageboy.podspec @@ -0,0 +1,21 @@ +Pod::Spec.new do |s| + + s.name = "Pageboy" + s.platform = :ios, "9.0" + s.requires_arc = true + + s.version = "0.4.0" + s.summary = "UIPageViewController done properly." + s.description = <<-DESC + TODO + DESC + + s.homepage = "https://github.com/MerrickSapsford/Pageboy" + s.license = "MIT" + s.author = { "Merrick Sapsford" => "merrick@sapsford.tech" } + s.social_media_url = "http://twitter.com/MerrickSapsford" + + s.source = { :git => "https://github.com/MerrickSapsford/Pageboy.git", :tag => s.version.to_s } + s.source_files = "Sources/Pageboy/**/*.{h,m,swift}" + +end diff --git a/Pageboy.xcworkspace/contents.xcworkspacedata b/Pageboy.xcworkspace/contents.xcworkspacedata index ab5dd25..00ccfc8 100644 --- a/Pageboy.xcworkspace/contents.xcworkspacedata +++ b/Pageboy.xcworkspace/contents.xcworkspacedata @@ -5,6 +5,6 @@ location = "group:Example/Pageboy-Example.xcodeproj"> + location = "group:Sources/Pageboy.xcodeproj"> diff --git a/Source/Pageboy.podspec b/Sources/Pageboy.podspec similarity index 100% rename from Source/Pageboy.podspec rename to Sources/Pageboy.podspec diff --git a/Source/Pageboy.xcodeproj/project.pbxproj b/Sources/Pageboy.xcodeproj/project.pbxproj similarity index 100% rename from Source/Pageboy.xcodeproj/project.pbxproj rename to Sources/Pageboy.xcodeproj/project.pbxproj diff --git a/Source/Pageboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Sources/Pageboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Source/Pageboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Sources/Pageboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Source/Pageboy/Info.plist b/Sources/Pageboy/Info.plist similarity index 100% rename from Source/Pageboy/Info.plist rename to Sources/Pageboy/Info.plist diff --git a/Source/Pageboy/Pageboy.h b/Sources/Pageboy/Pageboy.h similarity index 100% rename from Source/Pageboy/Pageboy.h rename to Sources/Pageboy/Pageboy.h diff --git a/Source/Pageboy/PageboyControllerManagement.swift b/Sources/Pageboy/PageboyControllerManagement.swift similarity index 100% rename from Source/Pageboy/PageboyControllerManagement.swift rename to Sources/Pageboy/PageboyControllerManagement.swift diff --git a/Source/Pageboy/PageboyScrollDetection.swift b/Sources/Pageboy/PageboyScrollDetection.swift similarity index 100% rename from Source/Pageboy/PageboyScrollDetection.swift rename to Sources/Pageboy/PageboyScrollDetection.swift diff --git a/Source/Pageboy/PageboyViewController.swift b/Sources/Pageboy/PageboyViewController.swift similarity index 99% rename from Source/Pageboy/PageboyViewController.swift rename to Sources/Pageboy/PageboyViewController.swift index a78f253..cc8a82b 100644 --- a/Source/Pageboy/PageboyViewController.swift +++ b/Sources/Pageboy/PageboyViewController.swift @@ -281,7 +281,7 @@ internal extension PageboyViewController { self.pageViewController = pageViewController self.view.addSubview(pageViewController.view) - self.view.sendSubview(toBack: pageViewController.view) + self.view.sendSubview(toBack: pageViewController.view) pageViewController.didMove(toParentViewController: self) pageViewController.scrollView?.delegate = self diff --git a/Source/Pageboy/Utilities/PageViewControllerUtils.swift b/Sources/Pageboy/Utilities/PageViewControllerUtils.swift similarity index 100% rename from Source/Pageboy/Utilities/PageViewControllerUtils.swift rename to Sources/Pageboy/Utilities/PageViewControllerUtils.swift diff --git a/Source/PageboyTests/Info.plist b/Sources/PageboyTests/Info.plist similarity index 100% rename from Source/PageboyTests/Info.plist rename to Sources/PageboyTests/Info.plist diff --git a/Source/PageboyTests/PageboyTests.swift b/Sources/PageboyTests/PageboyTests.swift similarity index 100% rename from Source/PageboyTests/PageboyTests.swift rename to Sources/PageboyTests/PageboyTests.swift