Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2016-10-21 16:05:53 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2016-10-21 16:05:53 +0300
commit677bb848ef6331096f06a56e6f959ee4b365ee7a (patch)
treedde9f8cc4f6c5de2bd9b9c931d0df115cd11e486
parent9fe739edd0792d73e3041e7d517e47dc6e7a0c08 (diff)
[ios] Updated Pushwoosh to v4.1.7
-rwxr-xr-xiphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h115
-rwxr-xr-xiphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Pushwooshbin13041328 -> 6863272 bytes
2 files changed, 48 insertions, 67 deletions
diff --git a/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h b/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h
index f9a373193d..da57ffe4ad 100755
--- a/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h
+++ b/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h
@@ -11,15 +11,8 @@
@class PushNotificationManager;
@class CLLocation;
-typedef NS_ENUM(NSInteger, PWSupportedOrientations) {
- PWOrientationPortrait = 1 << 0,
- PWOrientationPortraitUpsideDown = 1 << 1,
- PWOrientationLandscapeLeft = 1 << 2,
- PWOrientationLandscapeRight = 1 << 3,
-};
-
-typedef void(^PushwooshGetTagsHandler)(NSDictionary *tags);
-typedef void(^PushwooshErrorHandler)(NSError *error);
+typedef void (^PushwooshGetTagsHandler)(NSDictionary *tags);
+typedef void (^PushwooshErrorHandler)(NSError *error);
/**
`PushNotificationDelegate` protocol defines the methods that can be implemented in the delegate of the `PushNotificationManager` class' singleton object.
@@ -34,14 +27,14 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param token A token used for identifying the device with APS.
*/
-- (void) onDidRegisterForRemoteNotificationsWithDeviceToken:(NSString *)token;
+- (void)onDidRegisterForRemoteNotificationsWithDeviceToken:(NSString *)token;
/**
Sent to the delegate when Apple Push Service (APS) could not complete the registration process successfully.
@param error An NSError object encapsulating the information about the reason of the registration failure. Within this method you can define application's behaviour in case of registration failure.
*/
-- (void) onDidFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
+- (void)onDidFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
/**
Tells the delegate that the push manager has received a remote notification.
@@ -53,7 +46,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.
@param onStart If the application was not active when the push notification was received, the application will be launched with this parameter equal to `YES`, otherwise the parameter will be `NO`.
*/
-- (void) onPushReceived:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart;
+- (void)onPushReceived:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart;
/**
Tells the delegate that the user has pressed OK on the push notification.
@@ -73,7 +66,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
}
*/
-- (void) onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification;
+- (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification;
/**
Tells the delegate that the user has pressed OK on the push notification.
@@ -93,7 +86,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param onStart If the application was not active when the push notification was received, the application will be launched with this parameter equal to `YES`, otherwise the parameter will be `NO`.
*/
-- (void) onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart;
+- (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart;
/**
Tells the delegate that the push manager has received tags from the server.
@@ -107,28 +100,28 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
}
*/
-- (void) onTagsReceived:(NSDictionary *)tags;
+- (void)onTagsReceived:(NSDictionary *)tags;
/**
Sent to the delegate when push manager could not complete the tags receiving process successfully.
@param error An NSError object that encapsulates information why receiving tags did not succeed.
*/
-- (void) onTagsFailedToReceive:(NSError *)error;
+- (void)onTagsFailedToReceive:(NSError *)error;
/**
Tells the delegate that In-App with specified code has been closed
@param code In-App code
*/
-- (void) onInAppClosed:(NSString*)code;
+- (void)onInAppClosed:(NSString *)code;
/**
Tells the delegate that In-App with specified code has been displayed
@param code In-App code
*/
-- (void) onInAppDisplayed:(NSString*)code;
+- (void)onInAppDisplayed:(NSString *)code;
@end
@@ -154,16 +147,14 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@return Dictionary, that needs to be sent as the value for the tag
*/
-+ (NSDictionary *) incrementalTagWithInteger:(NSInteger)delta;
++ (NSDictionary *)incrementalTagWithInteger:(NSInteger)delta;
@end
-
/**
`PushNotificationManager` class offers access to the singletone-instance of the push manager responsible for registering the device with the APS servers, receiving and processing push notifications.
*/
-@interface PushNotificationManager : NSObject <SKPaymentTransactionObserver> {
- NSObject<PushNotificationDelegate> *__unsafe_unretained delegate;
+@interface PushNotificationManager : NSObject {
}
/**
@@ -180,7 +171,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
`PushNotificationDelegate` protocol delegate that would receive the information about events for push notification manager such as registering with APS services, receiving push notifications or working with the received notification.
Pushwoosh Runtime sets it to ApplicationDelegate by default
*/
-@property (nonatomic, assign) NSObject<PushNotificationDelegate> *delegate;
+@property (nonatomic, weak) NSObject<PushNotificationDelegate> *delegate;
/**
Show push notifications alert when push notification is received while the app is running, default is `YES`
@@ -210,35 +201,33 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
Registers for push notifications. By default registeres for "UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert" flags.
Automatically detects if you have "newsstand-content" in "UIBackgroundModes" and adds "UIRemoteNotificationTypeNewsstandContentAvailability" flag.
*/
-- (void) registerForPushNotifications;
+- (void)registerForPushNotifications;
/**
Unregisters from push notifications. You should call this method in rare circumstances only, such as when a new version of the app drops support for remote notifications. Users can temporarily prevent apps from receiving remote notifications through the Notifications section of the Settings app. Apps unregistered through this method can always re-register.
*/
-- (void) unregisterForPushNotifications;
+- (void)unregisterForPushNotifications;
-- (id) initWithApplicationCode:(NSString *)appCode appName:(NSString *)appName;
-- (id) initWithApplicationCode:(NSString *)appCode navController:(UIViewController *) navController appName:(NSString *)appName __attribute__((deprecated));
+- (instancetype)initWithApplicationCode:(NSString *)appCode appName:(NSString *)appName;
+- (id)initWithApplicationCode:(NSString *)appCode navController:(UIViewController *)navController appName:(NSString *)appName __attribute__((deprecated));
/**
- Start location tracking.
+ Sends geolocation to the server for GeoFencing push technology. Called internally, please use `startLocationTracking` and `stopLocationTracking` functions.
+
+ @param location Location to be sent.
*/
-- (void) startLocationTracking;
+- (void)sendLocation:(CLLocation *)location;
/**
- Stops location tracking
+ Start location tracking.
*/
-- (void) stopLocationTracking;
+- (void)startLocationTracking;
/**
- Start iBeacon tracking.
+ Stops location tracking
*/
-- (void) startBeaconTracking;
+- (void)stopLocationTracking;
-/**
- Stops iBeacon tracking
- */
-- (void) stopBeaconTracking;
/**
Send tags to server. Tag names have to be created in the Pushwoosh Control Panel. Possible tag types: Integer, String, Incremental (integer only), List tags (array of values).
@@ -256,17 +245,17 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param tags Dictionary representation of tags to send.
*/
-- (void) setTags: (NSDictionary *) tags;
+- (void)setTags:(NSDictionary *)tags;
/**
Send tags to server with completion block. If setTags succeeds competion is called with nil argument. If setTags fails completion is called with error.
*/
-- (void) setTags: (NSDictionary *) tags withCompletion: (void(^)(NSError* error)) completion;
+- (void)setTags:(NSDictionary *)tags withCompletion:(void (^)(NSError *error))completion;
/**
Get tags from the server. Calls delegate method `onTagsReceived:` or `onTagsFailedToReceive:` depending on the results.
*/
-- (void) loadTags;
+- (void)loadTags;
/**
Get tags from server. Calls delegate method if exists and handler (block).
@@ -281,12 +270,12 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param errorHandler The block is executed on the unsuccessful completion of the request. This block has no return value and takes one argument: the error that occurred during the request.
*/
-- (void) loadTags: (PushwooshGetTagsHandler) successHandler error:(PushwooshErrorHandler) errorHandler;
+- (void)loadTags:(PushwooshGetTagsHandler)successHandler error:(PushwooshErrorHandler)errorHandler;
/**
Informs the Pushwoosh about the app being launched. Usually called internally by SDK Runtime.
*/
-- (void) sendAppOpen;
+- (void)sendAppOpen;
/**
Sends current badge value to server. Called internally by SDK Runtime when `UIApplication` `setApplicationBadgeNumber:` is set. This function is used for "auto-incremeting" badges to work.
@@ -294,14 +283,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param badge Current badge value.
*/
-- (void) sendBadges: (NSInteger) badge;
-
-/**
- Sends geolocation to the server for GeoFencing push technology. Called internally, please use `startLocationTracking` and `stopLocationTracking` functions.
-
- @param location Location to be sent.
- */
-- (void) sendLocation: (CLLocation *) location;
+- (void)sendBadges:(NSInteger)badge;
/**
Sends in-app purchases to Pushwoosh. Use in paymentQueue:updatedTransactions: payment queue method (see example).
@@ -314,7 +296,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param transactions Array of SKPaymentTransaction items as received in the payment queue.
*/
-- (void) sendSKPaymentTransactions:(NSArray *)transactions;
+- (void)sendSKPaymentTransactions:(NSArray *)transactions;
/**
Tracks individual in-app purchase. See recommended `sendSKPaymentTransactions:` method.
@@ -324,14 +306,14 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param currencyCode currency of the price (ex: @"USD")
@param date time of the purchase (ex: [NSDate now])
*/
-- (void) sendPurchase: (NSString *) productIdentifier withPrice:(NSDecimalNumber *)price currencyCode:(NSString *)currencyCode andDate:(NSDate *)date;
+- (void)sendPurchase:(NSString *)productIdentifier withPrice:(NSDecimalNumber *)price currencyCode:(NSString *)currencyCode andDate:(NSDate *)date;
/**
Gets current push token.
@return Current push token. May be nil if no push token is available yet.
*/
-- (NSString *) getPushToken;
+- (NSString *)getPushToken;
/**
Gets HWID. Unique device identifier that used in all API calls with Pushwoosh.
@@ -339,17 +321,16 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@return Unique device identifier.
*/
-- (NSString *) getHWID;
+- (NSString *)getHWID;
-- (void) handlePushRegistration:(NSData *)devToken;
-- (void) handlePushRegistrationString:(NSString *)deviceID;
+- (void)handlePushRegistration:(NSData *)devToken;
+- (void)handlePushRegistrationString:(NSString *)deviceID;
//internal
-- (void) handlePushRegistrationFailure:(NSError *) error;
+- (void)handlePushRegistrationFailure:(NSError *)error;
//if the push is received while the app is running. internal
-- (BOOL) handlePushReceived:(NSDictionary *) userInfo;
-
+- (BOOL)handlePushReceived:(NSDictionary *)userInfo;
/**
Gets APN payload from push notifications dictionary.
@@ -380,7 +361,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param pushNotification Push notifications dictionary as received in `onPushAccepted: withNotification: onStart:`
*/
-- (NSDictionary *) getApnPayload:(NSDictionary *)pushNotification;
+- (NSDictionary *)getApnPayload:(NSDictionary *)pushNotification;
/**
Gets custom JSON string data from push notifications dictionary as specified in Pushwoosh Control Panel.
@@ -394,12 +375,12 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param pushNotification Push notifications dictionary as received in `onPushAccepted: withNotification: onStart:`
*/
-- (NSString *) getCustomPushData:(NSDictionary *)pushNotification;
+- (NSString *)getCustomPushData:(NSDictionary *)pushNotification;
/**
The same as getCustomPushData but returns NSDictionary rather than JSON string (converts JSON string into NSDictionary).
*/
-- (NSDictionary *) getCustomPushDataAsNSDict:(NSDictionary *)pushNotification;
+- (NSDictionary *)getCustomPushDataAsNSDict:(NSDictionary *)pushNotification;
/**
Returns dictionary with enabled remove notificaton types.
@@ -430,13 +411,13 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
/**
Clears the notifications from the notification center.
*/
-+ (void) clearNotificationCenter;
++ (void)clearNotificationCenter;
/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
*/
-- (void) setUserId: (NSString*) userId;
+- (void)setUserId:(NSString *)userId;
/**
Move all events from oldUserId to newUserId if doMerge is true. If doMerge is false all events for oldUserId are removed.
@@ -446,7 +427,7 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param doMerge if false all events for oldUserId are removed, if true all events for oldUserId are moved to newUserId
@param completeion callback
*/
-- (void) mergeUserId: (NSString*) oldUserId to: (NSString*) newUserId doMerge: (BOOL) doMerge completion: (void(^)(NSError* error)) completion;
+- (void)mergeUserId:(NSString *)oldUserId to:(NSString *)newUserId doMerge:(BOOL)doMerge completion:(void (^)(NSError *error))completion;
/**
Post events for In-App Messages. This can trigger In-App message display as specified in Pushwoosh Control Panel.
@@ -460,11 +441,11 @@ typedef void(^PushwooshErrorHandler)(NSError *error);
@param attributes NSDictionary of event attributes
@param completion function to call after posting event
*/
-- (void) postEvent: (NSString*) event withAttributes: (NSDictionary*) attributes completion: (void(^)(NSError* error)) completion;
+- (void)postEvent:(NSString *)event withAttributes:(NSDictionary *)attributes completion:(void (^)(NSError *error))completion;
/**
See `postEvent:withAttributes:completion:`
*/
-- (void) postEvent: (NSString*) event withAttributes: (NSDictionary*) attributes;
+- (void)postEvent:(NSString *)event withAttributes:(NSDictionary *)attributes;
@end
diff --git a/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Pushwoosh b/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Pushwoosh
index bfd86c37e5..740a192ee4 100755
--- a/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Pushwoosh
+++ b/iphone/Maps/PushNotifications/Pushwoosh.framework/Versions/A/Pushwoosh
Binary files differ