From 0fc58a6d4fda4f0643d75cc21599405ed691c2be Mon Sep 17 00:00:00 2001 From: Mikhail Demidov Date: Fri, 3 Feb 2017 15:18:23 +0700 Subject: [PATCH] add podspec file --- Podfile | 12 +++ SegmentedControl.podspec | 19 +++++ .../project.pbxproj | 83 +++++++++++++++++-- 3 files changed, 108 insertions(+), 6 deletions(-) create mode 100644 Podfile create mode 100644 SegmentedControl.podspec diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..2332392 --- /dev/null +++ b/Podfile @@ -0,0 +1,12 @@ +project 'SegmentedControlExample.xcodeproj' + +# Uncomment the next line to define a global platform for your project +platform :ios, '8.0' + +target 'SegmentedControlExample' do + # Comment the next line if you're not using Swift and don't want to use dynamic frameworks + use_frameworks! + + pod 'SegmentedControl', :path => './' + +end diff --git a/SegmentedControl.podspec b/SegmentedControl.podspec new file mode 100644 index 0000000..2aa9ca6 --- /dev/null +++ b/SegmentedControl.podspec @@ -0,0 +1,19 @@ + +Pod::Spec.new do |s| + + s.name = "SegmentedControl" + s.version = "0.0.7" + s.summary = "Customizable segmented control" + s.source = { :git => "https://github.com/teambition/SegmentedControl.git", :tag => s.version.to_s } + s.license = { :type => "MIT", :file => "LICENSE.md" } + s.description = <<-DESC + A highly customizable segmented control for iOS applications. + DESC + + s.homepage = "https://github.com/teambition/SegmentedControl" + s.author = { "teambition" => "dev@teambition.com" } + s.platform = :ios, "8.0" + s.source_files = "SegmentedControl/**/*.{swift}" + s.requires_arc = true + +end diff --git a/SegmentedControlExample.xcodeproj/project.pbxproj b/SegmentedControlExample.xcodeproj/project.pbxproj index d8ecede..d874ebd 100644 --- a/SegmentedControlExample.xcodeproj/project.pbxproj +++ b/SegmentedControlExample.xcodeproj/project.pbxproj @@ -7,8 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - D341EB501D1A838400677EAF /* SegmentedControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D341EB4F1D1A838400677EAF /* SegmentedControl.framework */; }; - D341EB511D1A838400677EAF /* SegmentedControl.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D341EB4F1D1A838400677EAF /* SegmentedControl.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + AFD070824DB8031AAC3508EB /* Pods_SegmentedControlExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E17EC84F8210A896F2772204 /* Pods_SegmentedControlExample.framework */; }; D3E3B0E31C328316003EAA6E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3E3B0E21C328316003EAA6E /* AppDelegate.swift */; }; D3E3B0E51C328316003EAA6E /* ExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3E3B0E41C328316003EAA6E /* ExampleViewController.swift */; }; D3E3B0E81C328316003EAA6E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D3E3B0E61C328316003EAA6E /* Main.storyboard */; }; @@ -22,7 +21,6 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - D341EB511D1A838400677EAF /* SegmentedControl.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -30,13 +28,15 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - D341EB4F1D1A838400677EAF /* SegmentedControl.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = SegmentedControl.framework; path = "/Users/hongxin/Library/Developer/Xcode/DerivedData/SegmentedControl-fegllupftdbokageotnuxdmypufc/Build/Products/Debug-iphonesimulator/SegmentedControl.framework"; sourceTree = ""; }; + 0400EB0CD3016B1EED3458F7 /* Pods-SegmentedControlExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedControlExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample.debug.xcconfig"; sourceTree = ""; }; + 23BC1A68643CF65ABE2C79C9 /* Pods-SegmentedControlExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedControlExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample.release.xcconfig"; sourceTree = ""; }; D3E3B0DF1C328316003EAA6E /* SegmentedControlExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SegmentedControlExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; D3E3B0E21C328316003EAA6E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; D3E3B0E41C328316003EAA6E /* ExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleViewController.swift; sourceTree = ""; }; D3E3B0E71C328316003EAA6E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; D3E3B0E91C328316003EAA6E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; D3E3B0EE1C328316003EAA6E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E17EC84F8210A896F2772204 /* Pods_SegmentedControlExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SegmentedControlExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -44,19 +44,29 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D341EB501D1A838400677EAF /* SegmentedControl.framework in Frameworks */, + AFD070824DB8031AAC3508EB /* Pods_SegmentedControlExample.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 4AD62CD663D3483D16D85FCA /* Pods */ = { + isa = PBXGroup; + children = ( + 0400EB0CD3016B1EED3458F7 /* Pods-SegmentedControlExample.debug.xcconfig */, + 23BC1A68643CF65ABE2C79C9 /* Pods-SegmentedControlExample.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; D3E3B0D61C328316003EAA6E = { isa = PBXGroup; children = ( - D341EB4F1D1A838400677EAF /* SegmentedControl.framework */, D3E3B0E11C328316003EAA6E /* SegmentedControlExample */, D3E3B0E01C328316003EAA6E /* Products */, + 4AD62CD663D3483D16D85FCA /* Pods */, + FA8E170CD2B99042C093FD8C /* Frameworks */, ); sourceTree = ""; }; @@ -80,6 +90,14 @@ path = SegmentedControlExample; sourceTree = ""; }; + FA8E170CD2B99042C093FD8C /* Frameworks */ = { + isa = PBXGroup; + children = ( + E17EC84F8210A896F2772204 /* Pods_SegmentedControlExample.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -87,10 +105,13 @@ isa = PBXNativeTarget; buildConfigurationList = D3E3B0F11C328316003EAA6E /* Build configuration list for PBXNativeTarget "SegmentedControlExample" */; buildPhases = ( + 419442F0FDA4ED55C82148C7 /* [CP] Check Pods Manifest.lock */, D3E3B0DB1C328316003EAA6E /* Sources */, D3E3B0DC1C328316003EAA6E /* Frameworks */, D3E3B0DD1C328316003EAA6E /* Resources */, D341EB521D1A838400677EAF /* Embed Frameworks */, + 1E08377E0337854BD630DA7B /* [CP] Embed Pods Frameworks */, + 557C3072BCC0B78E6E305DBF /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -147,6 +168,54 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 1E08377E0337854BD630DA7B /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 419442F0FDA4ED55C82148C7 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../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"; + showEnvVarsInLog = 0; + }; + 557C3072BCC0B78E6E305DBF /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ D3E3B0DB1C328316003EAA6E /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -261,6 +330,7 @@ }; D3E3B0F21C328316003EAA6E /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 0400EB0CD3016B1EED3458F7 /* Pods-SegmentedControlExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SegmentedControlExample/Info.plist; @@ -273,6 +343,7 @@ }; D3E3B0F31C328316003EAA6E /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 23BC1A68643CF65ABE2C79C9 /* Pods-SegmentedControlExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SegmentedControlExample/Info.plist;