From ecc7a622515af00cd2fca0fb07eaac3cf7d18c06 Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Mon, 8 Dec 2014 22:23:14 +0100 Subject: [PATCH] Separate demo and framework --- .../AppIcon.appiconset/Contents.json | 0 .../AppIcon.appiconset/New icon-60@2x.png | Bin .../New icon-Small-40@2x.png | Bin .../AppIcon.appiconset/New icon-Small@2x.png | Bin .../LaunchImage.launchimage/Contents.json | 0 {demo => Demo/demo}/Info.plist | 0 {demo => Demo/demo}/Main.storyboard | 0 {demo => Demo/demo}/classes/AppDelegate.swift | 0 {demo => Demo/demo}/classes/FlatButton.swift | 0 .../demo}/classes/ViewController.swift | 1 + {demo => Demo/demo}/mugen.gif | Bin .../gifu-demo.xcodeproj}/project.pbxproj | 37 +-- .../contents.xcworkspacedata | 0 .../xcshareddata/gifu-demo.xccheckout | 53 --- .../xcschemes/xcschememanagement.plist | 27 -- gifu.xcodeproj/project.pbxproj | 307 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/xcschemes/gifu.xcscheme | 58 ++-- {source => gifu}/Gifu.swift | 0 {source => gifu}/ImageSourceHelpers.swift | 0 gifu/Info.plist | 26 ++ {source => gifu}/UIImageView+Gifu.swift | 0 22 files changed, 386 insertions(+), 130 deletions(-) rename {demo => Demo/demo}/Images.xcassets/AppIcon.appiconset/Contents.json (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/Images.xcassets/AppIcon.appiconset/New icon-60@2x.png (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/Images.xcassets/AppIcon.appiconset/New icon-Small-40@2x.png (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/Images.xcassets/AppIcon.appiconset/New icon-Small@2x.png (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/Images.xcassets/LaunchImage.launchimage/Contents.json (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/Info.plist (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/Main.storyboard (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/classes/AppDelegate.swift (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/classes/FlatButton.swift (100%) mode change 100644 => 100755 rename {demo => Demo/demo}/classes/ViewController.swift (98%) mode change 100644 => 100755 rename {demo => Demo/demo}/mugen.gif (100%) mode change 100644 => 100755 rename {gifu-demo.xcodeproj => Demo/gifu-demo.xcodeproj}/project.pbxproj (87%) mode change 100644 => 100755 rename {gifu-demo.xcodeproj => Demo/gifu-demo.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (100%) mode change 100644 => 100755 delete mode 100644 gifu-demo.xcodeproj/project.xcworkspace/xcshareddata/gifu-demo.xccheckout delete mode 100644 gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 gifu.xcodeproj/project.pbxproj create mode 100644 gifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/gifu-demo.xcscheme => gifu.xcodeproj/xcshareddata/xcschemes/gifu.xcscheme (64%) rename {source => gifu}/Gifu.swift (100%) mode change 100644 => 100755 rename {source => gifu}/ImageSourceHelpers.swift (100%) mode change 100644 => 100755 create mode 100644 gifu/Info.plist rename {source => gifu}/UIImageView+Gifu.swift (100%) mode change 100644 => 100755 diff --git a/demo/Images.xcassets/AppIcon.appiconset/Contents.json b/Demo/demo/Images.xcassets/AppIcon.appiconset/Contents.json old mode 100644 new mode 100755 similarity index 100% rename from demo/Images.xcassets/AppIcon.appiconset/Contents.json rename to Demo/demo/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/demo/Images.xcassets/AppIcon.appiconset/New icon-60@2x.png b/Demo/demo/Images.xcassets/AppIcon.appiconset/New icon-60@2x.png old mode 100644 new mode 100755 similarity index 100% rename from demo/Images.xcassets/AppIcon.appiconset/New icon-60@2x.png rename to Demo/demo/Images.xcassets/AppIcon.appiconset/New icon-60@2x.png diff --git a/demo/Images.xcassets/AppIcon.appiconset/New icon-Small-40@2x.png b/Demo/demo/Images.xcassets/AppIcon.appiconset/New icon-Small-40@2x.png old mode 100644 new mode 100755 similarity index 100% rename from demo/Images.xcassets/AppIcon.appiconset/New icon-Small-40@2x.png rename to Demo/demo/Images.xcassets/AppIcon.appiconset/New icon-Small-40@2x.png diff --git a/demo/Images.xcassets/AppIcon.appiconset/New icon-Small@2x.png b/Demo/demo/Images.xcassets/AppIcon.appiconset/New icon-Small@2x.png old mode 100644 new mode 100755 similarity index 100% rename from demo/Images.xcassets/AppIcon.appiconset/New icon-Small@2x.png rename to Demo/demo/Images.xcassets/AppIcon.appiconset/New icon-Small@2x.png diff --git a/demo/Images.xcassets/LaunchImage.launchimage/Contents.json b/Demo/demo/Images.xcassets/LaunchImage.launchimage/Contents.json old mode 100644 new mode 100755 similarity index 100% rename from demo/Images.xcassets/LaunchImage.launchimage/Contents.json rename to Demo/demo/Images.xcassets/LaunchImage.launchimage/Contents.json diff --git a/demo/Info.plist b/Demo/demo/Info.plist old mode 100644 new mode 100755 similarity index 100% rename from demo/Info.plist rename to Demo/demo/Info.plist diff --git a/demo/Main.storyboard b/Demo/demo/Main.storyboard old mode 100644 new mode 100755 similarity index 100% rename from demo/Main.storyboard rename to Demo/demo/Main.storyboard diff --git a/demo/classes/AppDelegate.swift b/Demo/demo/classes/AppDelegate.swift old mode 100644 new mode 100755 similarity index 100% rename from demo/classes/AppDelegate.swift rename to Demo/demo/classes/AppDelegate.swift diff --git a/demo/classes/FlatButton.swift b/Demo/demo/classes/FlatButton.swift old mode 100644 new mode 100755 similarity index 100% rename from demo/classes/FlatButton.swift rename to Demo/demo/classes/FlatButton.swift diff --git a/demo/classes/ViewController.swift b/Demo/demo/classes/ViewController.swift old mode 100644 new mode 100755 similarity index 98% rename from demo/classes/ViewController.swift rename to Demo/demo/classes/ViewController.swift index 5520dce..7199c8e --- a/demo/classes/ViewController.swift +++ b/Demo/demo/classes/ViewController.swift @@ -1,4 +1,5 @@ import UIKit +import gifu class ViewController: UIViewController { diff --git a/demo/mugen.gif b/Demo/demo/mugen.gif old mode 100644 new mode 100755 similarity index 100% rename from demo/mugen.gif rename to Demo/demo/mugen.gif diff --git a/gifu-demo.xcodeproj/project.pbxproj b/Demo/gifu-demo.xcodeproj/project.pbxproj old mode 100644 new mode 100755 similarity index 87% rename from gifu-demo.xcodeproj/project.pbxproj rename to Demo/gifu-demo.xcodeproj/project.pbxproj index 1afb566..fde5e67 --- a/gifu-demo.xcodeproj/project.pbxproj +++ b/Demo/gifu-demo.xcodeproj/project.pbxproj @@ -8,9 +8,6 @@ /* Begin PBXBuildFile section */ 9D25870819BCCB0F00A55A18 /* mugen.gif in Resources */ = {isa = PBXBuildFile; fileRef = 9D25870619BCCB0F00A55A18 /* mugen.gif */; }; - 9D25870C19BD16FC00A55A18 /* Gifu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D25870919BD16FC00A55A18 /* Gifu.swift */; }; - 9D25870D19BD16FC00A55A18 /* ImageSourceHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D25870A19BD16FC00A55A18 /* ImageSourceHelpers.swift */; }; - 9D25870E19BD16FC00A55A18 /* UIImageView+Gifu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D25870B19BD16FC00A55A18 /* UIImageView+Gifu.swift */; }; 9D98823D19BC69CA00B790C6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D98823C19BC69CA00B790C6 /* AppDelegate.swift */; }; 9D98823F19BC69CA00B790C6 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D98823E19BC69CA00B790C6 /* ViewController.swift */; }; 9D98824419BC69CA00B790C6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9D98824319BC69CA00B790C6 /* Images.xcassets */; }; @@ -18,12 +15,22 @@ 9D98826719BC874C00B790C6 /* FlatButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D98826619BC874C00B790C6 /* FlatButton.swift */; }; /* End PBXBuildFile section */ +/* Begin PBXCopyFilesBuildPhase section */ + 00B8C7331A364D4C00C188E7 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + /* Begin PBXFileReference section */ 9D25870519BCCB0F00A55A18 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 9D25870619BCCB0F00A55A18 /* mugen.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = mugen.gif; sourceTree = ""; }; - 9D25870919BD16FC00A55A18 /* Gifu.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Gifu.swift; sourceTree = ""; }; - 9D25870A19BD16FC00A55A18 /* ImageSourceHelpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageSourceHelpers.swift; sourceTree = ""; }; - 9D25870B19BD16FC00A55A18 /* UIImageView+Gifu.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIImageView+Gifu.swift"; sourceTree = ""; }; 9D98823719BC69CA00B790C6 /* gifu-demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "gifu-demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 9D98823C19BC69CA00B790C6 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = classes/AppDelegate.swift; sourceTree = ""; }; 9D98823E19BC69CA00B790C6 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = classes/ViewController.swift; sourceTree = ""; }; @@ -62,7 +69,6 @@ 9D98823919BC69CA00B790C6 /* gifu-demo */ = { isa = PBXGroup; children = ( - 9D98826119BC6A9700B790C6 /* Gifu */, 9D98823C19BC69CA00B790C6 /* AppDelegate.swift */, 9D98823E19BC69CA00B790C6 /* ViewController.swift */, 9D98826619BC874C00B790C6 /* FlatButton.swift */, @@ -83,17 +89,6 @@ name = "Supporting Files"; sourceTree = ""; }; - 9D98826119BC6A9700B790C6 /* Gifu */ = { - isa = PBXGroup; - children = ( - 9D25870919BD16FC00A55A18 /* Gifu.swift */, - 9D25870A19BD16FC00A55A18 /* ImageSourceHelpers.swift */, - 9D25870B19BD16FC00A55A18 /* UIImageView+Gifu.swift */, - ); - name = Gifu; - path = ../source; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -104,6 +99,7 @@ 9D98823319BC69CA00B790C6 /* Sources */, 9D98823419BC69CA00B790C6 /* Frameworks */, 9D98823519BC69CA00B790C6 /* Resources */, + 00B8C7331A364D4C00C188E7 /* Embed Frameworks */, ); buildRules = ( ); @@ -164,10 +160,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9D25870C19BD16FC00A55A18 /* Gifu.swift in Sources */, - 9D25870D19BD16FC00A55A18 /* ImageSourceHelpers.swift in Sources */, 9D98823F19BC69CA00B790C6 /* ViewController.swift in Sources */, - 9D25870E19BD16FC00A55A18 /* UIImageView+Gifu.swift in Sources */, 9D98823D19BC69CA00B790C6 /* AppDelegate.swift in Sources */, 9D98826719BC874C00B790C6 /* FlatButton.swift in Sources */, ); @@ -258,6 +251,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; INFOPLIST_FILE = demo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 7.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -270,6 +264,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; INFOPLIST_FILE = demo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 7.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/gifu-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Demo/gifu-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata old mode 100644 new mode 100755 similarity index 100% rename from gifu-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Demo/gifu-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/gifu-demo.xcodeproj/project.xcworkspace/xcshareddata/gifu-demo.xccheckout b/gifu-demo.xcodeproj/project.xcworkspace/xcshareddata/gifu-demo.xccheckout deleted file mode 100644 index d5bcfd3..0000000 --- a/gifu-demo.xcodeproj/project.xcworkspace/xcshareddata/gifu-demo.xccheckout +++ /dev/null @@ -1,53 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 6D75083F-F54B-476A-805A-7C4AECACA1D4 - IDESourceControlProjectName - gifu-demo - IDESourceControlProjectOriginsDictionary - - 4F201322DFCBE25D8D43B7E20BE17D99A7146515 - /Users/reda/Developer/iOS/gifu - EA0259997B7ABC22E2A236D9C38DE21665A9128B - github.com:kaishin/gifu-demo.git - - IDESourceControlProjectPath - gifu-demo.xcodeproj - IDESourceControlProjectRelativeInstallPathDictionary - - 4F201322DFCBE25D8D43B7E20BE17D99A7146515 - ../../../gifu - EA0259997B7ABC22E2A236D9C38DE21665A9128B - ../.. - - IDESourceControlProjectURL - github.com:kaishin/gifu-demo.git - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - EA0259997B7ABC22E2A236D9C38DE21665A9128B - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 4F201322DFCBE25D8D43B7E20BE17D99A7146515 - IDESourceControlWCCName - gifu - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - EA0259997B7ABC22E2A236D9C38DE21665A9128B - IDESourceControlWCCName - gifu-demo - - - - diff --git a/gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/xcschememanagement.plist b/gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index fc5689b..0000000 --- a/gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,27 +0,0 @@ - - - - - SchemeUserState - - gifu-demo.xcscheme - - orderHint - 0 - - - SuppressBuildableAutocreation - - 9D98823619BC69CA00B790C6 - - primary - - - 9D98824819BC69CA00B790C6 - - primary - - - - - diff --git a/gifu.xcodeproj/project.pbxproj b/gifu.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fbffe93 --- /dev/null +++ b/gifu.xcodeproj/project.pbxproj @@ -0,0 +1,307 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 00B8C75E1A364DCE00C188E7 /* Gifu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00B8C75B1A364DCE00C188E7 /* Gifu.swift */; }; + 00B8C75F1A364DCE00C188E7 /* ImageSourceHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00B8C75C1A364DCE00C188E7 /* ImageSourceHelpers.swift */; }; + 00B8C7601A364DCE00C188E7 /* UIImageView+Gifu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00B8C75D1A364DCE00C188E7 /* UIImageView+Gifu.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 00B8C73E1A364DA400C188E7 /* Gifu.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Gifu.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 00B8C7421A364DA400C188E7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 00B8C75B1A364DCE00C188E7 /* Gifu.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Gifu.swift; sourceTree = ""; }; + 00B8C75C1A364DCE00C188E7 /* ImageSourceHelpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageSourceHelpers.swift; sourceTree = ""; }; + 00B8C75D1A364DCE00C188E7 /* UIImageView+Gifu.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIImageView+Gifu.swift"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 00B8C73A1A364DA400C188E7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00B8C7341A364DA400C188E7 = { + isa = PBXGroup; + children = ( + 00B8C7401A364DA400C188E7 /* Gifu */, + 00B8C73F1A364DA400C188E7 /* Products */, + ); + sourceTree = ""; + }; + 00B8C73F1A364DA400C188E7 /* Products */ = { + isa = PBXGroup; + children = ( + 00B8C73E1A364DA400C188E7 /* Gifu.framework */, + ); + name = Products; + sourceTree = ""; + }; + 00B8C7401A364DA400C188E7 /* Gifu */ = { + isa = PBXGroup; + children = ( + 00B8C75A1A364DBE00C188E7 /* Source */, + 00B8C7411A364DA400C188E7 /* Supporting Files */, + ); + path = Gifu; + sourceTree = ""; + }; + 00B8C7411A364DA400C188E7 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 00B8C7421A364DA400C188E7 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 00B8C75A1A364DBE00C188E7 /* Source */ = { + isa = PBXGroup; + children = ( + 00B8C75B1A364DCE00C188E7 /* Gifu.swift */, + 00B8C75C1A364DCE00C188E7 /* ImageSourceHelpers.swift */, + 00B8C75D1A364DCE00C188E7 /* UIImageView+Gifu.swift */, + ); + name = Source; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 00B8C73B1A364DA400C188E7 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 00B8C73D1A364DA400C188E7 /* Gifu */ = { + isa = PBXNativeTarget; + buildConfigurationList = 00B8C7541A364DA500C188E7 /* Build configuration list for PBXNativeTarget "Gifu" */; + buildPhases = ( + 00B8C7391A364DA400C188E7 /* Sources */, + 00B8C73A1A364DA400C188E7 /* Frameworks */, + 00B8C73B1A364DA400C188E7 /* Headers */, + 00B8C73C1A364DA400C188E7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Gifu; + productName = Gifu; + productReference = 00B8C73E1A364DA400C188E7 /* Gifu.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 00B8C7351A364DA400C188E7 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0610; + ORGANIZATIONNAME = "Kaishin & Co"; + TargetAttributes = { + 00B8C73D1A364DA400C188E7 = { + CreatedOnToolsVersion = 6.1.1; + }; + }; + }; + buildConfigurationList = 00B8C7381A364DA400C188E7 /* Build configuration list for PBXProject "Gifu" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 00B8C7341A364DA400C188E7; + productRefGroup = 00B8C73F1A364DA400C188E7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 00B8C73D1A364DA400C188E7 /* Gifu */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 00B8C73C1A364DA400C188E7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 00B8C7391A364DA400C188E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 00B8C7601A364DCE00C188E7 /* UIImageView+Gifu.swift in Sources */, + 00B8C75F1A364DCE00C188E7 /* ImageSourceHelpers.swift in Sources */, + 00B8C75E1A364DCE00C188E7 /* Gifu.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 00B8C7521A364DA500C188E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 00B8C7531A364DA500C188E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 00B8C7551A364DA500C188E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = Gifu/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 00B8C7561A364DA500C188E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = Gifu/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 00B8C7381A364DA400C188E7 /* Build configuration list for PBXProject "Gifu" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 00B8C7521A364DA500C188E7 /* Debug */, + 00B8C7531A364DA500C188E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 00B8C7541A364DA500C188E7 /* Build configuration list for PBXNativeTarget "Gifu" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 00B8C7551A364DA500C188E7 /* Debug */, + 00B8C7561A364DA500C188E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 00B8C7351A364DA400C188E7 /* Project object */; +} diff --git a/gifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/gifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..bd425af --- /dev/null +++ b/gifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/gifu-demo.xcscheme b/gifu.xcodeproj/xcshareddata/xcschemes/gifu.xcscheme similarity index 64% rename from gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/gifu-demo.xcscheme rename to gifu.xcodeproj/xcshareddata/xcschemes/gifu.xcscheme index 668b760..6665a27 100644 --- a/gifu-demo.xcodeproj/xcuserdata/reda.xcuserdatad/xcschemes/gifu-demo.xcscheme +++ b/gifu.xcodeproj/xcshareddata/xcschemes/gifu.xcscheme @@ -1,6 +1,6 @@ + BlueprintIdentifier = "00B8C73D1A364DA400C188E7" + BuildableName = "Gifu.framework" + BlueprintName = "Gifu" + ReferencedContainer = "container:Gifu.xcodeproj"> + BlueprintIdentifier = "00B8C7481A364DA500C188E7" + BuildableName = "GifuTests.xctest" + BlueprintName = "GifuTests" + ReferencedContainer = "container:Gifu.xcodeproj"> @@ -46,20 +46,20 @@ skipped = "NO"> + BlueprintIdentifier = "00B8C7481A364DA500C188E7" + BuildableName = "GifuTests.xctest" + BlueprintName = "GifuTests" + ReferencedContainer = "container:Gifu.xcodeproj"> + BlueprintIdentifier = "00B8C73D1A364DA400C188E7" + BuildableName = "Gifu.framework" + BlueprintName = "Gifu" + ReferencedContainer = "container:Gifu.xcodeproj"> @@ -72,15 +72,15 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" allowLocationSimulation = "YES"> - + + BlueprintIdentifier = "00B8C73D1A364DA400C188E7" + BuildableName = "Gifu.framework" + BlueprintName = "Gifu" + ReferencedContainer = "container:Gifu.xcodeproj"> - + @@ -90,15 +90,15 @@ useCustomWorkingDirectory = "NO" buildConfiguration = "Release" debugDocumentVersioning = "YES"> - + + BlueprintIdentifier = "00B8C73D1A364DA400C188E7" + BuildableName = "Gifu.framework" + BlueprintName = "Gifu" + ReferencedContainer = "container:Gifu.xcodeproj"> - + diff --git a/source/Gifu.swift b/gifu/Gifu.swift old mode 100644 new mode 100755 similarity index 100% rename from source/Gifu.swift rename to gifu/Gifu.swift diff --git a/source/ImageSourceHelpers.swift b/gifu/ImageSourceHelpers.swift old mode 100644 new mode 100755 similarity index 100% rename from source/ImageSourceHelpers.swift rename to gifu/ImageSourceHelpers.swift diff --git a/gifu/Info.plist b/gifu/Info.plist new file mode 100644 index 0000000..45dd4c8 --- /dev/null +++ b/gifu/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + kaishin.co.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/source/UIImageView+Gifu.swift b/gifu/UIImageView+Gifu.swift old mode 100644 new mode 100755 similarity index 100% rename from source/UIImageView+Gifu.swift rename to gifu/UIImageView+Gifu.swift