summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/Stone Island/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/Stone Island/Plugins')
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/ios/Stone Island/Plugins/README0
-rw-r--r--[l---------]StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Boltsbin18 -> 2687780 bytes
l---------StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers1
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLink.h49
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkNavigation.h93
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkResolving.h30
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h87
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h91
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkTarget.h33
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFExecutor.h58
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFMeasurementEvent.h46
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTask.h166
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTaskCompletionSource.h85
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFURL.h77
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFWebViewAppLinkResolver.h26
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/Bolts.h37
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BoltsVersion.h1
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.h0
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m180
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.h0
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.m0
21 files changed, 992 insertions, 68 deletions
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/README b/StoneIsland/platforms/ios/Stone Island/Plugins/README
index 87df09f2..87df09f2 100755..100644
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/README
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/README
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Bolts b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Bolts
index 190cc04c..2f6ba68d 120000..100644
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Bolts
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Bolts
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers
deleted file mode 120000
index b0cc393f..00000000
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers
+++ /dev/null
@@ -1 +0,0 @@
-./Versions/A/Headers \ No newline at end of file
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLink.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLink.h
new file mode 100644
index 00000000..5e51acd8
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLink.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+/*! The version of the App Link protocol that this library supports */
+FOUNDATION_EXPORT NSString *const BFAppLinkVersion;
+
+/*!
+ Contains App Link metadata relevant for navigation on this device
+ derived from the HTML at a given URL.
+ */
+@interface BFAppLink : NSObject
+
+/*!
+ Creates a BFAppLink with the given list of BFAppLinkTargets and target URL.
+
+ Generally, this will only be used by implementers of the BFAppLinkResolving protocol,
+ as these implementers will produce App Link metadata for a given URL.
+
+ @param sourceURL the URL from which this App Link is derived
+ @param targets an ordered list of BFAppLinkTargets for this platform derived
+ from App Link metadata.
+ @param webURL the fallback web URL, if any, for the app link.
+ */
++ (instancetype)appLinkWithSourceURL:(NSURL *)sourceURL
+ targets:(NSArray *)targets
+ webURL:(NSURL *)webURL;
+
+/*! The URL from which this BFAppLink was derived */
+@property (nonatomic, strong, readonly) NSURL *sourceURL;
+
+/*!
+ The ordered list of targets applicable to this platform that will be used
+ for navigation.
+ */
+@property (nonatomic, copy, readonly) NSArray *targets;
+
+/*! The fallback web URL to use if no targets are installed on this device. */
+@property (nonatomic, strong, readonly) NSURL *webURL;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkNavigation.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkNavigation.h
new file mode 100644
index 00000000..d459f722
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkNavigation.h
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+#import <Bolts/BFAppLink.h>
+
+/*!
+ The result of calling navigate on a BFAppLinkNavigation
+ */
+typedef NS_ENUM(NSInteger, BFAppLinkNavigationType) {
+ /*! Indicates that the navigation failed and no app was opened */
+ BFAppLinkNavigationTypeFailure,
+ /*! Indicates that the navigation succeeded by opening the URL in the browser */
+ BFAppLinkNavigationTypeBrowser,
+ /*! Indicates that the navigation succeeded by opening the URL in an app on the device */
+ BFAppLinkNavigationTypeApp
+};
+
+@protocol BFAppLinkResolving;
+@class BFTask;
+
+/*!
+ Represents a pending request to navigate to an App Link. Most developers will
+ simply use navigateToURLInBackground: to open a URL, but developers can build
+ custom requests with additional navigation and app data attached to them by
+ creating BFAppLinkNavigations themselves.
+ */
+@interface BFAppLinkNavigation : NSObject
+
+/*!
+ The extras for the AppLinkNavigation. This will generally contain application-specific
+ data that should be passed along with the request, such as advertiser or affiliate IDs or
+ other such metadata relevant on this device.
+ */
+@property (nonatomic, copy, readonly) NSDictionary *extras;
+
+/*!
+ The al_applink_data for the AppLinkNavigation. This will generally contain data common to
+ navigation attempts such as back-links, user agents, and other information that may be used
+ in routing and handling an App Link request.
+ */
+@property (nonatomic, copy, readonly) NSDictionary *appLinkData;
+
+/*! The AppLink to navigate to */
+@property (nonatomic, strong, readonly) BFAppLink *appLink;
+
+/*! Creates an AppLinkNavigation with the given link, extras, and App Link data */
++ (instancetype)navigationWithAppLink:(BFAppLink *)appLink
+ extras:(NSDictionary *)extras
+ appLinkData:(NSDictionary *)appLinkData;
+
+/*! Performs the navigation */
+- (BFAppLinkNavigationType)navigate:(NSError **)error;
+
+/*! Returns a BFAppLink for the given URL */
++ (BFTask *)resolveAppLinkInBackground:(NSURL *)destination;
+
+/*! Returns a BFAppLink for the given URL using the given App Link resolution strategy */
++ (BFTask *)resolveAppLinkInBackground:(NSURL *)destination resolver:(id<BFAppLinkResolving>)resolver;
+
+/*! Navigates to a BFAppLink and returns whether it opened in-app or in-browser */
++ (BFAppLinkNavigationType)navigateToAppLink:(BFAppLink *)link error:(NSError **)error;
+
+/*! Navigates to a URL (an asynchronous action) and returns a BFNavigationType */
++ (BFTask *)navigateToURLInBackground:(NSURL *)destination;
+
+/*!
+ Navigates to a URL (an asynchronous action) using the given App Link resolution
+ strategy and returns a BFNavigationType
+ */
++ (BFTask *)navigateToURLInBackground:(NSURL *)destination resolver:(id<BFAppLinkResolving>)resolver;
+
+/*!
+ Gets the default resolver to be used for App Link resolution. If the developer has not set one explicitly,
+ a basic, built-in resolver will be used.
+ */
++ (id<BFAppLinkResolving>)defaultResolver;
+
+/*!
+ Sets the default resolver to be used for App Link resolution. Setting this to nil will revert the
+ default resolver to the basic, built-in resolver provided by Bolts.
+ */
++ (void)setDefaultResolver:(id<BFAppLinkResolving>)resolver;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkResolving.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkResolving.h
new file mode 100644
index 00000000..baa1451e
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkResolving.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+@class BFTask;
+
+/*!
+ Implement this protocol to provide an alternate strategy for resolving
+ App Links that may include pre-fetching, caching, or querying for App Link
+ data from an index provided by a service provider.
+ */
+@protocol BFAppLinkResolving <NSObject>
+
+/*!
+ Asynchronously resolves App Link data for a given URL.
+
+ @param url The URL to resolve into an App Link.
+ @returns A BFTask that will return a BFAppLink for the given URL.
+ */
+- (BFTask *)appLinkFromURLInBackground:(NSURL *)url;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h
new file mode 100644
index 00000000..22648d44
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h
@@ -0,0 +1,87 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
+#import <Bolts/BFAppLinkReturnToRefererView.h>
+
+@class BFAppLink;
+@class BFAppLinkReturnToRefererController;
+
+/*!
+ Protocol that a class can implement in order to be notified when the user has navigated back
+ to the referer of an App Link.
+ */
+@protocol BFAppLinkReturnToRefererControllerDelegate <NSObject>
+
+@optional
+
+/*! Called when the user has tapped to navigate, but before the navigation has been performed. */
+- (void)returnToRefererController:(BFAppLinkReturnToRefererController *)controller
+ willNavigateToAppLink:(BFAppLink *)appLink;
+
+/*! Called after the navigation has been attempted, with an indication of whether the referer
+ app link was successfully opened. */
+- (void)returnToRefererController:(BFAppLinkReturnToRefererController *)controller
+ didNavigateToAppLink:(BFAppLink *)url
+ type:(BFAppLinkNavigationType)type;
+
+@end
+
+/*!
+ A controller class that implements default behavior for a BFAppLinkReturnToRefererView, including
+ the ability to display the view above the navigation bar for navigation-bsaed apps.
+ */
+@interface BFAppLinkReturnToRefererController : NSObject <BFAppLinkReturnToRefererViewDelegate>
+
+/*!
+ The delegate that will be notified when the user navigates back to the referer.
+ */
+@property (nonatomic, weak) id<BFAppLinkReturnToRefererControllerDelegate> delegate;
+
+/*!
+ The BFAppLinkReturnToRefererView this controller is controlling.
+ */
+@property (nonatomic, strong) BFAppLinkReturnToRefererView *view;
+
+/*!
+ Initializes a controller suitable for controlling a BFAppLinkReturnToRefererView that is to be displayed
+ contained within another UIView (i.e., not displayed above the navigation bar).
+ */
+- (instancetype)init;
+
+/*!
+ Initializes a controller suitable for controlling a BFAppLinkReturnToRefererView that is to be displayed
+ displayed above the navigation bar.
+ */
+- (instancetype)initForDisplayAboveNavController:(UINavigationController *)navController;
+
+/*!
+ Removes the view entirely from the navigation controller it is currently displayed in.
+ */
+- (void)removeFromNavController;
+
+/*!
+ Shows the BFAppLinkReturnToRefererView with the specified referer information. If nil or missing data,
+ the view will not be displayed. */
+- (void)showViewForRefererAppLink:(BFAppLink *)refererAppLink;
+
+/*!
+ Shows the BFAppLinkReturnToRefererView with referer information extracted from the specified URL.
+ If nil or missing referer App Link data, the view will not be displayed. */
+- (void)showViewForRefererURL:(NSURL *)url;
+
+/*!
+ Closes the view, possibly animating it.
+ */
+- (void)closeViewAnimated:(BOOL)animated;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h
new file mode 100644
index 00000000..e3af9408
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h
@@ -0,0 +1,91 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
+#import <Bolts/BFAppLinkNavigation.h>
+
+@class BFAppLinkReturnToRefererView;
+@class BFURL;
+
+typedef enum BFIncludeStatusBarInSize {
+ BFIncludeStatusBarInSizeNever,
+ BFIncludeStatusBarInSizeIOS7AndLater,
+ BFIncludeStatusBarInSizeAlways,
+} BFIncludeStatusBarInSize;
+
+/*!
+ Protocol that a class can implement in order to be notified when the user has navigated back
+ to the referer of an App Link.
+ */
+@protocol BFAppLinkReturnToRefererViewDelegate <NSObject>
+
+/*!
+ Called when the user has tapped inside the close button.
+ */
+- (void)returnToRefererViewDidTapInsideCloseButton:(BFAppLinkReturnToRefererView *)view;
+
+/*!
+ Called when the user has tapped inside the App Link portion of the view.
+ */
+- (void)returnToRefererViewDidTapInsideLink:(BFAppLinkReturnToRefererView *)view
+ link:(BFAppLink *)link;
+
+@end
+
+/*!
+ Provides a UIView that displays a button allowing users to navigate back to the
+ application that launched the App Link currently being handled, if the App Link
+ contained referer data. The user can also close the view by clicking a close button
+ rather than navigating away. If the view is provided an App Link that does not contain
+ referer data, it will have zero size and no UI will be displayed.
+ */
+@interface BFAppLinkReturnToRefererView : UIView
+
+/*!
+ The delegate that will be notified when the user navigates back to the referer.
+ */
+@property (nonatomic, weak) id<BFAppLinkReturnToRefererViewDelegate> delegate;
+
+/*!
+ The color of the text label and close button.
+ */
+@property (nonatomic, strong) UIColor *textColor;
+
+@property (nonatomic, strong) BFAppLink *refererAppLink;
+
+/*!
+ Indicates whether to extend the size of the view to include the current status bar
+ size, for use in scenarios where the view might extend under the status bar on iOS 7 and
+ above; this property has no effect on earlier versions of iOS.
+ */
+@property (nonatomic, assign) BFIncludeStatusBarInSize includeStatusBarInSize;
+
+/*!
+ Indicates whether the user has closed the view by clicking the close button.
+ */
+@property (nonatomic, assign) BOOL closed;
+
+/*!
+ For apps that use a navigation controller, this method allows for displaying the view as
+ a banner above the navigation bar of the navigation controller. It will listen for orientation
+ change and other events to ensure it stays properly positioned above the nevigation bar.
+ If this method is called from, e.g., viewDidAppear, its counterpart, detachFromMainWindow should
+ be called from, e.g., viewWillDisappear.
+ */
+//- (void)attachToMainWindowAboveNavigationController:(UINavigationController *)navigationController view:(UIView *)view;
+
+/*!
+ Indicates that the view should no longer position itself above a navigation bar.
+ */
+//- (void)detachFromMainWindow;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkTarget.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkTarget.h
new file mode 100644
index 00000000..61721269
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFAppLinkTarget.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+/*!
+ Represents a target defined in App Link metadata, consisting of at least
+ a URL, and optionally an App Store ID and name.
+ */
+@interface BFAppLinkTarget : NSObject
+
+/*! Creates a BFAppLinkTarget with the given app site and target URL. */
++ (instancetype)appLinkTargetWithURL:(NSURL *)url
+ appStoreId:(NSString *)appStoreId
+ appName:(NSString *)appName;
+
+/*! The URL prefix for this app link target */
+@property (nonatomic, strong, readonly) NSURL *URL;
+
+/*! The app ID for the app store */
+@property (nonatomic, copy, readonly) NSString *appStoreId;
+
+/*! The name of the app */
+@property (nonatomic, copy, readonly) NSString *appName;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFExecutor.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFExecutor.h
new file mode 100644
index 00000000..02af9ba2
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFExecutor.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+/*!
+ An object that can run a given block.
+ */
+@interface BFExecutor : NSObject
+
+/*!
+ Returns a default executor, which runs continuations immediately until the call stack gets too
+ deep, then dispatches to a new GCD queue.
+ */
++ (instancetype)defaultExecutor;
+
+/*!
+ Returns an executor that runs continuations on the thread where the previous task was completed.
+ */
++ (instancetype)immediateExecutor;
+
+/*!
+ Returns an executor that runs continuations on the main thread.
+ */
++ (instancetype)mainThreadExecutor;
+
+/*!
+ Returns a new executor that uses the given block to execute continuations.
+ @param block The block to use.
+ */
++ (instancetype)executorWithBlock:(void(^)(void(^block)()))block;
+
+/*!
+ Returns a new executor that runs continuations on the given queue.
+ @param queue The instance of `dispatch_queue_t` to dispatch all continuations onto.
+ */
++ (instancetype)executorWithDispatchQueue:(dispatch_queue_t)queue;
+
+/*!
+ Returns a new executor that runs continuations on the given queue.
+ @param queue The instance of `NSOperationQueue` to run all continuations on.
+ */
++ (instancetype)executorWithOperationQueue:(NSOperationQueue *)queue;
+
+/*!
+ Runs the given block using this executor's particular strategy.
+ @param block The block to execute.
+ */
+- (void)execute:(void(^)())block;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFMeasurementEvent.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFMeasurementEvent.h
new file mode 100644
index 00000000..7a9948c3
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFMeasurementEvent.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+/*! The name of the notification posted by BFMeasurementEvent */
+FOUNDATION_EXPORT NSString *const BFMeasurementEventNotificationName;
+
+/*! Defines keys in the userInfo object for the notification named BFMeasurementEventNotificationName */
+/*! The string field for the name of the event */
+FOUNDATION_EXPORT NSString *const BFMeasurementEventNameKey;
+/*! The dictionary field for the arguments of the event */
+FOUNDATION_EXPORT NSString *const BFMeasurementEventArgsKey;
+
+
+/*! Bolts Events raised by BFMeasurementEvent for Applink */
+/*!
+ The name of the event posted when [BFURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL.
+ */
+FOUNDATION_EXPORT NSString *const BFAppLinkParseEventName;
+
+/*!
+ The name of the event posted when [BFURL URLWithInboundURL:] is called successfully.
+ This represents parsing an inbound app link URL from a different application
+ */
+FOUNDATION_EXPORT NSString *const BFAppLinkNavigateInEventName;
+
+/*! The event raised when the user navigates from your app to other apps */
+FOUNDATION_EXPORT NSString *const BFAppLinkNavigateOutEventName;
+
+/*!
+ The event raised when the user navigates out from your app and back to the referrer app.
+ e.g when the user leaves your app after tapping the back-to-referrer navigation bar
+ */
+FOUNDATION_EXPORT NSString *const BFAppLinkNavigateBackToReferrerEventName;
+
+@interface BFMeasurementEvent : NSObject
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTask.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTask.h
new file mode 100644
index 00000000..2ac84d60
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTask.h
@@ -0,0 +1,166 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+@class BFExecutor;
+@class BFTask;
+
+/*!
+ A block that can act as a continuation for a task.
+ */
+typedef id(^BFContinuationBlock)(BFTask *task);
+
+/*!
+ The consumer view of a Task. A BFTask has methods to
+ inspect the state of the task, and to add continuations to
+ be run once the task is complete.
+ */
+@interface BFTask : NSObject
+
+/*!
+ Creates a task that is already completed with the given result.
+ @param result The result for the task.
+ */
++ (instancetype)taskWithResult:(id)result;
+
+/*!
+ Creates a task that is already completed with the given error.
+ @param error The error for the task.
+ */
++ (instancetype)taskWithError:(NSError *)error;
+
+/*!
+ Creates a task that is already completed with the given exception.
+ @param exception The exception for the task.
+ */
++ (instancetype)taskWithException:(NSException *)exception;
+
+/*!
+ Creates a task that is already cancelled.
+ */
++ (instancetype)cancelledTask;
+
+/*!
+ Returns a task that will be completed (with result == nil) once
+ all of the input tasks have completed.
+ @param tasks An `NSArray` of the tasks to use as an input.
+ */
++ (instancetype)taskForCompletionOfAllTasks:(NSArray *)tasks;
+
+/*!
+ Returns a task that will be completed a certain amount of time in the future.
+ @param millis The approximate number of milliseconds to wait before the
+ task will be finished (with result == nil).
+ */
++ (instancetype)taskWithDelay:(int)millis;
+
+/*!
+ Returns a task that will be completed after the given block completes with
+ the specified executor.
+ @param executor A BFExecutor responsible for determining how the
+ continuation block will be run.
+ @param block The block to immediately schedule to run with the given executor.
+ @returns A task that will be completed after block has run.
+ If block returns a BFTask, then the task returned from
+ this method will not be completed until that task is completed.
+ */
++ (instancetype)taskFromExecutor:(BFExecutor *)executor
+ withBlock:(id (^)())block;
+
+// Properties that will be set on the task once it is completed.
+
+/*!
+ The result of a successful task.
+ */
+@property (nonatomic, strong, readonly) id result;
+
+
+/*!
+ The error of a failed task.
+ */
+@property (nonatomic, strong, readonly) NSError *error;
+
+/*!
+ The exception of a failed task.
+ */
+@property (nonatomic, strong, readonly) NSException *exception;
+
+/*!
+ Whether this task has been cancelled.
+ */
+@property (nonatomic, assign, readonly, getter = isCancelled) BOOL cancelled;
+
+/*!
+ Whether this task has completed.
+ */
+@property (nonatomic, assign, readonly, getter = isCompleted) BOOL completed;
+
+/*!
+ Enqueues the given block to be run once this task is complete.
+ This method uses a default execution strategy. The block will be
+ run on the thread where the previous task completes, unless the
+ the stack depth is too deep, in which case it will be run on a
+ dispatch queue with default priority.
+ @param block The block to be run once this task is complete.
+ @returns A task that will be completed after block has run.
+ If block returns a BFTask, then the task returned from
+ this method will not be completed until that task is completed.
+ */
+- (instancetype)continueWithBlock:(BFContinuationBlock)block;
+
+/*!
+ Enqueues the given block to be run once this task is complete.
+ @param executor A BFExecutor responsible for determining how the
+ continuation block will be run.
+ @param block The block to be run once this task is complete.
+ @returns A task that will be completed after block has run.
+ If block returns a BFTask, then the task returned from
+ this method will not be completed until that task is completed.
+ */
+- (instancetype)continueWithExecutor:(BFExecutor *)executor
+ withBlock:(BFContinuationBlock)block;
+
+/*!
+ Identical to continueWithBlock:, except that the block is only run
+ if this task did not produce a cancellation, error, or exception.
+ If it did, then the failure will be propagated to the returned
+ task.
+ @param block The block to be run once this task is complete.
+ @returns A task that will be completed after block has run.
+ If block returns a BFTask, then the task returned from
+ this method will not be completed until that task is completed.
+ */
+- (instancetype)continueWithSuccessBlock:(BFContinuationBlock)block;
+
+/*!
+ Identical to continueWithExecutor:withBlock:, except that the block
+ is only run if this task did not produce a cancellation, error, or
+ exception. If it did, then the failure will be propagated to the
+ returned task.
+ @param executor A BFExecutor responsible for determining how the
+ continuation block will be run.
+ @param block The block to be run once this task is complete.
+ @returns A task that will be completed after block has run.
+ If block returns a BFTask, then the task returned from
+ this method will not be completed until that task is completed.
+ */
+- (instancetype)continueWithExecutor:(BFExecutor *)executor
+ withSuccessBlock:(BFContinuationBlock)block;
+
+/*!
+ Waits until this operation is completed.
+ This method is inefficient and consumes a thread resource while
+ it's running. It should be avoided. This method logs a warning
+ message if it is used on the main thread.
+ */
+- (void)waitUntilFinished;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTaskCompletionSource.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTaskCompletionSource.h
new file mode 100644
index 00000000..d0ea545d
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFTaskCompletionSource.h
@@ -0,0 +1,85 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+@class BFTask;
+
+/*!
+ A BFTaskCompletionSource represents the producer side of tasks.
+ It is a task that also has methods for changing the state of the
+ task by settings its completion values.
+ */
+@interface BFTaskCompletionSource : NSObject
+
+/*!
+ Creates a new unfinished task.
+ */
++ (instancetype)taskCompletionSource;
+
+/*!
+ The task associated with this TaskCompletionSource.
+ */
+@property (nonatomic, retain, readonly) BFTask *task;
+
+/*!
+ Completes the task by setting the result.
+ Attempting to set this for a completed task will raise an exception.
+ @param result The result of the task.
+ */
+- (void)setResult:(id)result;
+
+/*!
+ Completes the task by setting the error.
+ Attempting to set this for a completed task will raise an exception.
+ @param error The error for the task.
+ */
+- (void)setError:(NSError *)error;
+
+/*!
+ Completes the task by setting an exception.
+ Attempting to set this for a completed task will raise an exception.
+ @param exception The exception for the task.
+ */
+- (void)setException:(NSException *)exception;
+
+/*!
+ Completes the task by marking it as cancelled.
+ Attempting to set this for a completed task will raise an exception.
+ */
+- (void)cancel;
+
+/*!
+ Sets the result of the task if it wasn't already completed.
+ @returns whether the new value was set.
+ */
+- (BOOL)trySetResult:(id)result;
+
+/*!
+ Sets the error of the task if it wasn't already completed.
+ @param error The error for the task.
+ @returns whether the new value was set.
+ */
+- (BOOL)trySetError:(NSError *)error;
+
+/*!
+ Sets the exception of the task if it wasn't already completed.
+ @param exception The exception for the task.
+ @returns whether the new value was set.
+ */
+- (BOOL)trySetException:(NSException *)exception;
+
+/*!
+ Sets the cancellation state of the task if it wasn't already completed.
+ @returns whether the new value was set.
+ */
+- (BOOL)trySetCancelled;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFURL.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFURL.h
new file mode 100644
index 00000000..f269e2d1
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFURL.h
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+
+
+@class BFAppLink;
+
+/*!
+ Provides a set of utilities for working with NSURLs, such as parsing of query parameters
+ and handling for App Link requests.
+ */
+@interface BFURL : NSObject
+
+/*!
+ Creates a link target from a raw URL.
+ On success, this posts the BFAppLinkParseEventName measurement event. If you are constructing the BFURL within your application delegate's
+ application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication:
+ to support better BFMeasurementEvent notifications
+ @param url The instance of `NSURL` to create BFURL from.
+ */
++ (BFURL *)URLWithURL:(NSURL *)url;
+
+/*!
+ Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's
+ application:openURL:sourceApplication:annotation: and will post the BFAppLinkNavigateInEventName measurement event.
+ @param url The instance of `NSURL` to create BFURL from.
+ @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation:
+*/
++ (BFURL *)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication;
+
+/*!
+ Gets the target URL. If the link is an App Link, this is the target of the App Link.
+ Otherwise, it is the url that created the target.
+ */
+@property (nonatomic, strong, readonly) NSURL *targetURL;
+
+/*!
+ Gets the query parameters for the target, parsed into an NSDictionary.
+ */
+@property (nonatomic, strong, readonly) NSDictionary *targetQueryParameters;
+
+/*!
+ If this link target is an App Link, this is the data found in al_applink_data.
+ Otherwise, it is nil.
+ */
+@property (nonatomic, strong, readonly) NSDictionary *appLinkData;
+
+/*!
+ If this link target is an App Link, this is the data found in extras.
+ */
+@property (nonatomic, strong, readonly) NSDictionary *appLinkExtras;
+
+/*!
+ The App Link indicating how to navigate back to the referer app, if any.
+ */
+@property (nonatomic, strong, readonly) BFAppLink *appLinkReferer;
+
+/*!
+ The URL that was used to create this BFURL.
+ */
+@property (nonatomic, strong, readonly) NSURL *inputURL;
+
+/*!
+ The query parameters of the inputURL, parsed into an NSDictionary.
+ */
+@property (nonatomic, strong, readonly) NSDictionary *inputQueryParameters;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFWebViewAppLinkResolver.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFWebViewAppLinkResolver.h
new file mode 100644
index 00000000..cffa5292
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BFWebViewAppLinkResolver.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+#import <Bolts/BFAppLinkResolving.h>
+
+/*!
+ A reference implementation for an App Link resolver that uses a hidden UIWebView
+ to parse the HTML containing App Link metadata.
+ */
+@interface BFWebViewAppLinkResolver : NSObject<BFAppLinkResolving>
+
+/*!
+ Gets the instance of a BFWebViewAppLinkResolver.
+ */
++ (instancetype)sharedInstance;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/Bolts.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/Bolts.h
new file mode 100644
index 00000000..e22bdd54
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/Bolts.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2014, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+#import <Bolts/BoltsVersion.h>
+#import <Bolts/BFExecutor.h>
+#import <Bolts/BFTask.h>
+#import <Bolts/BFTaskCompletionSource.h>
+
+#if TARGET_OS_IPHONE
+#import <Bolts/BFAppLinkNavigation.h>
+#import <Bolts/BFAppLink.h>
+#import <Bolts/BFAppLinkTarget.h>
+#import <Bolts/BFURL.h>
+#import <Bolts/BFMeasurementEvent.h>
+#import <Bolts/BFAppLinkReturnToRefererController.h>
+#import <Bolts/BFAppLinkReturnToRefererView.h>
+#endif
+
+/*! @abstract 80175001: There were multiple errors. */
+extern NSInteger const kBFMultipleErrorsError;
+
+@interface Bolts : NSObject
+
+/*!
+ Returns the version of the Bolts Framework as an NSString.
+ @returns The NSString representation of the current version.
+ */
++ (NSString *)version;
+
+@end
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BoltsVersion.h b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BoltsVersion.h
new file mode 100644
index 00000000..24e802ed
--- /dev/null
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/com.parse.cordova.core.pushplugin/Bolts.framework/Headers/BoltsVersion.h
@@ -0,0 +1 @@
+#define BOLTS_VERSION @"1.1.3"
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.h b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.h
index 0d6ae397..0d6ae397 100755..100644
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.h
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.h
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m
index 43b356ad..a1add304 100755..100644
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m
@@ -22,14 +22,14 @@
#import <Cordova/CDVScreenOrientationDelegate.h>
#import "CDVViewController+SplashScreen.h"
-#define kSplashScreenDurationDefault 0.25f
+#define kSplashScreenDurationDefault 3000.0f
@implementation CDVSplashScreen
- (void)pluginInitialize
{
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pageDidLoad) name:CDVPageDidLoadNotification object:self.webView];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pageDidLoad) name:CDVPageDidLoadNotification object:nil];
[self setVisible:YES];
}
@@ -82,11 +82,16 @@
NSString* topActivityIndicator = [self.commandDelegate.settings objectForKey:[@"TopActivityIndicator" lowercaseString]];
UIActivityIndicatorViewStyle topActivityIndicatorStyle = UIActivityIndicatorViewStyleGray;
- if ([topActivityIndicator isEqualToString:@"whiteLarge"]) {
+ if ([topActivityIndicator isEqualToString:@"whiteLarge"])
+ {
topActivityIndicatorStyle = UIActivityIndicatorViewStyleWhiteLarge;
- } else if ([topActivityIndicator isEqualToString:@"white"]) {
+ }
+ else if ([topActivityIndicator isEqualToString:@"white"])
+ {
topActivityIndicatorStyle = UIActivityIndicatorViewStyleWhite;
- } else if ([topActivityIndicator isEqualToString:@"gray"]) {
+ }
+ else if ([topActivityIndicator isEqualToString:@"gray"])
+ {
topActivityIndicatorStyle = UIActivityIndicatorViewStyleGray;
}
@@ -104,7 +109,8 @@
id showSplashScreenSpinnerValue = [self.commandDelegate.settings objectForKey:[@"ShowSplashScreenSpinner" lowercaseString]];
// backwards compatibility - if key is missing, default to true
- if ((showSplashScreenSpinnerValue == nil) || [showSplashScreenSpinnerValue boolValue]) {
+ if ((showSplashScreenSpinnerValue == nil) || [showSplashScreenSpinnerValue boolValue])
+ {
[parentView addSubview:_activityView];
}
@@ -116,6 +122,12 @@
[self updateImage];
}
+- (void)hideViews
+{
+ [_imageView setAlpha:0];
+ [_activityView setAlpha:0];
+}
+
- (void)destroyViews
{
[(CDVViewController *)self.viewController setEnabledAutorotation:[(CDVViewController *)self.viewController shouldAutorotateDefaultValue]];
@@ -167,21 +179,33 @@
// this means there are no mixed orientations in there
BOOL isOrientationLocked = !(supportsPortrait && supportsLandscape);
- if (imageName) {
+ if (imageName)
+ {
imageName = [imageName stringByDeletingPathExtension];
- } else {
+ }
+ else
+ {
imageName = @"Default";
}
- if (device.iPhone5) { // does not support landscape
+ if (device.iPhone5)
+ { // does not support landscape
imageName = [imageName stringByAppendingString:@"-568h"];
- } else if (device.iPhone6) { // does not support landscape
+ }
+ else if (device.iPhone6)
+ { // does not support landscape
imageName = [imageName stringByAppendingString:@"-667h"];
- } else if (device.iPhone6Plus) { // supports landscape
- if (isOrientationLocked) {
+ }
+ else if (device.iPhone6Plus)
+ { // supports landscape
+ if (isOrientationLocked)
+ {
imageName = [imageName stringByAppendingString:(supportsLandscape ? @"-Landscape" : @"")];
- } else {
- switch (currentOrientation) {
+ }
+ else
+ {
+ switch (currentOrientation)
+ {
case UIInterfaceOrientationLandscapeLeft:
case UIInterfaceOrientationLandscapeRight:
imageName = [imageName stringByAppendingString:@"-Landscape"];
@@ -192,11 +216,17 @@
}
imageName = [imageName stringByAppendingString:@"-736h"];
- } else if (device.iPad) { // supports landscape
- if (isOrientationLocked) {
+ }
+ else if (device.iPad)
+ { // supports landscape
+ if (isOrientationLocked)
+ {
imageName = [imageName stringByAppendingString:(supportsLandscape ? @"-Landscape" : @"-Portrait")];
- } else {
- switch (currentOrientation) {
+ }
+ else
+ {
+ switch (currentOrientation)
+ {
case UIInterfaceOrientationLandscapeLeft:
case UIInterfaceOrientationLandscapeRight:
imageName = [imageName stringByAppendingString:@"-Landscape"];
@@ -219,16 +249,20 @@
{
NSString* imageName = [self getImageName:[[UIApplication sharedApplication] statusBarOrientation] delegate:(id<CDVScreenOrientationDelegate>)self.viewController device:[self getCurrentDevice]];
- if (![imageName isEqualToString:_curImageName]) {
+ if (![imageName isEqualToString:_curImageName])
+ {
UIImage* img = [UIImage imageNamed:imageName];
_imageView.image = img;
_curImageName = imageName;
}
// Check that splash screen's image exists before updating bounds
- if (_imageView.image) {
+ if (_imageView.image)
+ {
[self updateBounds];
- } else {
+ }
+ else
+ {
NSLog(@"WARNING: The splashscreen image named %@ was not found", imageName);
}
}
@@ -248,26 +282,34 @@
* correctly.
*/
BOOL isIPad = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad;
- if (UIInterfaceOrientationIsLandscape(orientation) && !isIPad) {
+ if (UIInterfaceOrientationIsLandscape(orientation) && !isIPad)
+ {
imgTransform = CGAffineTransformMakeRotation(M_PI / 2);
imgBounds.size = CGSizeMake(imgBounds.size.height, imgBounds.size.width);
}
// There's a special case when the image is the size of the screen.
- if (CGSizeEqualToSize(screenSize, imgBounds.size)) {
+ if (CGSizeEqualToSize(screenSize, imgBounds.size))
+ {
CGRect statusFrame = [self.viewController.view convertRect:[UIApplication sharedApplication].statusBarFrame fromView:nil];
- if (!(IsAtLeastiOSVersion(@"7.0"))) {
+ if (!(IsAtLeastiOSVersion(@"7.0")))
+ {
imgBounds.origin.y -= statusFrame.size.height;
}
- } else if (imgBounds.size.width > 0) {
+ }
+ else if (imgBounds.size.width > 0)
+ {
CGRect viewBounds = self.viewController.view.bounds;
CGFloat imgAspect = imgBounds.size.width / imgBounds.size.height;
CGFloat viewAspect = viewBounds.size.width / viewBounds.size.height;
// This matches the behaviour of the native splash screen.
CGFloat ratio;
- if (viewAspect > imgAspect) {
+ if (viewAspect > imgAspect)
+ {
ratio = viewBounds.size.width / imgBounds.size.width;
- } else {
+ }
+ else
+ {
ratio = viewBounds.size.height / imgBounds.size.height;
}
imgBounds.size.height *= ratio;
@@ -280,50 +322,54 @@
- (void)setVisible:(BOOL)visible
{
- if (visible == _visible) {
- return;
- }
- _visible = visible;
+ if (visible != _visible)
+ {
+ _visible = visible;
- id fadeSplashScreenValue = [self.commandDelegate.settings objectForKey:[@"FadeSplashScreen" lowercaseString]];
- id fadeSplashScreenDuration = [self.commandDelegate.settings objectForKey:[@"FadeSplashScreenDuration" lowercaseString]];
+ id fadeSplashScreenValue = [self.commandDelegate.settings objectForKey:[@"FadeSplashScreen" lowercaseString]];
+ id fadeSplashScreenDuration = [self.commandDelegate.settings objectForKey:[@"FadeSplashScreenDuration" lowercaseString]];
- float fadeDuration = fadeSplashScreenDuration == nil ? kSplashScreenDurationDefault : [fadeSplashScreenDuration floatValue];
+ float fadeDuration = fadeSplashScreenDuration == nil ? kSplashScreenDurationDefault : [fadeSplashScreenDuration floatValue];
- if ((fadeSplashScreenValue == nil) || ![fadeSplashScreenValue boolValue]) {
- fadeDuration = 0;
- }
-
- // Never animate the showing of the splash screen.
- if (visible) {
- if (_imageView == nil) {
- [self createViews];
+ if ((fadeSplashScreenValue == nil) || ![fadeSplashScreenValue boolValue])
+ {
+ fadeDuration = 0;
+ }
+ else if(fadeDuration < 30)
+ {
+ // [CB-9750] This value used to be in decimal seconds, so we will assume that if someone specifies 10
+ // they mean 10 seconds, and not the meaningless 10ms
+ fadeDuration *= 1000;
+ }
+
+ if (_visible)
+ {
+ if (_imageView == nil)
+ {
+ [self createViews];
+ }
+ }
+ else if (fadeDuration == 0)
+ {
+ [self destroyViews];
+ }
+ else
+ {
+ __weak __typeof(self) weakSelf = self;
+ [UIView transitionWithView:self.viewController.view
+ duration:(fadeDuration / 1000)
+ options:UIViewAnimationOptionTransitionNone
+ animations:^(void) {
+ [weakSelf hideViews];
+ }
+ completion:^(BOOL finished) {
+ if (finished) {
+ [weakSelf destroyViews];
+ // TODO: It might also be nice to have a js event happen here -jm
+ }
+ }
+ ];
}
- } else if (fadeDuration == 0) {
- [self destroyViews];
- } else {
- __weak __typeof(self) weakSelf = self;
-
- [UIView transitionWithView:self.viewController.view
- duration:fadeDuration
- options:UIViewAnimationOptionTransitionNone
- animations:^(void) {
- __typeof(self) strongSelf = weakSelf;
- if (strongSelf != nil) {
- dispatch_async(dispatch_get_main_queue(), ^{
- [strongSelf->_activityView setAlpha:0];
- [strongSelf->_imageView setAlpha:0];
- });
- }
- }
- completion:^(BOOL finished) {
- if (finished) {
- dispatch_async(dispatch_get_main_queue(), ^{
- [weakSelf destroyViews];
- });
- }
- }
- ];
}
}
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.h b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.h
index a948ea31..a948ea31 100755..100644
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.h
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.h
diff --git a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.m b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.m
index 5736b6f2..5736b6f2 100755..100644
--- a/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.m
+++ b/StoneIsland/platforms/ios/Stone Island/Plugins/cordova-plugin-splashscreen/CDVViewController+SplashScreen.m