From 67ebfb1023f5edbb29533bcbbbb3fbccad156cf2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 6 Nov 2017 02:12:20 +0100 Subject: logic --- .../xcschemes/xcschememanagement.plist | 2 +- .../ios/Stone Island.xcarchive/Info.plist | 2 +- .../Applications/Stone Island.app/Assets.car | Bin 844136 -> 844136 bytes .../01J-lp-oVM-view-Ze5-6b-2t3.nib | Bin 2282 -> 2282 bytes .../UIViewController-01J-lp-oVM.nib | Bin 832 -> 832 bytes .../Stone Island.app/MainViewController.nib | Bin 943 -> 943 bytes .../Applications/Stone Island.app/Stone Island | Bin 2224144 -> 2224144 bytes .../Stone Island.app/_CodeSignature/CodeResources | 48 ++++++++++----------- .../Stone Island.app/www/js/lib/etc/sim.js | 6 ++- .../Stone Island.app/www/js/lib/nav/AddressView.js | 2 +- .../www/js/lib/products/CollectionView.js | 14 ++++-- .../www/js/lib/products/ProductView.js | 2 +- .../xcschemes/xcschememanagement.plist | 2 +- StoneIsland/platforms/ios/www/js/lib/etc/sim.js | 6 ++- .../platforms/ios/www/js/lib/nav/AddressView.js | 2 +- .../ios/www/js/lib/products/CollectionView.js | 14 ++++-- .../ios/www/js/lib/products/ProductView.js | 2 +- 17 files changed, 61 insertions(+), 41 deletions(-) (limited to 'StoneIsland/platforms') diff --git a/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist b/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist index daa4d171..54b0db05 100644 --- a/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist @@ -12,7 +12,7 @@ CordovaLib.xcscheme orderHint - 2 + 3 diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist b/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist index 28ca34f1..0d4abc01 100644 --- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist +++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist @@ -18,7 +18,7 @@ ArchiveVersion 2 CreationDate - 2017-11-05T23:58:16Z + 2017-11-06T00:12:45Z Name Stone Island SchemeName diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car index bcd26138..c5dd229c 100644 Binary files a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car and b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car differ diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib index 4ca18da1..bdf3c1d9 100644 Binary files a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib and b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib differ diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib index 64b46b31..68197b64 100644 Binary files a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib and b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib differ diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib index e90fd9f6..eb264e22 100644 Binary files a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib and b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib differ diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island index e1debb5a..9f55d2cf 100755 Binary files a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island and b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island differ diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources index 62a7ebb4..9d725dad 100644 --- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources +++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources @@ -94,11 +94,11 @@ Assets.car - 3QLY7IFl2jsHfRekuAPi44tSS/8= + iDTtbfbFqax4n+II4SPZi6t2ocs= CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib - KEGDsPP2jNdTq5vcYG+7IZG+4JE= + cjhLx1lLVZaWC3dmzZDFDUEXhmI= CDVLaunchScreen.storyboardc/Info.plist @@ -106,7 +106,7 @@ CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib - BHzRnooh9kd2lNO477SrLLFAWDs= + CXnUxM+P13q3aYXtFroFsJcZRp0= CDVNotification.bundle/beep.wav @@ -118,7 +118,7 @@ MainViewController.nib - W2bJSgBpMIVZRzu6EW1Y7NH5HY4= + K9LFYuifrU35JVY7i37lK8lxS6I= PkgInfo @@ -462,11 +462,11 @@ www/js/lib/etc/sim.js - p9UkFNaLWA+ZqQmAXQuwr+NI+sI= + L6kNX9syzHF+dAmyaFb/VegGPyE= www/js/lib/nav/AddressView.js - 7LJJ0CnyURtInuVhaKbkBjLj9Wo= + /ASdyn0hUfLgrTbSOkgJzofUF3g= www/js/lib/nav/CreditCardView.js @@ -502,7 +502,7 @@ www/js/lib/products/CollectionView.js - g7ama0ca186rxP6eho2Lcqqlaxo= + dZYIlXKeCgVJVU3GHPND6CLid+w= www/js/lib/products/GalleryView.js @@ -510,7 +510,7 @@ www/js/lib/products/ProductView.js - sM/LY1QKtDfnmCngnmUVft/y9Ao= + 6GSJ7S/a8ZK24iOOKJxm3fKtaaA= www/js/lib/products/Selector.js @@ -937,22 +937,22 @@ hash - 3QLY7IFl2jsHfRekuAPi44tSS/8= + iDTtbfbFqax4n+II4SPZi6t2ocs= hash2 - Xy2IuTIScWkLccyPQ9TOC9MqtJ93UMMMuTFRGcrHIe4= + vfBROztCO7fMLW3FdPnU2i/eSMYzp+sknjcvVMM3baU= CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib hash - KEGDsPP2jNdTq5vcYG+7IZG+4JE= + cjhLx1lLVZaWC3dmzZDFDUEXhmI= hash2 - 7Hv0dktmPjL++3r0YPRuYXE15u9ZVTkD4qhFAWXrBE0= + hsTEu4ZattGa/49zdwHvcKwjT9TR86DT/SShXHK+L7U= CDVLaunchScreen.storyboardc/Info.plist @@ -970,11 +970,11 @@ hash - BHzRnooh9kd2lNO477SrLLFAWDs= + CXnUxM+P13q3aYXtFroFsJcZRp0= hash2 - ED1LfLiyA1rH2h/L6i17KuGAEBTv8HFLudoIw7+kQo4= + nYXBlcnB/stfRcqPQqVCv4Hdy4j6Ni9t6j/YSwktbrg= CDVNotification.bundle/beep.wav @@ -992,11 +992,11 @@ hash - W2bJSgBpMIVZRzu6EW1Y7NH5HY4= + K9LFYuifrU35JVY7i37lK8lxS6I= hash2 - 2951Uljbg6F4uky32pHeUSvBsAHKIhoyqxIqIRPNTbs= + m3JXvkgOy9hLaYir6AQHU/3YPB+GVMRzLtx6yVTx/iA= archived-expanded-entitlements.xcent @@ -1927,22 +1927,22 @@ hash - p9UkFNaLWA+ZqQmAXQuwr+NI+sI= + L6kNX9syzHF+dAmyaFb/VegGPyE= hash2 - 4jKacgqpnhY8T/RJRcLWn+k553URMgfgJ++rXQryUPM= + v4e3+smzRWO0SQU7LUOqxpFJCYuShVsMe5UcblwS948= www/js/lib/nav/AddressView.js hash - 7LJJ0CnyURtInuVhaKbkBjLj9Wo= + /ASdyn0hUfLgrTbSOkgJzofUF3g= hash2 - FYp6WSmd8vwxOcqmofcQHUkt5xBNR9vETVy/v/hI2bQ= + +QD7HO4LypwHg5MQxGlScAjQealYgBoztTdz7x/lmnA= www/js/lib/nav/CreditCardView.js @@ -2037,11 +2037,11 @@ hash - g7ama0ca186rxP6eho2Lcqqlaxo= + dZYIlXKeCgVJVU3GHPND6CLid+w= hash2 - NcitCXjEiXmYPy2MrX5QRfk41qI0GFkD0kZTTx7uFr8= + F3m7DIDNcROqnCiN7Ebm2xWV6CT1KmGrxZ5Pi7nclsY= www/js/lib/products/GalleryView.js @@ -2059,11 +2059,11 @@ hash - sM/LY1QKtDfnmCngnmUVft/y9Ao= + 6GSJ7S/a8ZK24iOOKJxm3fKtaaA= hash2 - b3E1CxezHAYUIR7majwpb5IMSFnLz2yij1tWkC8cakM= + Wz37/FgslyUj3wZ1yHnLqnHFPmUTy4nHDlT7d3F2fgc= www/js/lib/products/Selector.js diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/etc/sim.js b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/etc/sim.js index 9f5d7f4f..65be02b0 100644 --- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/etc/sim.js +++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/etc/sim.js @@ -10,6 +10,7 @@ var sim = (function(){ } sim.fetch = function(cb){ + console.log('fetching sim data') sim.afterFetch = cb window.plugins.sim.getSimInfo(sim.success, sim.error) } @@ -26,7 +27,6 @@ var sim = (function(){ sim.data.countryCode = 'us' } } - sim.data.countryCode = 'ca' sim.loaded = true sim.afterFetch() } @@ -38,6 +38,10 @@ var sim = (function(){ jsonp: "callback", dataType: "jsonp", success: sim.success, + error: function(){ + sim.loaded = true + sim.afterFetch() + } }) } diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/nav/AddressView.js b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/nav/AddressView.js index fd7df218..64ea265f 100755 --- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/nav/AddressView.js +++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/nav/AddressView.js @@ -22,7 +22,7 @@ var AddressView = SerializableView.extend({ populate: function(data){ this.$("[name=Province]").empty() this.$("[name=Province]").append(this.us_states) - if (! app.store.notAvailableInCanada) { + if (! app.store.NotAvailableInCanada) { this.$("[name=Province]").append(this.ca_states) } this.data = data diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/CollectionView.js b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/CollectionView.js index 7c73d66f..4674fc18 100755 --- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/CollectionView.js +++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/CollectionView.js @@ -121,10 +121,16 @@ var CollectionView = ScrollableView.extend({ if (is_single_product) { console.log("IS SINGLE PRODUCT") var item = data.SearchResponseFull.Results.Items[0] - var url = sdk.image(item['DefaultCode10'], '13_f') - console.log(url) - var img = new Image () - img.src = url + // console.log(data.SearchResponseFull.Results) + if (item) { + var url = sdk.image(item['DefaultCode10'], '13_f') + console.log(url) + var img = new Image () + img.src = url + } + else { + console.log("no products at all!") + } } // if (data.SearchResponseFull.Results.Items.length == 1) { diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/ProductView.js b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/ProductView.js index 7434888c..218c151d 100755 --- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/ProductView.js +++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/lib/products/ProductView.js @@ -130,7 +130,7 @@ var ProductView = ScrollableView.extend({ var default_color_id = this.populate_selectors(data, details) - var notAvailableInCanada = !! app.store.notAvailableInCanada + var notAvailableInCanada = !! app.store.NotAvailableInCanada app.product.$notAvailableInCanada.toggle( notAvailableInCanada ) if (notAvailableInCanada && sim.data.countryCode === 'ca') { this.isNotAvailable = true diff --git a/StoneIsland/platforms/ios/Stone Island.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist b/StoneIsland/platforms/ios/Stone Island.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist index d744b66e..371cb20d 100644 --- a/StoneIsland/platforms/ios/Stone Island.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/StoneIsland/platforms/ios/Stone Island.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ Stone Island.xcscheme orderHint - 3 + 2 diff --git a/StoneIsland/platforms/ios/www/js/lib/etc/sim.js b/StoneIsland/platforms/ios/www/js/lib/etc/sim.js index 9f5d7f4f..65be02b0 100644 --- a/StoneIsland/platforms/ios/www/js/lib/etc/sim.js +++ b/StoneIsland/platforms/ios/www/js/lib/etc/sim.js @@ -10,6 +10,7 @@ var sim = (function(){ } sim.fetch = function(cb){ + console.log('fetching sim data') sim.afterFetch = cb window.plugins.sim.getSimInfo(sim.success, sim.error) } @@ -26,7 +27,6 @@ var sim = (function(){ sim.data.countryCode = 'us' } } - sim.data.countryCode = 'ca' sim.loaded = true sim.afterFetch() } @@ -38,6 +38,10 @@ var sim = (function(){ jsonp: "callback", dataType: "jsonp", success: sim.success, + error: function(){ + sim.loaded = true + sim.afterFetch() + } }) } diff --git a/StoneIsland/platforms/ios/www/js/lib/nav/AddressView.js b/StoneIsland/platforms/ios/www/js/lib/nav/AddressView.js index fd7df218..64ea265f 100755 --- a/StoneIsland/platforms/ios/www/js/lib/nav/AddressView.js +++ b/StoneIsland/platforms/ios/www/js/lib/nav/AddressView.js @@ -22,7 +22,7 @@ var AddressView = SerializableView.extend({ populate: function(data){ this.$("[name=Province]").empty() this.$("[name=Province]").append(this.us_states) - if (! app.store.notAvailableInCanada) { + if (! app.store.NotAvailableInCanada) { this.$("[name=Province]").append(this.ca_states) } this.data = data diff --git a/StoneIsland/platforms/ios/www/js/lib/products/CollectionView.js b/StoneIsland/platforms/ios/www/js/lib/products/CollectionView.js index 7c73d66f..4674fc18 100755 --- a/StoneIsland/platforms/ios/www/js/lib/products/CollectionView.js +++ b/StoneIsland/platforms/ios/www/js/lib/products/CollectionView.js @@ -121,10 +121,16 @@ var CollectionView = ScrollableView.extend({ if (is_single_product) { console.log("IS SINGLE PRODUCT") var item = data.SearchResponseFull.Results.Items[0] - var url = sdk.image(item['DefaultCode10'], '13_f') - console.log(url) - var img = new Image () - img.src = url + // console.log(data.SearchResponseFull.Results) + if (item) { + var url = sdk.image(item['DefaultCode10'], '13_f') + console.log(url) + var img = new Image () + img.src = url + } + else { + console.log("no products at all!") + } } // if (data.SearchResponseFull.Results.Items.length == 1) { diff --git a/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js b/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js index 7434888c..218c151d 100755 --- a/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js +++ b/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js @@ -130,7 +130,7 @@ var ProductView = ScrollableView.extend({ var default_color_id = this.populate_selectors(data, details) - var notAvailableInCanada = !! app.store.notAvailableInCanada + var notAvailableInCanada = !! app.store.NotAvailableInCanada app.product.$notAvailableInCanada.toggle( notAvailableInCanada ) if (notAvailableInCanada && sim.data.countryCode === 'ca') { this.isNotAvailable = true -- cgit v1.2.3-70-g09d2