summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-10-03 03:08:25 +0200
committerJules Laplace <julescarbon@gmail.com>2018-10-03 03:08:25 +0200
commit58eb0a78f6c0e717278a2ac2e00ef2afa2cbea2b (patch)
treeb1d64c03a9fddf3037561c1d2d42751fbc011533
parent28b7ef196eaca6b9e455846cf6233bbabd9e4513 (diff)
do everything we can to force lockout
-rw-r--r--StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js4
-rw-r--r--StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj34
-rw-r--r--StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist2
-rw-r--r--StoneIsland/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj36
-rw-r--r--StoneIsland/platforms/ios/Pods/Pods.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/Pods-Stone Island.xcscheme39
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island.xcodeproj/project.pbxproj39
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist2
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcworkspace/xcshareddata/xcschemes/Stone Island.xcscheme2
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstatebin26865 -> 29676 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist64
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island/config.xml2
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/_router.js16
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/account/AccountView.js4
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js11
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/auth/LoginView.js4
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/auth/LogoutView.js1
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/auth/SignupView.js10
-rwxr-xr-xStoneIsland/www/js/lib/_router.js16
-rwxr-xr-xStoneIsland/www/js/lib/account/AccountView.js4
-rw-r--r--StoneIsland/www/js/lib/account/ConsentModal.js11
-rwxr-xr-xStoneIsland/www/js/lib/auth/LoginView.js4
-rwxr-xr-xStoneIsland/www/js/lib/auth/LogoutView.js1
-rwxr-xr-xStoneIsland/www/js/lib/auth/SignupView.js10
23 files changed, 220 insertions, 96 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js b/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js
index dfeb4fac..9fc736dc 100644
--- a/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js
+++ b/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js
@@ -36,7 +36,7 @@ var ConsentModal = View.extend({
this.$el.addClass('visible')
}.bind(this), 20)
app.curtain.show()
- app.curtain.classList.add('opaque')
+ app.curtain.$el.addClass('opaque')
},
hide: function(){
@@ -44,7 +44,7 @@ var ConsentModal = View.extend({
this.$el.removeClass('visible')
setTimeout(function(){
this.$el.hide()
- app.curtain.classList.remove('opaque')
+ app.curtain.$el.removeClass('opaque')
}.bind(this), 300)
},
diff --git a/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj b/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
index 4df32ce5..4a83bc2c 100644
--- a/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
+++ b/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
@@ -459,7 +459,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0720;
+ LastUpgradeCheck = 1000;
TargetAttributes = {
C0C01EB11E3911D50056E6CB = {
CreatedOnToolsVersion = 8.2;
@@ -597,18 +597,33 @@
1DEB922308733DC00010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = "";
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
@@ -628,16 +643,31 @@
1DEB922408733DC00010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = "";
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
@@ -656,7 +686,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD)";
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
@@ -707,7 +736,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD)";
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
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 4bc8d36e..daa4d171 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
@@ -7,7 +7,7 @@
<key>Cordova.xcscheme</key>
<dict>
<key>orderHint</key>
- <integer>3</integer>
+ <integer>4</integer>
</dict>
<key>CordovaLib.xcscheme</key>
<dict>
diff --git a/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj b/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj
index c9b4f412..64d5b742 100644
--- a/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj
+++ b/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj
@@ -23,7 +23,7 @@
6A055A93C3564E5CDA417C640324E176 /* GoogleUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleUtilities.framework; path = Frameworks/frameworks/GoogleUtilities.framework; sourceTree = "<group>"; };
6A52371D28A634057B785F5B581084AF /* GoogleSymbolUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleSymbolUtilities.framework; path = Frameworks/frameworks/GoogleSymbolUtilities.framework; sourceTree = "<group>"; };
8127A92CEFC4B6BC0D037BBDADA1B051 /* GGLInstanceIDConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GGLInstanceIDConfig.h; path = Headers/Public/GGLInstanceIDConfig.h; sourceTree = "<group>"; };
- 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
+ 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
A110B0A704D9AE1951A8F07D446042C1 /* Pods-Stone Island-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Stone Island-resources.sh"; sourceTree = "<group>"; };
B47CA48C3A76744553D639170A059DED /* Pods-Stone Island-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Stone Island-acknowledgements.plist"; sourceTree = "<group>"; };
BD469413B9D194472712F81C4C19217C /* GGLInstanceIDHeaders.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GGLInstanceIDHeaders.h; path = Headers/Public/GGLInstanceIDHeaders.h; sourceTree = "<group>"; };
@@ -31,7 +31,7 @@
CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
D6448B738D0F834A89872ACF4F33A1AA /* libGGLInstanceIDLib.a */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = archive.ar; name = libGGLInstanceIDLib.a; path = Libraries/libGGLInstanceIDLib.a; sourceTree = "<group>"; };
E04BE7A3CBD84DBAA76FC51758B7CED6 /* GCMConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GCMConfig.h; path = Headers/Public/GCMConfig.h; sourceTree = "<group>"; };
- E7C2BA0DA51EB36ED5DB61FE0CD57F36 /* libPods-Stone Island.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-Stone Island.a"; path = "libPods-Stone Island.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+ E7C2BA0DA51EB36ED5DB61FE0CD57F36 /* libPods-Stone Island.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Stone Island.a"; sourceTree = BUILT_PRODUCTS_DIR; };
EA6ECB7498639194EA9C76AA5A5335AA /* GCMPubSub.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GCMPubSub.h; path = Headers/Public/GCMPubSub.h; sourceTree = "<group>"; };
EE0A605C9B1A1EA6221D258D4E528AD7 /* GGLInstanceIDDelegate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GGLInstanceIDDelegate.h; path = Headers/Public/GGLInstanceIDDelegate.h; sourceTree = "<group>"; };
EEFE0B43B6BEB77AB2B72163776B3431 /* libGcmLib.a */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = archive.ar; name = libGcmLib.a; path = Libraries/libGcmLib.a; sourceTree = "<group>"; };
@@ -81,7 +81,6 @@
BD469413B9D194472712F81C4C19217C /* GGLInstanceIDHeaders.h */,
FEEE277DB90FD41AA0B77E6258108DFB /* Frameworks */,
);
- name = GGLInstanceID;
path = GGLInstanceID;
sourceTree = "<group>";
};
@@ -90,7 +89,6 @@
children = (
CAFDBEDBC9861619C5BC0B5A525B32E5 /* Frameworks */,
);
- name = GoogleInterchangeUtilities;
path = GoogleInterchangeUtilities;
sourceTree = "<group>";
};
@@ -99,7 +97,6 @@
children = (
E8A2173F40F6AA192DD2A76C1203C416 /* Frameworks */,
);
- name = GoogleUtilities;
path = GoogleUtilities;
sourceTree = "<group>";
};
@@ -135,7 +132,6 @@
children = (
2FD026630DDFF013082B2945DB20B798 /* Frameworks */,
);
- name = GoogleIPhoneUtilities;
path = GoogleIPhoneUtilities;
sourceTree = "<group>";
};
@@ -175,7 +171,6 @@
children = (
B9E958B53590711D484747E648D2BBAF /* Frameworks */,
);
- name = GoogleSymbolUtilities;
path = GoogleSymbolUtilities;
sourceTree = "<group>";
};
@@ -221,7 +216,6 @@
F3E864806D6F83145EA52D163BA1A423 /* GoogleCloudMessaging.h */,
A770D2EDC6FA25DCD787792DF757FA50 /* Frameworks */,
);
- name = GoogleCloudMessaging;
path = GoogleCloudMessaging;
sourceTree = "<group>";
};
@@ -259,7 +253,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
- LastUpgradeCheck = 0700;
+ LastUpgradeCheck = 1000;
};
buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */;
compatibilityVersion = "Xcode 3.2";
@@ -299,20 +293,32 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGNING_REQUIRED = NO;
COPY_PHASE_STRIP = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"POD_CONFIGURATION_DEBUG=1",
@@ -343,19 +349,31 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGNING_REQUIRED = NO;
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"POD_CONFIGURATION_RELEASE=1",
"$(inherited)",
diff --git a/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/Pods-Stone Island.xcscheme b/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/Pods-Stone Island.xcscheme
index 3079e230..fe2e8b66 100644
--- a/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/Pods-Stone Island.xcscheme
+++ b/StoneIsland/platforms/ios/Pods/Pods.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/Pods-Stone Island.xcscheme
@@ -1,36 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
- LastUpgradeVersion = "0700"
+ LastUpgradeVersion = "1000"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
- buildForAnalyzing = "YES"
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
- buildForArchiving = "YES">
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
<BuildableReference
- BuildableIdentifier = 'primary'
- BlueprintIdentifier = '270B46424A6E550E1583E7A97AAD265A'
- BlueprintName = 'Pods-Stone Island'
- ReferencedContainer = 'container:Pods.xcodeproj'
- BuildableName = 'libPods-Stone Island.a'>
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "270B46424A6E550E1583E7A97AAD265A"
+ BuildableName = "libPods-Stone Island.a"
+ BlueprintName = "Pods-Stone Island"
+ ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
+ buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
- shouldUseLaunchSchemeArgsEnv = "YES"
- buildConfiguration = "Debug">
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <Testables>
+ </Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
+ buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
@@ -38,17 +41,25 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
- buildConfiguration = "Debug"
allowLocationSimulation = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "270B46424A6E550E1583E7A97AAD265A"
+ BuildableName = "libPods-Stone Island.a"
+ BlueprintName = "Pods-Stone Island"
+ ReferencedContainer = "container:Pods.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
+ buildConfiguration = "Release"
+ shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
- debugDocumentVersioning = "YES"
- buildConfiguration = "Release"
- shouldUseLaunchSchemeArgsEnv = "YES">
+ debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
diff --git a/StoneIsland/platforms/ios/Stone Island.xcodeproj/project.pbxproj b/StoneIsland/platforms/ios/Stone Island.xcodeproj/project.pbxproj
index a637a063..439fe75d 100755
--- a/StoneIsland/platforms/ios/Stone Island.xcodeproj/project.pbxproj
+++ b/StoneIsland/platforms/ios/Stone Island.xcodeproj/project.pbxproj
@@ -21,6 +21,7 @@
302D95F214D2391D003F00A1 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 302D95F014D2391D003F00A1 /* MainViewController.xib */; };
39038318C27847DB870A49EB /* CDVNotification.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 27A9C4124A89409C8BC0DD79 /* CDVNotification.bundle */; };
4A725BB47EC04C27870B4284 /* CDVDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = 142E97E3B65B4A97871EF56B /* CDVDevice.m */; };
+ 52A4EAACA1F34D6EBEED78A3 /* Sim.m in Sources */ = {isa = PBXBuildFile; fileRef = DCFA1E58FE794CA6BE2A4834 /* Sim.m */; };
54D2276159A643C0842544DC /* IonicKeyboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 1107C28047914B18972732CA /* IonicKeyboard.m */; };
5EEEF00CFB48468AAE7D7AA5 /* CDVInAppBrowser.m in Sources */ = {isa = PBXBuildFile; fileRef = B19F57B684894575BA9C4C7D /* CDVInAppBrowser.m */; };
6AFF5BF91D6E424B00AB3073 /* CDVLaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */; };
@@ -38,7 +39,6 @@
CE8687FA42EA49F2936AA5E4 /* CDVConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 669C0562CA3E4A2E9E6898D6 /* CDVConnection.m */; };
EE95056671E844C9921729AE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65AAB41973FB4238B7AD4D85 /* AudioToolbox.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
EFF00C22294FE756DED28A81 /* libPods-Stone Island.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78CB957A0B40BA339C669D53 /* libPods-Stone Island.a */; };
- 52A4EAACA1F34D6EBEED78A3 /* Sim.m in Sources */ = {isa = PBXBuildFile; fileRef = DCFA1E58FE794CA6BE2A4834 /* Sim.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -89,6 +89,7 @@
3047A5111AB8059700498E2A /* build.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = build.xcconfig; path = cordova/build.xcconfig; sourceTree = SOURCE_ROOT; };
32CA4F630368D1EE00C91783 /* Stone Island-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Stone Island-Prefix.pch"; sourceTree = "<group>"; };
36AD62C39502408DBAD51080 /* CDVSplashScreen.m */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.objc; name = CDVSplashScreen.m; path = "cordova-plugin-splashscreen/CDVSplashScreen.m"; sourceTree = "<group>"; };
+ 3782AD713ACA4C098142F2DA /* Sim.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = Sim.h; path = "cordova-plugin-sim/Sim.h"; sourceTree = "<group>"; };
38970A40E95843B9BB3503ED /* IonicKeyboard.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = IonicKeyboard.h; path = "ionic-plugin-keyboard/IonicKeyboard.h"; sourceTree = "<group>"; };
4B1911CDF0454542977ECE35 /* PushPlugin.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = PushPlugin.h; path = "phonegap-plugin-push/PushPlugin.h"; sourceTree = "<group>"; };
50A58DD62BEC4152A29217D7 /* MessageUI.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = MessageUI.framework; path = System/Library/Frameworks/MessageUI.framework; sourceTree = SDKROOT; };
@@ -116,6 +117,7 @@
CEF393D5749347098BED6D82 /* AppDelegate+notification.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "AppDelegate+notification.h"; path = "phonegap-plugin-push/AppDelegate+notification.h"; sourceTree = "<group>"; };
D62CF70A22F345F89143B716 /* CDVDevice.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = CDVDevice.h; path = "cordova-plugin-device/CDVDevice.h"; sourceTree = "<group>"; };
D6E527DDEFEB4E76836743A3 /* SocialSharing.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = SocialSharing.h; path = "cordova-plugin-x-socialsharing/SocialSharing.h"; sourceTree = "<group>"; };
+ DCFA1E58FE794CA6BE2A4834 /* Sim.m */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.objc; name = Sim.m; path = "cordova-plugin-sim/Sim.m"; sourceTree = "<group>"; };
DFE04D15A72949DFBFB30EBF /* CDVInAppBrowser.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = CDVInAppBrowser.h; path = "cordova-plugin-inappbrowser/CDVInAppBrowser.h"; sourceTree = "<group>"; };
E4F82CF8E54743D6AD137826 /* SystemConfiguration.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
EA444381718F453580CB5C50 /* CDVConnection.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = CDVConnection.h; path = "cordova-plugin-network-information/CDVConnection.h"; sourceTree = "<group>"; };
@@ -125,8 +127,6 @@
EDA99B42F1E147FCA8824E6E /* CoreLocation.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
F840E1F0165FE0F500CFE078 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = config.xml; path = "Stone Island/config.xml"; sourceTree = "<group>"; };
F9D019AC51834C309501EAF5 /* CDVReachability.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = CDVReachability.h; path = "cordova-plugin-network-information/CDVReachability.h"; sourceTree = "<group>"; };
- DCFA1E58FE794CA6BE2A4834 /* Sim.m */ = {isa = PBXFileReference; name = "Sim.m"; path = "cordova-plugin-sim/Sim.m"; sourceTree = "<group>"; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; explicitFileType = undefined; includeInIndex = 0; };
- 3782AD713ACA4C098142F2DA /* Sim.h */ = {isa = PBXFileReference; name = "Sim.h"; path = "cordova-plugin-sim/Sim.h"; sourceTree = "<group>"; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -335,7 +335,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 510;
+ LastUpgradeCheck = 1000;
TargetAttributes = {
1D6058900D05DD3D006BFB54 = {
DevelopmentTeam = C6JQTPGJ97;
@@ -518,6 +518,7 @@
INFOPLIST_FILE = "Stone Island/Stone Island-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = us.okfoc.stoneisland;
PRODUCT_NAME = "Stone Island";
PROVISIONING_PROFILE_SPECIFIER = "";
TARGETED_DEVICE_FAMILY = "1,2";
@@ -543,6 +544,7 @@
INFOPLIST_FILE = "Stone Island/Stone Island-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = us.okfoc.stoneisland;
PRODUCT_NAME = "Stone Island";
PROVISIONING_PROFILE_SPECIFIER = "";
TARGETED_DEVICE_FAMILY = "1,2";
@@ -555,15 +557,30 @@
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = "";
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
@@ -581,15 +598,29 @@
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = "";
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
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 371cb20d..d744b66e 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 @@
<key>Stone Island.xcscheme</key>
<dict>
<key>orderHint</key>
- <integer>2</integer>
+ <integer>3</integer>
</dict>
</dict>
</dict>
diff --git a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcshareddata/xcschemes/Stone Island.xcscheme b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcshareddata/xcschemes/Stone Island.xcscheme
index 72339618..3f39bee8 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcshareddata/xcschemes/Stone Island.xcscheme
+++ b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcshareddata/xcschemes/Stone Island.xcscheme
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
- LastUpgradeVersion = "0730"
+ LastUpgradeVersion = "1000"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
diff --git a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate
index 5d04e3c9..5655a8d7 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate
+++ b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist b/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist
index 578dfe3e..0929c35f 100644
--- a/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist
+++ b/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist
@@ -21,58 +21,58 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0.6</string>
+ <string>1.0.8</string>
<key>CFBundleSignature</key>
<string>????</string>
+ <key>CFBundleURLTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>stoneisland</string>
+ </array>
+ </dict>
+ </array>
<key>CFBundleVersion</key>
- <string>1.0.6</string>
+ <string>1.0.8</string>
+ <key>GCM_SENDER_ID</key>
+ <string>85075801930</string>
+ <key>IS_GCM_ENABLED</key>
+ <true/>
<key>LSRequiresIPhoneOS</key>
<true/>
+ <key>NSAppTransportSecurity</key>
+ <dict>
+ <key>NSAllowsArbitraryLoads</key>
+ <true/>
+ </dict>
+ <key>NSLocationWhenInUseUsageDescription</key>
+ <string>Stone Island needs to serve content based on your location.</string>
<key>NSMainNibFile</key>
<string/>
<key>NSMainNibFile~ipad</key>
<string/>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- </array>
- <key>UISupportedInterfaceOrientations~ipad</key>
+ <key>UIBackgroundModes</key>
<array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>remote-notification</string>
</array>
- <key>UIRequiresFullScreen</key>
- <true/>
- <key>NSAppTransportSecurity</key>
- <dict>
- <key>NSAllowsArbitraryLoads</key>
- <true/>
- </dict>
<key>UIInterfaceOrientation</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UILaunchStoryboardName</key>
<string>CDVLaunchScreen</string>
- <key>CFBundleURLTypes</key>
+ <key>UIRequiresFullScreen</key>
+ <true/>
+ <key>UISupportedInterfaceOrientations</key>
<array>
- <dict>
- <key>CFBundleURLSchemes</key>
- <array>
- <string>stoneisland</string>
- </array>
- </dict>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
- <key>NSLocationWhenInUseUsageDescription</key>
- <string>Stone Island needs to serve content based on your location.</string>
- <key>UIBackgroundModes</key>
+ <key>UISupportedInterfaceOrientations~ipad</key>
<array>
- <string>remote-notification</string>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
- <key>GCM_SENDER_ID</key>
- <string>85075801930</string>
- <key>IS_GCM_ENABLED</key>
- <true/>
</dict>
</plist> \ No newline at end of file
diff --git a/StoneIsland/platforms/ios/Stone Island/config.xml b/StoneIsland/platforms/ios/Stone Island/config.xml
index 3b86f48b..72311c70 100755
--- a/StoneIsland/platforms/ios/Stone Island/config.xml
+++ b/StoneIsland/platforms/ios/Stone Island/config.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
-<widget android-versionCode="6106" id="us.okfoc.stoneisland" version="1.0.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+<widget android-versionCode="6108" id="us.okfoc.stoneisland" version="1.0.8" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage" />
</feature>
diff --git a/StoneIsland/platforms/ios/www/js/lib/_router.js b/StoneIsland/platforms/ios/www/js/lib/_router.js
index 91f29b55..75f598e9 100755
--- a/StoneIsland/platforms/ios/www/js/lib/_router.js
+++ b/StoneIsland/platforms/ios/www/js/lib/_router.js
@@ -40,7 +40,14 @@ var SiteRouter = Router.extend({
'/cart/error': 'cart.error',
},
- terms_routes: ['terms','account_terms','privacy','returns','care','logout'],
+ terms_routes: [
+ 'terms',
+ 'account_terms',
+ 'privacy',
+ 'returns',
+ 'care',
+ 'logout',
+ ],
initialize: function(){
var fn
@@ -105,8 +112,11 @@ var SiteRouter = Router.extend({
// return
// }
- var isTermsRoute = this.terms_routes.indexOf(name) !== -1
- if (app.demand_consent && !isTermsRoute && app.account.consent.check()) {
+ var isNotTermsRoute = this.terms_routes.indexOf(name) === -1
+ var isCartRoute = n[0] === 'cart'
+ var userMightActuallyViewCart = isCartRoute && auth.logged_in()
+ var demandingConsent = app.demand_consent && isNotTermsRoute
+ if ((userMightActuallyViewCart || demandingConsent) && app.account.consent.check()) {
console.log('showed consent modal')
return
}
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js b/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
index 4605416c..8ac7c193 100755
--- a/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
@@ -105,6 +105,7 @@ var AccountView = View.extend({
cb && cb()
}
console.log('logged in')
+ app.account.consent.check()
if ( ! auth.has_cart() ) {
console.log('no cart')
app.curtain.show("loading")
@@ -132,9 +133,10 @@ var AccountView = View.extend({
console.log("navigating to deep link route from logged_in")
app.router.go(initialLoginPath)
}
- else {
+ else if (!app.last_view) {
app.router.go("account/profile")
}
+ app.account.consent.check()
app.curtain.hide("loading")
}
},
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js b/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
index dfeb4fac..c9235498 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
@@ -18,11 +18,14 @@ var ConsentModal = View.extend({
check: function(){
var status = localStorage.getItem('account_terms.consent')
+ console.log('account_terms.consent', status)
if (status !== 'true') {
+ console.log('we demand consent!')
app.demand_consent = true
this.show()
return true
} else {
+ console.log('already received consent!')
this.hide()
app.demand_consent = false
return false
@@ -35,8 +38,10 @@ var ConsentModal = View.extend({
setTimeout(function(){
this.$el.addClass('visible')
}.bind(this), 20)
- app.curtain.show()
- app.curtain.classList.add('opaque')
+ app.curtain.show('opaque')
+ setTimeout(function(){
+ app.curtain.show('opaque')
+ }, 300)
},
hide: function(){
@@ -44,7 +49,7 @@ var ConsentModal = View.extend({
this.$el.removeClass('visible')
setTimeout(function(){
this.$el.hide()
- app.curtain.classList.remove('opaque')
+ app.curtain.$el.removeClass('opaque')
}.bind(this), 300)
},
diff --git a/StoneIsland/platforms/ios/www/js/lib/auth/LoginView.js b/StoneIsland/platforms/ios/www/js/lib/auth/LoginView.js
index aeb15d1d..c3d839a5 100755
--- a/StoneIsland/platforms/ios/www/js/lib/auth/LoginView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/auth/LoginView.js
@@ -43,9 +43,7 @@ var LoginView = FormView.extend({
success: function(data){
console.log(data)
- app.account.logged_in(function(){
- app.router.go("store")
- })
+ app.account.logged_in(null, "store")
},
error: function(data){
diff --git a/StoneIsland/platforms/ios/www/js/lib/auth/LogoutView.js b/StoneIsland/platforms/ios/www/js/lib/auth/LogoutView.js
index 89091473..d3f76428 100755
--- a/StoneIsland/platforms/ios/www/js/lib/auth/LogoutView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/auth/LogoutView.js
@@ -10,6 +10,7 @@ var LogoutView = View.extend({
app.header.set_cart_count(0)
app.footer.hide()
auth.log_out()
+ localStorage.setItem('account_terms.consent', 'false')
app.demand_consent = false
app.account.consent.hide()
app.account.logged_out()
diff --git a/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js b/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js
index 078f7c07..917644d2 100755
--- a/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js
@@ -68,10 +68,12 @@ var SignupView = FormView.extend({
var now = new Date ()
var year = now.getFullYear()
- if (! data.Birthday) data.BirthDay = year + '-01-01'
- if (data.BirthDay.split('-')[0] || '2018')
+ if (! data.BirthDay) {
+ data.BirthDay = year + '-01-01'
+ }
+ // if (data.BirthDay.split('-')[0] || '2018')
var birthday = new Date (data.BirthDay)
- if (isNaN(birthday) || (now - birthday) / (365*24*60*60*1000) < 18) {
+ if (isNaN(birthday) || (new Date () - birthday) / (365*24*60*60*1000) < 18) {
errors.push(['BirthDay', 'You must be 18 or older to use the Stone Island app.'])
}
@@ -108,7 +110,7 @@ var SignupView = FormView.extend({
auth.user.Email = this.last_data.Email
auth.user.BirthDay = this.last_data.BirthDay
localStorage.setItem('account_terms.consent', 'true')
- app.account.logged_in(function(){ app.router.go("store") })
+ app.account.logged_in(null, "store")
},
error: function(data){
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
index 91f29b55..75f598e9 100755
--- a/StoneIsland/www/js/lib/_router.js
+++ b/StoneIsland/www/js/lib/_router.js
@@ -40,7 +40,14 @@ var SiteRouter = Router.extend({
'/cart/error': 'cart.error',
},
- terms_routes: ['terms','account_terms','privacy','returns','care','logout'],
+ terms_routes: [
+ 'terms',
+ 'account_terms',
+ 'privacy',
+ 'returns',
+ 'care',
+ 'logout',
+ ],
initialize: function(){
var fn
@@ -105,8 +112,11 @@ var SiteRouter = Router.extend({
// return
// }
- var isTermsRoute = this.terms_routes.indexOf(name) !== -1
- if (app.demand_consent && !isTermsRoute && app.account.consent.check()) {
+ var isNotTermsRoute = this.terms_routes.indexOf(name) === -1
+ var isCartRoute = n[0] === 'cart'
+ var userMightActuallyViewCart = isCartRoute && auth.logged_in()
+ var demandingConsent = app.demand_consent && isNotTermsRoute
+ if ((userMightActuallyViewCart || demandingConsent) && app.account.consent.check()) {
console.log('showed consent modal')
return
}
diff --git a/StoneIsland/www/js/lib/account/AccountView.js b/StoneIsland/www/js/lib/account/AccountView.js
index 4605416c..8ac7c193 100755
--- a/StoneIsland/www/js/lib/account/AccountView.js
+++ b/StoneIsland/www/js/lib/account/AccountView.js
@@ -105,6 +105,7 @@ var AccountView = View.extend({
cb && cb()
}
console.log('logged in')
+ app.account.consent.check()
if ( ! auth.has_cart() ) {
console.log('no cart')
app.curtain.show("loading")
@@ -132,9 +133,10 @@ var AccountView = View.extend({
console.log("navigating to deep link route from logged_in")
app.router.go(initialLoginPath)
}
- else {
+ else if (!app.last_view) {
app.router.go("account/profile")
}
+ app.account.consent.check()
app.curtain.hide("loading")
}
},
diff --git a/StoneIsland/www/js/lib/account/ConsentModal.js b/StoneIsland/www/js/lib/account/ConsentModal.js
index dfeb4fac..c9235498 100644
--- a/StoneIsland/www/js/lib/account/ConsentModal.js
+++ b/StoneIsland/www/js/lib/account/ConsentModal.js
@@ -18,11 +18,14 @@ var ConsentModal = View.extend({
check: function(){
var status = localStorage.getItem('account_terms.consent')
+ console.log('account_terms.consent', status)
if (status !== 'true') {
+ console.log('we demand consent!')
app.demand_consent = true
this.show()
return true
} else {
+ console.log('already received consent!')
this.hide()
app.demand_consent = false
return false
@@ -35,8 +38,10 @@ var ConsentModal = View.extend({
setTimeout(function(){
this.$el.addClass('visible')
}.bind(this), 20)
- app.curtain.show()
- app.curtain.classList.add('opaque')
+ app.curtain.show('opaque')
+ setTimeout(function(){
+ app.curtain.show('opaque')
+ }, 300)
},
hide: function(){
@@ -44,7 +49,7 @@ var ConsentModal = View.extend({
this.$el.removeClass('visible')
setTimeout(function(){
this.$el.hide()
- app.curtain.classList.remove('opaque')
+ app.curtain.$el.removeClass('opaque')
}.bind(this), 300)
},
diff --git a/StoneIsland/www/js/lib/auth/LoginView.js b/StoneIsland/www/js/lib/auth/LoginView.js
index aeb15d1d..c3d839a5 100755
--- a/StoneIsland/www/js/lib/auth/LoginView.js
+++ b/StoneIsland/www/js/lib/auth/LoginView.js
@@ -43,9 +43,7 @@ var LoginView = FormView.extend({
success: function(data){
console.log(data)
- app.account.logged_in(function(){
- app.router.go("store")
- })
+ app.account.logged_in(null, "store")
},
error: function(data){
diff --git a/StoneIsland/www/js/lib/auth/LogoutView.js b/StoneIsland/www/js/lib/auth/LogoutView.js
index 89091473..d3f76428 100755
--- a/StoneIsland/www/js/lib/auth/LogoutView.js
+++ b/StoneIsland/www/js/lib/auth/LogoutView.js
@@ -10,6 +10,7 @@ var LogoutView = View.extend({
app.header.set_cart_count(0)
app.footer.hide()
auth.log_out()
+ localStorage.setItem('account_terms.consent', 'false')
app.demand_consent = false
app.account.consent.hide()
app.account.logged_out()
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js
index 078f7c07..917644d2 100755
--- a/StoneIsland/www/js/lib/auth/SignupView.js
+++ b/StoneIsland/www/js/lib/auth/SignupView.js
@@ -68,10 +68,12 @@ var SignupView = FormView.extend({
var now = new Date ()
var year = now.getFullYear()
- if (! data.Birthday) data.BirthDay = year + '-01-01'
- if (data.BirthDay.split('-')[0] || '2018')
+ if (! data.BirthDay) {
+ data.BirthDay = year + '-01-01'
+ }
+ // if (data.BirthDay.split('-')[0] || '2018')
var birthday = new Date (data.BirthDay)
- if (isNaN(birthday) || (now - birthday) / (365*24*60*60*1000) < 18) {
+ if (isNaN(birthday) || (new Date () - birthday) / (365*24*60*60*1000) < 18) {
errors.push(['BirthDay', 'You must be 18 or older to use the Stone Island app.'])
}
@@ -108,7 +110,7 @@ var SignupView = FormView.extend({
auth.user.Email = this.last_data.Email
auth.user.BirthDay = this.last_data.BirthDay
localStorage.setItem('account_terms.consent', 'true')
- app.account.logged_in(function(){ app.router.go("store") })
+ app.account.logged_in(null, "store")
},
error: function(data){