From 35761806df7929d70fdaaa4ea6e8ae25ce0ec2b1 Mon Sep 17 00:00:00 2001 From: Brent Gulanowski <bgulanowski@gmail.com> Date: Thu, 2 Jun 2016 15:34:18 -0400 Subject: [PATCH] Remove Web Sample app. --- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.pbxproj | 532 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata | 7 ------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/xcshareddata/xcschemes/Web Sample.xcscheme | 91 ------------------------------------------------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.h | 35 ----------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.m | 64 ---------------------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/LaunchScreen.xib | 41 ----------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/Main.storyboard | 25 ------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.h | 30 ------------------------------ Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.m | 118 ---------------------------------------------------------------------------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.h | 19 ------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.m | 105 --------------------------------------------------------------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Contents.json | 44 -------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png | Bin 37957 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png | Bin 40691 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png | Bin 36263 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png | Bin 37957 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png | Bin 35398 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png | Bin 36559 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@2x.png | Bin 951859 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@3x.png | Bin 953128 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Contents.json | 22 ---------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/Contents.json | 22 ---------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@2x.png | Bin 447 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@3x.png | Bin 563 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/Contents.json | 22 ---------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@2x.png | Bin 432 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@3x.png | Bin 526 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/Contents.json | 23 ----------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop.png | Bin 446 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@2x.png | Bin 718 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@3x.png | Bin 2187 -> 0 bytes Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Info.plist | 49 ------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements | 8 -------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.h | 16 ---------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.m | 101 ----------------------------------------------------------------------------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.h | 33 --------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.m | 132 ------------------------------------------------------------------------------------------------------------------------------------ Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/main.m | 34 ---------------------------------- Mobile Buy SDK Sample Apps/Sample App Web/README.md | 38 -------------------------------------- 39 files changed, 1611 deletions(-) delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.pbxproj delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/xcshareddata/xcschemes/Web Sample.xcscheme delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.h delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.m delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/LaunchScreen.xib delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/Main.storyboard delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.h delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.m delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.h delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.m delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Contents.json delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@2x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@3x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Contents.json delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/Contents.json delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@2x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@3x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/Contents.json delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@2x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@3x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/Contents.json delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@2x.png delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@3x.png delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Info.plist delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.h delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.m delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.h delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.m delete mode 100755 Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/main.m delete mode 100644 Mobile Buy SDK Sample Apps/Sample App Web/README.md diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.pbxproj b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.pbxproj deleted file mode 100755 index c6ea470..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.pbxproj +++ /dev/null @@ -1,532 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 901931981BC5C63400D1134E /* Buy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 901931951BC5C62800D1134E /* Buy.framework */; }; - 901931991BC5C63500D1134E /* Buy.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 901931951BC5C62800D1134E /* Buy.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 90858EC91B540D1B009D19D7 /* PassKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 90858EC81B540D1B009D19D7 /* PassKit.framework */; }; - BE1C4E011AE9922100E21624 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BEDC7A321AE03BA800C4B4FE /* ViewController.m */; }; - BE7764D61AE5724200C74937 /* CheckoutSelectionController.m in Sources */ = {isa = PBXBuildFile; fileRef = BE7764D51AE5724200C74937 /* CheckoutSelectionController.m */; }; - BE7764DB1AE5728E00C74937 /* PAYButton.m in Sources */ = {isa = PBXBuildFile; fileRef = BE7764D81AE5728E00C74937 /* PAYButton.m */; }; - BE7764DC1AE5728E00C74937 /* CheckoutSelectionView.m in Sources */ = {isa = PBXBuildFile; fileRef = BE7764DA1AE5728E00C74937 /* CheckoutSelectionView.m */; }; - BE9652F41AE563CE00084408 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE9652F31AE563CE00084408 /* WebKit.framework */; }; - BEDC7A2D1AE03BA800C4B4FE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BEDC7A2C1AE03BA800C4B4FE /* main.m */; }; - BEDC7A301AE03BA800C4B4FE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BEDC7A2F1AE03BA800C4B4FE /* AppDelegate.m */; }; - BEDC7A361AE03BA800C4B4FE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BEDC7A341AE03BA800C4B4FE /* Main.storyboard */; }; - BEDC7A381AE03BA800C4B4FE /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BEDC7A371AE03BA800C4B4FE /* Images.xcassets */; }; - BEDC7A3B1AE03BA900C4B4FE /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = BEDC7A391AE03BA800C4B4FE /* LaunchScreen.xib */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 901931901BC5C62800D1134E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 90F592EC1B0D5EFE0026B382; - remoteInfo = "Mobile Buy SDK Tests"; - }; - 901931921BC5C62800D1134E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = BE9A64281B503C2F0033E558; - remoteInfo = Buy; - }; - 901931941BC5C62800D1134E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 901931701BC5B9BC00D1134E; - remoteInfo = "Buy Dynamic"; - }; - 901931961BC5C62E00D1134E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 901930E11BC5B9BC00D1134E; - remoteInfo = "Buy Dynamic"; - }; - 9019319A1BC5C63500D1134E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 901930E11BC5B9BC00D1134E; - remoteInfo = "Buy Dynamic"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9019319C1BC5C63500D1134E /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 901931991BC5C63500D1134E /* Buy.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "Mobile Buy SDK.xcodeproj"; path = "../../Mobile Buy SDK/Mobile Buy SDK.xcodeproj"; sourceTree = "<group>"; }; - 90858EC81B540D1B009D19D7 /* PassKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PassKit.framework; path = System/Library/Frameworks/PassKit.framework; sourceTree = SDKROOT; }; - BE7764D41AE5724200C74937 /* CheckoutSelectionController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CheckoutSelectionController.h; sourceTree = "<group>"; }; - BE7764D51AE5724200C74937 /* CheckoutSelectionController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CheckoutSelectionController.m; sourceTree = "<group>"; }; - BE7764D71AE5728E00C74937 /* PAYButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PAYButton.h; sourceTree = "<group>"; }; - BE7764D81AE5728E00C74937 /* PAYButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PAYButton.m; sourceTree = "<group>"; }; - BE7764D91AE5728E00C74937 /* CheckoutSelectionView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CheckoutSelectionView.h; sourceTree = "<group>"; }; - BE7764DA1AE5728E00C74937 /* CheckoutSelectionView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CheckoutSelectionView.m; sourceTree = "<group>"; }; - BE9572AC1AE592E70024968A /* Mobile Buy SDK Web Sample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Mobile Buy SDK Web Sample.entitlements"; sourceTree = "<group>"; }; - BE9652F31AE563CE00084408 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; - BEDC7A271AE03BA800C4B4FE /* Mobile Buy SDK Web Sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Mobile Buy SDK Web Sample.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - BEDC7A2B1AE03BA800C4B4FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; - BEDC7A2C1AE03BA800C4B4FE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = main.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; - BEDC7A2E1AE03BA800C4B4FE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = AppDelegate.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - BEDC7A2F1AE03BA800C4B4FE /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; - BEDC7A311AE03BA800C4B4FE /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = ViewController.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - BEDC7A321AE03BA800C4B4FE /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; - BEDC7A351AE03BA800C4B4FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; - BEDC7A371AE03BA800C4B4FE /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; - BEDC7A3A1AE03BA900C4B4FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - BEDC7A241AE03BA800C4B4FE /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 90858EC91B540D1B009D19D7 /* PassKit.framework in Frameworks */, - BE9652F41AE563CE00084408 /* WebKit.framework in Frameworks */, - 901931981BC5C63400D1134E /* Buy.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 90171E981AF0294500BB73DB /* Frameworks */ = { - isa = PBXGroup; - children = ( - 90858EC81B540D1B009D19D7 /* PassKit.framework */, - BE9652F31AE563CE00084408 /* WebKit.framework */, - ); - name = Frameworks; - path = "Shopify Checkout"; - sourceTree = "<group>"; - }; - 901931861BC5C62700D1134E /* Products */ = { - isa = PBXGroup; - children = ( - 901931911BC5C62800D1134E /* Mobile Buy SDK Tests.xctest */, - 901931931BC5C62800D1134E /* Buy.framework */, - 901931951BC5C62800D1134E /* Buy.framework */, - ); - name = Products; - sourceTree = "<group>"; - }; - BE7764DD1AE5729200C74937 /* Payment Selection */ = { - isa = PBXGroup; - children = ( - BE7764D41AE5724200C74937 /* CheckoutSelectionController.h */, - BE7764D51AE5724200C74937 /* CheckoutSelectionController.m */, - BE7764D71AE5728E00C74937 /* PAYButton.h */, - BE7764D81AE5728E00C74937 /* PAYButton.m */, - BE7764D91AE5728E00C74937 /* CheckoutSelectionView.h */, - BE7764DA1AE5728E00C74937 /* CheckoutSelectionView.m */, - ); - name = "Payment Selection"; - sourceTree = "<group>"; - }; - BEDC7A1E1AE03BA800C4B4FE = { - isa = PBXGroup; - children = ( - 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */, - 90171E981AF0294500BB73DB /* Frameworks */, - BEDC7A291AE03BA800C4B4FE /* Mobile Buy SDK Web Sample */, - BEDC7A281AE03BA800C4B4FE /* Products */, - ); - sourceTree = "<group>"; - }; - BEDC7A281AE03BA800C4B4FE /* Products */ = { - isa = PBXGroup; - children = ( - BEDC7A271AE03BA800C4B4FE /* Mobile Buy SDK Web Sample.app */, - ); - name = Products; - sourceTree = "<group>"; - }; - BEDC7A291AE03BA800C4B4FE /* Mobile Buy SDK Web Sample */ = { - isa = PBXGroup; - children = ( - BE9572AC1AE592E70024968A /* Mobile Buy SDK Web Sample.entitlements */, - BE7764DD1AE5729200C74937 /* Payment Selection */, - BEDC7A2E1AE03BA800C4B4FE /* AppDelegate.h */, - BEDC7A2F1AE03BA800C4B4FE /* AppDelegate.m */, - BEDC7A311AE03BA800C4B4FE /* ViewController.h */, - BEDC7A321AE03BA800C4B4FE /* ViewController.m */, - BEDC7A341AE03BA800C4B4FE /* Main.storyboard */, - BEDC7A371AE03BA800C4B4FE /* Images.xcassets */, - BEDC7A391AE03BA800C4B4FE /* LaunchScreen.xib */, - BEDC7A2A1AE03BA800C4B4FE /* Supporting Files */, - ); - path = "Mobile Buy SDK Web Sample"; - sourceTree = "<group>"; - }; - BEDC7A2A1AE03BA800C4B4FE /* Supporting Files */ = { - isa = PBXGroup; - children = ( - BEDC7A2B1AE03BA800C4B4FE /* Info.plist */, - BEDC7A2C1AE03BA800C4B4FE /* main.m */, - ); - name = "Supporting Files"; - sourceTree = "<group>"; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - BEDC7A261AE03BA800C4B4FE /* Mobile Buy SDK Web Sample */ = { - isa = PBXNativeTarget; - buildConfigurationList = BEDC7A4A1AE03BA900C4B4FE /* Build configuration list for PBXNativeTarget "Mobile Buy SDK Web Sample" */; - buildPhases = ( - BEDC7A231AE03BA800C4B4FE /* Sources */, - BEDC7A241AE03BA800C4B4FE /* Frameworks */, - BEDC7A251AE03BA800C4B4FE /* Resources */, - BE9572AD1AE5BEF20024968A /* ShellScript */, - 9019319C1BC5C63500D1134E /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 901931971BC5C62E00D1134E /* PBXTargetDependency */, - 9019319B1BC5C63500D1134E /* PBXTargetDependency */, - ); - name = "Mobile Buy SDK Web Sample"; - productName = "Shopify Checkout"; - productReference = BEDC7A271AE03BA800C4B4FE /* Mobile Buy SDK Web Sample.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - BEDC7A1F1AE03BA800C4B4FE /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0700; - ORGANIZATIONNAME = Shopify; - TargetAttributes = { - BEDC7A261AE03BA800C4B4FE = { - CreatedOnToolsVersion = 6.2; - SystemCapabilities = { - com.apple.OMC = { - enabled = 1; - }; - com.apple.Passbook = { - enabled = 0; - }; - }; - }; - }; - }; - buildConfigurationList = BEDC7A221AE03BA800C4B4FE /* Build configuration list for PBXProject "Mobile Buy SDK Web Sample" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = BEDC7A1E1AE03BA800C4B4FE; - productRefGroup = BEDC7A281AE03BA800C4B4FE /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 901931861BC5C62700D1134E /* Products */; - ProjectRef = 901931851BC5C62700D1134E /* Mobile Buy SDK.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - BEDC7A261AE03BA800C4B4FE /* Mobile Buy SDK Web Sample */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 901931911BC5C62800D1134E /* Mobile Buy SDK Tests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = "Mobile Buy SDK Tests.xctest"; - remoteRef = 901931901BC5C62800D1134E /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 901931931BC5C62800D1134E /* Buy.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = Buy.framework; - remoteRef = 901931921BC5C62800D1134E /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 901931951BC5C62800D1134E /* Buy.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = Buy.framework; - remoteRef = 901931941BC5C62800D1134E /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - BEDC7A251AE03BA800C4B4FE /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - BEDC7A361AE03BA800C4B4FE /* Main.storyboard in Resources */, - BEDC7A3B1AE03BA900C4B4FE /* LaunchScreen.xib in Resources */, - BEDC7A381AE03BA800C4B4FE /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - BE9572AD1AE5BEF20024968A /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "FILE=\"${SRCROOT}/HockeySDK-iOS/BuildAgent\"\nif [ -f \"$FILE\" ]; then\n\"$FILE\"\nfi"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - BEDC7A231AE03BA800C4B4FE /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - BE1C4E011AE9922100E21624 /* ViewController.m in Sources */, - BEDC7A301AE03BA800C4B4FE /* AppDelegate.m in Sources */, - BE7764D61AE5724200C74937 /* CheckoutSelectionController.m in Sources */, - BEDC7A2D1AE03BA800C4B4FE /* main.m in Sources */, - BE7764DC1AE5728E00C74937 /* CheckoutSelectionView.m in Sources */, - BE7764DB1AE5728E00C74937 /* PAYButton.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 901931971BC5C62E00D1134E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Buy Dynamic"; - targetProxy = 901931961BC5C62E00D1134E /* PBXContainerItemProxy */; - }; - 9019319B1BC5C63500D1134E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Buy Dynamic"; - targetProxy = 9019319A1BC5C63500D1134E /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - BEDC7A341AE03BA800C4B4FE /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - BEDC7A351AE03BA800C4B4FE /* Base */, - ); - name = Main.storyboard; - sourceTree = "<group>"; - }; - BEDC7A391AE03BA800C4B4FE /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - BEDC7A3A1AE03BA900C4B4FE /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = "<group>"; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - BEDC7A481AE03BA900C4B4FE /* 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; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = 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.2; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - BEDC7A491AE03BA900C4B4FE /* 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 = NO; - 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.2; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - BEDC7A4B1AE03BA900C4B4FE /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = "Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements"; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEBUG_INFORMATION_FORMAT = dwarf; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "${PROJECT_DIR}/../**", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "${PROJECT_DIR}/**", - "${PROJECT_DIR}/../..", - ); - INFOPLIST_FILE = "Mobile Buy SDK Web Sample/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/**", - ); - OTHER_LDFLAGS = ""; - PRODUCT_BUNDLE_IDENTIFIER = com.shopify.mobilebuysdkwebsample; - PRODUCT_NAME = "Mobile Buy SDK Web Sample"; - PROVISIONING_PROFILE = ""; - TARGETED_DEVICE_FAMILY = 1; - USER_HEADER_SEARCH_PATHS = "${PROJECT_DIR}/**"; - }; - name = Debug; - }; - BEDC7A4C1AE03BA900C4B4FE /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = "Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements"; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEBUG_INFORMATION_FORMAT = dwarf; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "${PROJECT_DIR}/../**", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "${PROJECT_DIR}/**", - "${PROJECT_DIR}/../..", - ); - INFOPLIST_FILE = "Mobile Buy SDK Web Sample/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/**", - ); - OTHER_LDFLAGS = ""; - PRODUCT_BUNDLE_IDENTIFIER = com.shopify.mobilebuysdkwebsample; - PRODUCT_NAME = "Mobile Buy SDK Web Sample"; - PROVISIONING_PROFILE = ""; - TARGETED_DEVICE_FAMILY = 1; - USER_HEADER_SEARCH_PATHS = "${PROJECT_DIR}/**"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - BEDC7A221AE03BA800C4B4FE /* Build configuration list for PBXProject "Mobile Buy SDK Web Sample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BEDC7A481AE03BA900C4B4FE /* Debug */, - BEDC7A491AE03BA900C4B4FE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - BEDC7A4A1AE03BA900C4B4FE /* Build configuration list for PBXNativeTarget "Mobile Buy SDK Web Sample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BEDC7A4B1AE03BA900C4B4FE /* Debug */, - BEDC7A4C1AE03BA900C4B4FE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = BEDC7A1F1AE03BA800C4B4FE /* Project object */; -} diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100755 index 3a9643f..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Workspace - version = "1.0"> - <FileRef - location = "self:Shopify Checkout.xcodeproj"> - </FileRef> -</Workspace> diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/xcshareddata/xcschemes/Web Sample.xcscheme b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/xcshareddata/xcschemes/Web Sample.xcscheme deleted file mode 100644 index f1596fb..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample.xcodeproj/xcshareddata/xcschemes/Web Sample.xcscheme +++ /dev/null @@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Scheme - LastUpgradeVersion = "0700" - version = "1.3"> - <BuildAction - parallelizeBuildables = "YES" - buildImplicitDependencies = "YES"> - <BuildActionEntries> - <BuildActionEntry - buildForTesting = "YES" - buildForRunning = "YES" - buildForProfiling = "YES" - buildForArchiving = "YES" - buildForAnalyzing = "YES"> - <BuildableReference - BuildableIdentifier = "primary" - BlueprintIdentifier = "BEDC7A261AE03BA800C4B4FE" - BuildableName = "Mobile Buy SDK Web Sample.app" - BlueprintName = "Mobile Buy SDK Web Sample" - ReferencedContainer = "container:Mobile Buy SDK Web Sample.xcodeproj"> - </BuildableReference> - </BuildActionEntry> - </BuildActionEntries> - </BuildAction> - <TestAction - buildConfiguration = "Debug" - selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" - selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> - <Testables> - </Testables> - <MacroExpansion> - <BuildableReference - BuildableIdentifier = "primary" - BlueprintIdentifier = "BEDC7A261AE03BA800C4B4FE" - BuildableName = "Mobile Buy SDK Web Sample.app" - BlueprintName = "Mobile Buy SDK Web Sample" - ReferencedContainer = "container:Mobile Buy SDK Web Sample.xcodeproj"> - </BuildableReference> - </MacroExpansion> - <AdditionalOptions> - </AdditionalOptions> - </TestAction> - <LaunchAction - buildConfiguration = "Debug" - selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" - selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - launchStyle = "0" - useCustomWorkingDirectory = "NO" - ignoresPersistentStateOnLaunch = "NO" - debugDocumentVersioning = "YES" - debugServiceExtension = "internal" - allowLocationSimulation = "YES"> - <BuildableProductRunnable - runnableDebuggingMode = "0"> - <BuildableReference - BuildableIdentifier = "primary" - BlueprintIdentifier = "BEDC7A261AE03BA800C4B4FE" - BuildableName = "Mobile Buy SDK Web Sample.app" - BlueprintName = "Mobile Buy SDK Web Sample" - ReferencedContainer = "container:Mobile Buy SDK Web Sample.xcodeproj"> - </BuildableReference> - </BuildableProductRunnable> - <AdditionalOptions> - </AdditionalOptions> - </LaunchAction> - <ProfileAction - buildConfiguration = "Release" - shouldUseLaunchSchemeArgsEnv = "YES" - savedToolIdentifier = "" - useCustomWorkingDirectory = "NO" - debugDocumentVersioning = "YES"> - <BuildableProductRunnable - runnableDebuggingMode = "0"> - <BuildableReference - BuildableIdentifier = "primary" - BlueprintIdentifier = "BEDC7A261AE03BA800C4B4FE" - BuildableName = "Mobile Buy SDK Web Sample.app" - BlueprintName = "Mobile Buy SDK Web Sample" - ReferencedContainer = "container:Mobile Buy SDK Web Sample.xcodeproj"> - </BuildableReference> - </BuildableProductRunnable> - </ProfileAction> - <AnalyzeAction - buildConfiguration = "Debug"> - </AnalyzeAction> - <ArchiveAction - buildConfiguration = "Release" - revealArchiveInOrganizer = "YES"> - </ArchiveAction> -</Scheme> diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.h b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.h deleted file mode 100755 index bb0f3a4..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.h +++ /dev/null @@ -1,35 +0,0 @@ -// -// AppDelegate.h -// Mobile Buy SDK -// -// Created by Shopify. -// Copyright (c) 2015 Shopify Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - -@import UIKit; - -@interface AppDelegate : UIResponder <UIApplicationDelegate> - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.m b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.m deleted file mode 100755 index 6b0396b..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/AppDelegate.m +++ /dev/null @@ -1,64 +0,0 @@ -// -// AppDelegate.m -// Mobile Buy SDK -// -// Created by Shopify. -// Copyright (c) 2015 Shopify Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - -#import "AppDelegate.h" -#import "ViewController.h" - -@import Buy; - -#warning - Enter your shop domain and API Key -#define SHOP_DOMAIN @"" -#define API_KEY @"" -#define CHANNEL_ID @"" - -#warning Optionally, to support Apple Pay, enter your merchant ID -#define MERCHANT_ID @"" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - - // Initialize the Buy SDK - BUYClient *client = [[BUYClient alloc] initWithShopDomain:SHOP_DOMAIN - apiKey:API_KEY - channelId:CHANNEL_ID]; - - // Setup the views - ViewController *storeController = [[ViewController alloc] initWithClient:client]; - storeController.merchantId = MERCHANT_ID; - - UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:storeController]; - navController.toolbarHidden = NO; - navController.navigationBarHidden = NO; - navController.navigationBar.barStyle = UIStatusBarStyleLightContent; - - self.window.rootViewController = navController; - [self.window makeKeyAndVisible]; - - return YES; -} - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/LaunchScreen.xib b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/LaunchScreen.xib deleted file mode 100755 index 9102b97..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/LaunchScreen.xib +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES"> - <dependencies> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> - <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/> - </dependencies> - <objects> - <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> - <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> - <view contentMode="scaleToFill" id="iN0-l3-epB"> - <rect key="frame" x="0.0" y="0.0" width="480" height="480"/> - <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> - <subviews> - <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 Shopify. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye"> - <rect key="frame" x="20" y="439" width="441" height="21"/> - <fontDescription key="fontDescription" type="system" pointSize="17"/> - <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> - <nil key="highlightedColor"/> - </label> - <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mobile Buy SDK Web Sample" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX"> - <rect key="frame" x="20" y="140" width="441" height="43"/> - <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/> - <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> - <nil key="highlightedColor"/> - </label> - </subviews> - <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> - <constraints> - <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/> - <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/> - <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/> - <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/> - <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/> - <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/> - </constraints> - <nil key="simulatedStatusBarMetrics"/> - <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> - <point key="canvasLocation" x="548" y="455"/> - </view> - </objects> -</document> diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/Main.storyboard b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/Main.storyboard deleted file mode 100755 index f56d2f3..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Base.lproj/Main.storyboard +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> - <dependencies> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/> - </dependencies> - <scenes> - <!--View Controller--> - <scene sceneID="tne-QT-ifu"> - <objects> - <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController"> - <layoutGuides> - <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> - <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> - </layoutGuides> - <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> - <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> - <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> - <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> - </view> - </viewController> - <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> - </objects> - </scene> - </scenes> -</document> diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.h b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.h deleted file mode 100755 index cd39f2f..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// CheckoutSelectionController.h -// Checkout -// -// Created by Shopify. -// Copyright (c) 2015 Shopify. All rights reserved. -// - -@import UIKit; - -@class CheckoutSelectionController; - -typedef NS_ENUM(NSUInteger, CheckoutType) { - CheckoutTypeNormal, - CheckoutTypeApplePay -}; - -@protocol CheckoutSelectionControllerDelegate <NSObject> - -- (void)checkoutSelectionControllerCancelled:(CheckoutSelectionController *)controller; -- (void)checkoutSelectionController:(CheckoutSelectionController *)controller selectedCheckoutType:(CheckoutType)checkoutType; - -@end - -@interface CheckoutSelectionController : UIViewController - -@property (nonatomic, strong) NSURLRequest *checkoutRequest; -@property (nonatomic, weak) id <CheckoutSelectionControllerDelegate> delegate; - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.m b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.m deleted file mode 100755 index 8b27c36..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionController.m +++ /dev/null @@ -1,118 +0,0 @@ -// -// CheckoutSelectionController.m -// Checkout -// -// Created by Shopify. -// Copyright (c) 2015 Shopify. All rights reserved. -// - -#import "CheckoutSelectionController.h" -#import "CheckoutSelectionView.h" - -#define kCheckoutAnimationTime 0.3f - -@interface CheckoutSelectionController () <UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning> -@end - -@implementation CheckoutSelectionController { - CheckoutSelectionView *_selectionView; -} - -- (instancetype)init -{ - self = [super init]; - if (self) { - self.modalPresentationStyle = UIModalPresentationCustom; - self.transitioningDelegate = self; - } - return self; -} - -- (void)loadView -{ - UIView *background = [[UIView alloc] init]; - background.backgroundColor = [UIColor clearColor]; - self.view = background; - - PAYButton *applePayButton = [PAYButton buttonWithType:UIButtonTypeCustom]; - applePayButton.paymentImageView.image = [UIImage imageNamed:@"ApplePayMark"]; - applePayButton.paymentLabel.text = @"Complete with Apple Pay"; - - PAYButton *checkoutButton = [PAYButton buttonWithType:UIButtonTypeCustom]; - checkoutButton.paymentImageView.image = [UIImage imageNamed:@"credit"]; - checkoutButton.paymentLabel.text = @"Continue Checkout"; - - PAYButton *cancelButton = [PAYButton buttonWithType:UIButtonTypeCustom]; - cancelButton.paymentImageView.image = [UIImage imageNamed:@"cancel"]; - cancelButton.paymentLabel.text = @"Cancel"; - - _selectionView = [[CheckoutSelectionView alloc] initWithFrame:self.view.bounds buttons:@[applePayButton, checkoutButton, cancelButton]]; - _selectionView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - [self.view addSubview:_selectionView]; - - [applePayButton addTarget:self action:@selector(applePayPressed:) forControlEvents:UIControlEventTouchUpInside]; - [checkoutButton addTarget:self action:@selector(checkoutPressed:) forControlEvents:UIControlEventTouchUpInside]; - [cancelButton addTarget:self action:@selector(cancelPressed:) forControlEvents:UIControlEventTouchUpInside]; -} - -#pragma mark - Button Presses - -- (void)applePayPressed:(id)sender -{ - [_delegate checkoutSelectionController:self selectedCheckoutType:CheckoutTypeApplePay]; -} - -- (void)checkoutPressed:(id)sender -{ - [_delegate checkoutSelectionController:self selectedCheckoutType:CheckoutTypeNormal]; -} - -- (void)cancelPressed:(id)sender -{ - [_delegate checkoutSelectionControllerCancelled:self]; -} - -#pragma mark - Transitioning Delegate Methods - -- (id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source -{ - return self; -} - -- (id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed -{ - return self; -} - -#pragma mark - Animated Transitioning Methods - -- (NSTimeInterval)transitionDuration:(id<UIViewControllerContextTransitioning>)transitionContext -{ - return kCheckoutAnimationTime; -} - -- (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext -{ - BOOL appearing = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey] == self; - BOOL animated = [transitionContext isAnimated]; - UIView *containerView = [transitionContext containerView]; - - self.view.frame = [containerView bounds]; - self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; - - if (appearing) { - [containerView addSubview:self.view]; - - [_selectionView showButtons:animated ? kCheckoutAnimationTime : 0.0f completion:^(BOOL complete) { - [transitionContext completeTransition:YES]; - }]; - } - else { - [_selectionView hideButtons:animated ? kCheckoutAnimationTime : 0.0f completion:^(BOOL complete) { - [self.view removeFromSuperview]; - [transitionContext completeTransition:YES]; - }]; - } -} - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.h b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.h deleted file mode 100755 index e7283c9..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// CheckoutSelectionView.h -// Checkout -// -// Created by Shopify. -// Copyright (c) 2015 Shopify. All rights reserved. -// - -@import UIKit; - -#import "PAYButton.h" - -@interface CheckoutSelectionView : UIView - -- (instancetype)initWithFrame:(CGRect)frame buttons:(NSArray *)buttons; -- (void)showButtons:(CGFloat)animationDuration completion:(void (^)(BOOL complete))completion; -- (void)hideButtons:(CGFloat)animationDuration completion:(void (^)(BOOL complete))completion; - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.m b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.m deleted file mode 100755 index ad46ac7..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/CheckoutSelectionView.m +++ /dev/null @@ -1,105 +0,0 @@ -// -// CheckoutSelectionView.m -// Checkout -// -// Created by Shopify. -// Copyright (c) 2015 Shopify. All rights reserved. -// - -#import "CheckoutSelectionView.h" - -//Views -#import "PAYButton.h" - -#define kSidePadding 15.0f -#define kButtonIconPadding 8.0f -#define kPaymentButtonHeight 70.0f -#define kAnimationOffset 80.0f -#define kDelay 0.10f - -@implementation CheckoutSelectionView { - UIView *_background; - NSArray *_buttons; -} - -- (instancetype)initWithFrame:(CGRect)frame buttons:(NSArray *)buttons -{ - self = [super initWithFrame:frame]; - if (self) { - _background = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]]; - _background.alpha = 0.0f; - _background.frame = self.bounds; - _background.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; - [self addSubview:_background]; - - _buttons = buttons; - for (UIButton *button in _buttons) { - [_background addSubview:button]; - button.autoresizingMask = UIViewAutoresizingFlexibleTopMargin; - } - } - return self; -} - -- (CGSize)sizeThatFits:(CGSize)size -{ - NSUInteger buttonCount = [_buttons count]; - return CGSizeMake(size.width, kPaymentButtonHeight * buttonCount + kSidePadding * (buttonCount + 1)); -} - -- (void)layoutButtonsAsHidden -{ - CGRect bounds = _background.bounds; - - CGFloat offsetX = bounds.origin.x + roundf(bounds.size.width / 2) + kSidePadding; - CGFloat offsetY = bounds.origin.y + bounds.size.height - [_buttons count] * (kPaymentButtonHeight + kSidePadding); - CGFloat width = bounds.size.width - 2 * kSidePadding; - - for (UIButton *button in _buttons) { - button.frame = CGRectMake(offsetX, offsetY, width, kPaymentButtonHeight); - button.alpha = 0.0f; - offsetY += kPaymentButtonHeight + kSidePadding; - } -} - -- (void)showButtons:(CGFloat)animationDuration completion:(void (^)(BOOL complete))completion -{ - [self layoutButtonsAsHidden]; - - [UIView animateWithDuration:animationDuration delay:0.0f options:UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionAllowUserInteraction animations:^{ - _background.alpha = 1.0f; - } completion:nil]; - - [self animateButtonsToOffset:0.0f duration:animationDuration alpha:1.0f completion:completion]; -} - -- (void)hideButtons:(CGFloat)animationDuration completion:(void (^)(BOOL complete))completion -{ - [UIView animateWithDuration:animationDuration delay:0.0f options:UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionAllowUserInteraction animations:^{ - _background.alpha = 0.0f; - } completion:nil]; - - [self animateButtonsToOffset:kAnimationOffset duration:animationDuration alpha:0.0f completion:completion]; -} - -- (void)animateButtonsToOffset:(CGFloat)offset duration:(CGFloat)duration alpha:(CGFloat)alpha completion:(void (^)(BOOL complete))completion -{ - CGRect bounds = self.bounds; - CGSize size = [self sizeThatFits:bounds.size]; - CGFloat offsetY = bounds.origin.y + bounds.size.height - size.height; - CGFloat offsetX = bounds.origin.x + kSidePadding + offset; - CGFloat delay = 0.0f; - - for (UIButton *button in _buttons) { - //Animate each button independently and call the completion handler when the last button has finished animating - [UIView animateWithDuration:duration delay:delay usingSpringWithDamping:0.8f initialSpringVelocity:0.2f options:UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionAllowUserInteraction animations:^{ - button.frame = CGRectMake(offsetX, offsetY, button.frame.size.width, button.frame.size.height); - button.alpha = alpha; - } completion:button == [_buttons lastObject] ? completion : nil]; - - offsetY += kPaymentButtonHeight + kSidePadding; - delay += kDelay; - } -} - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Contents.json b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100755 index ef7fed8..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "images" : [ - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-Small@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-Small@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-Small-40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-Small-40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-60@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png deleted file mode 100755 index 3a2f799..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png deleted file mode 100755 index 22e9828..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png deleted file mode 100755 index c2b685b..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png deleted file mode 100755 index fa74312..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png deleted file mode 100755 index 963a38d..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png deleted file mode 100755 index d3f5d80..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@2x.png deleted file mode 100644 index 799f2e2..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@3x.png deleted file mode 100644 index c46ee81..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Apple_Pay_mark_normal_@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Contents.json b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Contents.json deleted file mode 100644 index 6112188..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/ApplePayMark.imageset/Contents.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "Apple_Pay_mark_normal_@2x.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "Apple_Pay_mark_normal_@3x.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/Contents.json b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/Contents.json deleted file mode 100644 index 475c90c..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/Contents.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "back@2x.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "back@3x.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@2x.png deleted file mode 100644 index 67869de..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@3x.png deleted file mode 100644 index 4fd0764..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/back.imageset/back@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/Contents.json b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/Contents.json deleted file mode 100644 index e308e24..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/Contents.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "forward@2x.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "forward@3x.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@2x.png deleted file mode 100644 index 42b4dec..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@3x.png deleted file mode 100644 index 065baef..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/forward.imageset/forward@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/Contents.json b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/Contents.json deleted file mode 100644 index 366e954..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x", - "filename" : "shop.png" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "shop@2x.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "shop@3x.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop.png deleted file mode 100644 index cf4ad0e..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@2x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@2x.png deleted file mode 100644 index c84131b..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@2x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@3x.png b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@3x.png deleted file mode 100644 index 944c326..0000000 Binary files a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Images.xcassets/shop.imageset/shop@3x.png and /dev/null differ diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Info.plist b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Info.plist deleted file mode 100755 index c029ff2..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Info.plist +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>CFBundleDevelopmentRegion</key> - <string>en</string> - <key>CFBundleExecutable</key> - <string>$(EXECUTABLE_NAME)</string> - <key>CFBundleIdentifier</key> - <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundleName</key> - <string>Web Sample</string> - <key>CFBundlePackageType</key> - <string>APPL</string> - <key>CFBundleShortVersionString</key> - <string>1.2.2</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleVersion</key> - <string>1</string> - <key>LSRequiresIPhoneOS</key> - <true/> - <key>UILaunchStoryboardName</key> - <string>LaunchScreen</string> - <key>UIMainStoryboardFile</key> - <string>Main</string> - <key>UIRequiredDeviceCapabilities</key> - <array> - <string>armv7</string> - </array> - <key>UIStatusBarStyle</key> - <string>UIStatusBarStyleLightContent</string> - <key>UISupportedInterfaceOrientations</key> - <array> - <string>UIInterfaceOrientationPortrait</string> - <string>UIInterfaceOrientationLandscapeLeft</string> - <string>UIInterfaceOrientationLandscapeRight</string> - </array> - <key>UISupportedInterfaceOrientations~ipad</key> - <array> - <string>UIInterfaceOrientationPortrait</string> - <string>UIInterfaceOrientationPortraitUpsideDown</string> - <string>UIInterfaceOrientationLandscapeLeft</string> - <string>UIInterfaceOrientationLandscapeRight</string> - </array> -</dict> -</plist> diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements deleted file mode 100755 index c6c92d9..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/Mobile Buy SDK Web Sample.entitlements +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>com.apple.developer.in-app-payments</key> - <array/> -</dict> -</plist> diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.h b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.h deleted file mode 100755 index ee01bc2..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// PAYButton.h -// Checkout -// -// Created by Shopify. -// Copyright (c) 2015 Shopify. All rights reserved. -// - -@import UIKit; - -@interface PAYButton : UIButton - -@property (nonatomic, strong, readonly) UIImageView *paymentImageView; -@property (nonatomic, strong, readonly) UILabel *paymentLabel; - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.m b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.m deleted file mode 100755 index 84a6ded..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/PAYButton.m +++ /dev/null @@ -1,101 +0,0 @@ -// -// PAYButton.m -// Checkout -// -// Created by Shopify. -// Copyright (c) 2015 Shopify. All rights reserved. -// - -#import "PAYButton.h" - -#define kButtonMargin 11.0f -#define kButtonSelectionInset 3.0f - -@implementation PAYButton { - UIView *_highlightView; - UIView *_imageBackgroundView; - - BOOL _animating; -} - -- (instancetype)initWithFrame:(CGRect)frame -{ - self = [super initWithFrame:frame]; - if (self) { - _imageBackgroundView = [[UIView alloc] init]; - _imageBackgroundView.backgroundColor = [UIColor whiteColor]; - _imageBackgroundView.userInteractionEnabled = NO; - [self addSubview:_imageBackgroundView]; - - _paymentImageView = [[UIImageView alloc] initWithFrame:_imageBackgroundView.bounds]; - _paymentImageView.contentMode = UIViewContentModeCenter; - _paymentImageView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; - [_imageBackgroundView addSubview:_paymentImageView]; - - _paymentLabel = [[UILabel alloc] init]; - [_paymentLabel setFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:20.0f]]; - [_paymentLabel setTextColor:[UIColor whiteColor]]; - [self addSubview:_paymentLabel]; - - _highlightView = [[UIView alloc] initWithFrame:frame]; - _highlightView.alpha = 0.0f; - _highlightView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; - _highlightView.backgroundColor = [UIColor colorWithWhite:0.0f alpha:0.2f]; - _highlightView.userInteractionEnabled = NO; - [self addSubview:_highlightView]; - } - return self; -} - -- (CGRect)rectForHighlightedBackground -{ - CGRect bounds = self.bounds; - return CGRectMake(bounds.origin.x + kButtonSelectionInset, bounds.origin.y + kButtonSelectionInset, bounds.size.height - kButtonSelectionInset * 2.0f, bounds.size.height - kButtonSelectionInset * 2.0f); -} - -- (CGRect)rectForNormalBackground -{ - CGRect bounds = self.bounds; - return CGRectMake(bounds.origin.x, bounds.origin.y, bounds.size.height, bounds.size.height); -} - -- (void)setButtonFrame:(CGRect)frame -{ - _imageBackgroundView.frame = frame; - _highlightView.frame = _imageBackgroundView.frame; - _imageBackgroundView.layer.cornerRadius = floorf(frame.size.height / 2); - _highlightView.layer.cornerRadius = _imageBackgroundView.layer.cornerRadius; -} - -- (void)setHighlighted:(BOOL)highlighted -{ - if (highlighted != self.isHighlighted) { - [super setHighlighted:highlighted]; - - CGRect rect = highlighted ? [self rectForHighlightedBackground] : [self rectForNormalBackground]; - _animating = YES; - [UIView animateWithDuration:0.1f delay:0.0f options:UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionAllowUserInteraction animations:^{ - _highlightView.alpha = highlighted ? 1.0f : 0.0f; - _paymentLabel.textColor = highlighted ? [UIColor lightGrayColor] : [UIColor whiteColor]; - [self setButtonFrame:rect]; - } completion:^(BOOL finished) { - _animating = NO; - }]; - } -} - -- (void)layoutSubviews -{ - [super layoutSubviews]; - - CGRect bounds = self.bounds; - if (_animating == NO) { - [self setButtonFrame:[self rectForNormalBackground]]; - } - - CGFloat textHeight = ceilf([[_paymentLabel attributedText] size].height); - CGFloat backgroundMaxX = CGRectGetMaxX([self rectForNormalBackground]) + kButtonMargin; - _paymentLabel.frame = CGRectMake(backgroundMaxX, bounds.origin.y + roundf((bounds.size.height - textHeight) * 0.5f), bounds.size.width - backgroundMaxX - kButtonMargin, textHeight); -} - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.h b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.h deleted file mode 100755 index 8143221..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.h +++ /dev/null @@ -1,33 +0,0 @@ -// -// ViewController.h -// Mobile Buy SDK -// -// Created by Shopify. -// Copyright (c) 2015 Shopify Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - -@import UIKit; -#import <Buy/Buy.h> - -@interface ViewController : BUYStoreViewController - -@end - diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.m b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.m deleted file mode 100755 index ac2e78e..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/ViewController.m +++ /dev/null @@ -1,132 +0,0 @@ -// -// ViewController.m -// Mobile Buy SDK -// -// Created by Shopify. -// Copyright (c) 2015 Shopify Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - -#import "ViewController.h" -#import "CheckoutSelectionController.h" - -@interface ViewController () <BUYStoreViewControllerDelegate, CheckoutSelectionControllerDelegate> -@property (nonatomic, copy) BUYCheckoutTypeBlock callback; -@end - -@implementation ViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. - - self.delegate = self; - - // Add a home button to the navigation bar - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - button.tintColor = [UIColor whiteColor]; - UIImage *buttonImage = [UIImage imageNamed:@"shop"]; - [button setImage:[buttonImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] forState:UIControlStateNormal]; - [button setFrame:CGRectMake(0, 0, 53, 31)]; - [button addTarget:self action:@selector(goHome)forControlEvents:UIControlEventTouchUpInside]; - UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithCustomView:button]; - self.navigationItem.rightBarButtonItem = rightButton; - - [self loadShopWithCallback:^(BOOL success, NSError *error) { - dispatch_async(dispatch_get_main_queue(), ^{ - - if (success) { - self.title = self.shop.name; - } - else { - NSLog(@"Error fetching shop: %@", error.localizedDescription); - } - }); - }]; -} - -- (void)goHome -{ - [self reloadHomePage]; -} - -#pragma mark - BUYStoreViewController delegate methods - -- (void)controller:(BUYStoreViewController *)controller shouldProceedWithCheckoutType:(BUYCheckoutTypeBlock)completionHandler -{ - // If ApplePay is not setup, proceed to normal checkout - if (self.isApplePayAvailable) - { - CheckoutSelectionController *selectionController = [[CheckoutSelectionController alloc] init]; - selectionController.delegate = self; - self.callback = completionHandler; - - [self presentViewController:selectionController animated:YES completion:nil]; - } - else { - completionHandler(BUYCheckoutTypeNormal); - } -} - -- (void)controller:(BUYViewController *)controller failedToCreateCheckout:(NSError *)error -{ - NSLog(@"Failed to create checkout: %@", error); -} - -- (void)controllerFailedToStartApplePayProcess:(BUYViewController *)controller -{ - NSLog(@"Failed to start the Apple Pay process. We weren't given an error :("); -} - -- (void)controller:(BUYViewController *)controller failedToUpdateCheckout:(BUYCheckout *)checkout withError:(NSError *)error -{ - NSLog(@"Failed to update checkout: %@, error: %@", checkout.token, error); -} - -- (void)controller:(BUYViewController *)controller failedToGetShippingRates:(BUYCheckout *)checkout withError:(NSError *)error -{ - NSLog(@"Failed to get shipping rates: %@, error: %@", checkout.token, error); -} - -- (void)controller:(BUYViewController *)controller failedToCompleteCheckout:(BUYCheckout *)checkout withError:(NSError *)error -{ - NSLog(@"Failed to complete checkout: %@, error: %@", checkout.token, error); -} - -- (void)controller:(BUYViewController *)controller didCompleteCheckout:(BUYCheckout *)checkout status:(BUYStatus)status -{ - NSLog(@"Did complete checkout: %@, status: %ld", checkout.token, (unsigned long)status); -} - -#pragma mark - PAYSelectionController delegate - -- (void)checkoutSelectionControllerCancelled:(CheckoutSelectionController *)controller -{ - [self dismissViewControllerAnimated:YES completion:nil]; -} - -- (void)checkoutSelectionController:(CheckoutSelectionController *)controller selectedCheckoutType:(CheckoutType)checkoutType -{ - self.callback(checkoutType == CheckoutTypeApplePay ? BUYCheckoutTypeApplePay : BUYCheckoutTypeNormal); - - [self dismissViewControllerAnimated:YES completion:nil]; -} - -@end diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/main.m b/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/main.m deleted file mode 100755 index 51b3a49..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/Mobile Buy SDK Web Sample/main.m +++ /dev/null @@ -1,34 +0,0 @@ -// -// main.m -// Mobile Buy SDK -// -// Created by Shopify. -// Copyright (c) 2015 Shopify Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - -@import UIKit; -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/Mobile Buy SDK Sample Apps/Sample App Web/README.md b/Mobile Buy SDK Sample Apps/Sample App Web/README.md deleted file mode 100644 index 8f6d842..0000000 --- a/Mobile Buy SDK Sample Apps/Sample App Web/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# Mobile Buy SDK Sample Web App - -The web sample app demonstrates how you can load your shop's website in a webview, and support Apple Pay. - -### Getting started - -First, add your shop domain, API key and Channel ID to the `AppDelegate.h` macros. - -```objc -#define SHOP_DOMAIN @"<shop_domain>" -#define API_KEY @"<api_key>" -#define CHANNEL_ID @"<channel_id>" -``` - -To support Apple Pay, add your Merchant ID as well. - -```objc -#define MERCHANT_ID @"<merchant_id>" -``` - -### Overview - -The sample app instantiates a view controller which is a subclass of `BUYStoreViewController`. This displays a webview with your shop, but intercepts the checkout to support Apple Pay. - -The sample app also demonstrates how to use the `BUYClient` to obtain shop details by calling `getShop:` - -```objc -[self.provider getShop:^(BUYShop *shop, NSError *error) { - dispatch_async(dispatch_get_main_queue(), ^{ - if (error == nil && shop) { - self.title = shop.name; - } - else { - NSLog(@"Error fetching shop: %@", error.localizedDescription); - } - }); -}]; -``` -- libgit2 0.26.0