Skip to content

Commit

Permalink
Release v2.2.3 (#159)
Browse files Browse the repository at this point in the history
* Changelog and Podspec updated

* Added new artifacts

* Example project updated
  • Loading branch information
iamsimranjot authored Feb 18, 2020
1 parent 586d23b commit c771882
Show file tree
Hide file tree
Showing 42 changed files with 148 additions and 52 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.2.3] - (17/02/20) - D iOS

### Features

### Enhancements
- Better Notification Handling

### Bugs

---

## [2.2.2] - (14/02/20) - D iOS

### Features
Expand Down
10 changes: 5 additions & 5 deletions Examples/Swift-Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PODS:
- FLAnimatedImage (1.0.12)
- HaptikLib (2.2.2):
- HaptikLib/Core (= 2.2.2)
- HaptikLib/Base (2.2.2):
- HaptikLib (2.2.3):
- HaptikLib/Core (= 2.2.3)
- HaptikLib/Base (2.2.3):
- PINRemoteImage (= 3.0.0-beta.13)
- PINRemoteImage/WebP (= 3.0.0-beta.13)
- HaptikLib/Core (2.2.2):
- HaptikLib/Core (2.2.3):
- HaptikLib/Base
- libwebp (1.0.0):
- libwebp/core (= 1.0.0)
Expand Down Expand Up @@ -71,7 +71,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31
HaptikLib: a2f3f5ef6dc073a45e2466124b5ae81cfe0532b4
HaptikLib: debbc426b95b6c8ed7430f41e7e7d11ce9b034da
libwebp: d7e0c95fe97245c97e08101eba10702ebb0f6101
PINCache: d195fdba255283f7e9900a55e3cced377f431f9b
PINOperation: a6219e6fc9db9c269eb7a7b871ac193bcf400aac
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleVersion</key>
<string>20</string>
<string>21</string>
</dict>
</plist>
Git LFS file not shown
Git LFS file not shown
Binary file modified Frameworks/Analytics/HaptikAnalytics.framework/Info.plist
Binary file not shown.
4 changes: 2 additions & 2 deletions Frameworks/Base/HaptikBase.framework.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleVersion</key>
<string>45</string>
<string>46</string>
</dict>
</plist>
Binary file not shown.
Binary file modified Frameworks/Base/HaptikBase.framework/HaptikBase
Binary file not shown.
Binary file modified Frameworks/Base/HaptikBase.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5502,6 +5502,7 @@ HaptikLib/Model Objects/HSL Smart Action/Haptik Item/Payload/Payload Subtypes/La
-[Haptik(Additions) initDDLogger]
-[Haptik(Additions) handleSyncOnInitialization]
___47-[Haptik(Additions) handleSyncOnInitialization]_block_invoke
-[Haptik(Additions) getViaNameFromHaptikNotificationWith:]
-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]
___97-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]_block_invoke
-[Haptik(Additions) fetchConversationForViaName:launchMessage:hideLaunchMessage:error:]
Expand Down Expand Up @@ -6962,8 +6963,12 @@ ___25-[Haptik setDeviceToken:]_block_invoke
___33-[Haptik setDeviceTokenAsString:]_block_invoke
___33-[Haptik setDeviceTokenAsString:]_block_invoke_2
-[Haptik canHandleNotificationWithUserInfo:]
-[Haptik canHandleNotificationWithResponse:]
-[Haptik didReceiveHaptikNotificationResponse:controller:]
-[Haptik didReceiveHaptikRemoteNotification:controller:]
-[Haptik prepareHaptikNotificationForUserInfo:]
___47-[Haptik prepareHaptikNotificationForUserInfo:]_block_invoke
-[Haptik prepareHaptikNotificationForResponse:]
-[Haptik launchChannelWith:message:controller:]
-[Haptik launchChannelWith:launchMessage:hideLaunchMessage:controller:]
-[Haptik getConversationForViaName:error:]
Expand All @@ -6982,14 +6987,18 @@ _sharedSDK.onceToken
___block_descriptor_32_e4_20s24bs28s_e19_v12?0c4"NSError"8l
___block_descriptor_25_e4_20bs_e5_v4?0l
___block_literal_global.373
___block_literal_global.407
___block_descriptor_28_e4_20bs24s_e17_v8?0"Business"4l
/Users/iamsimranjot/Documents/Projects/haptik-ios-framework/Source Libraries/HaptikLib/HaptikLib/Haptik/Haptik.m
HaptikLib/Haptik/Haptik.m
HPCheckConversationForViaName
HPConversationClass
__43-[Haptik getUnreadCountFor:WithCompletion:]_block_invoke_3
__43-[Haptik getUnreadCountFor:WithCompletion:]_block_invoke_2
__43-[Haptik getUnreadCountFor:WithCompletion:]_block_invoke
__40-[Haptik syncUserCustomData:completion:]_block_invoke_2
__40-[Haptik syncUserCustomData:completion:]_block_invoke
__47-[Haptik prepareHaptikNotificationForUserInfo:]_block_invoke
__33-[Haptik setDeviceTokenAsString:]_block_invoke_2
__33-[Haptik setDeviceTokenAsString:]_block_invoke
__25-[Haptik setDeviceToken:]_block_invoke
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5498,6 +5498,7 @@ HaptikLib/Model Objects/HSL Smart Action/Haptik Item/Payload/Payload Subtypes/La
-[Haptik(Additions) initDDLogger]
-[Haptik(Additions) handleSyncOnInitialization]
___47-[Haptik(Additions) handleSyncOnInitialization]_block_invoke
-[Haptik(Additions) getViaNameFromHaptikNotificationWith:]
-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]
___97-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]_block_invoke
-[Haptik(Additions) fetchConversationForViaName:launchMessage:hideLaunchMessage:error:]
Expand Down Expand Up @@ -6955,8 +6956,12 @@ ___25-[Haptik setDeviceToken:]_block_invoke
___33-[Haptik setDeviceTokenAsString:]_block_invoke
___33-[Haptik setDeviceTokenAsString:]_block_invoke_2
-[Haptik canHandleNotificationWithUserInfo:]
-[Haptik canHandleNotificationWithResponse:]
-[Haptik didReceiveHaptikNotificationResponse:controller:]
-[Haptik didReceiveHaptikRemoteNotification:controller:]
-[Haptik prepareHaptikNotificationForUserInfo:]
___47-[Haptik prepareHaptikNotificationForUserInfo:]_block_invoke
-[Haptik prepareHaptikNotificationForResponse:]
-[Haptik launchChannelWith:message:controller:]
-[Haptik launchChannelWith:launchMessage:hideLaunchMessage:controller:]
-[Haptik getConversationForViaName:error:]
Expand All @@ -6975,14 +6980,18 @@ _sharedSDK.onceToken
___block_descriptor_56_e8_32s40bs48s_e20_v20?0B8"NSError"12l
___block_descriptor_41_e8_32bs_e5_v8?0l
___block_literal_global.373
___block_literal_global.407
___block_descriptor_48_e8_32bs40s_e18_v16?0"Business"8l
/Users/iamsimranjot/Documents/Projects/haptik-ios-framework/Source Libraries/HaptikLib/HaptikLib/Haptik/Haptik.m
HaptikLib/Haptik/Haptik.m
HPCheckConversationForViaName
HPConversationClass
__43-[Haptik getUnreadCountFor:WithCompletion:]_block_invoke_3
__43-[Haptik getUnreadCountFor:WithCompletion:]_block_invoke_2
__43-[Haptik getUnreadCountFor:WithCompletion:]_block_invoke
__40-[Haptik syncUserCustomData:completion:]_block_invoke_2
__40-[Haptik syncUserCustomData:completion:]_block_invoke
__47-[Haptik prepareHaptikNotificationForUserInfo:]_block_invoke
__33-[Haptik setDeviceTokenAsString:]_block_invoke_2
__33-[Haptik setDeviceTokenAsString:]_block_invoke
__25-[Haptik setDeviceToken:]_block_invoke
Expand Down
4 changes: 2 additions & 2 deletions Frameworks/Core/HaptikLib.framework.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleVersion</key>
<string>110</string>
<string>111</string>
</dict>
</plist>
Git LFS file not shown
2 changes: 1 addition & 1 deletion Frameworks/Core/HaptikLib.framework/Assets.car
Git LFS file not shown
4 changes: 2 additions & 2 deletions Frameworks/Core/HaptikLib.framework/HaptikLib
Git LFS file not shown
107 changes: 87 additions & 20 deletions Frameworks/Core/HaptikLib.framework/Headers/Haptik.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ typedef NS_ENUM(NSUInteger, HaptikLibRunEnvironment) {

@interface Haptik : NSObject

/*!
/**
Returns the Haptik singleton object
*/
+ (instancetype)sharedSDK;


- (instancetype)init NS_UNAVAILABLE;


#pragma mark - Launch Methods

/**
Expand Down Expand Up @@ -167,7 +165,7 @@ typedef NS_ENUM(NSUInteger, HaptikLibRunEnvironment) {
- (void)signoutFromHaptik:(void (^)(BOOL success, NSError * _Nullable error))completion;


#pragma mark - Conversation Helpers
#pragma mark - Conversation

/**
@method
Expand Down Expand Up @@ -377,28 +375,13 @@ typedef NS_ENUM(NSUInteger, HaptikLibRunEnvironment) {
@abstract
Specifies to caller that whether passed in notification payload can be processed by Haptik SDK. This will immediately return boolean indicating if the remote notification payload received is from Haptik SDK.
@param userInfo The received remote notification payload to be processed
@param userInfo The received remote notification payload to be processed
@return Returns a BOOL indicating indicating the payload will be handled by HaptikLib
@code
#import "MyAppDelegate.h"
// For iOS 10.x & later
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response
withCompletionHandler:(void(^)(void))completionHandler {
...
BOOL canBeHandledByHaptik = [[Haptik sharedSDK] canHandleNotificationWithUserInfo:userInfo];
if (canBeHandledByHaptik) {
NSLog(@"do housekeeping");
[[Haptik sharedSDK] didReceiveHaptikNotificationResponse:response
controller:((UINavigationController *)self.window.rootViewController).visibleViewController];
}
}
// For iOS 9.x
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
Expand All @@ -416,6 +399,38 @@ typedef NS_ENUM(NSUInteger, HaptikLibRunEnvironment) {
*/
- (BOOL)canHandleNotificationWithUserInfo:(NSDictionary<NSString *, id> *)userInfo;

/**
@method
@abstract
Specifies to caller that whether passed in notification payload can be processed by Haptik SDK. This will immediately return boolean indicating if the remote notification payload received is from Haptik SDK.
@param response The received remote notification UNNotificationResponse to be processed
@return Returns a BOOL indicating indicating the payload will be handled by HaptikLib
@code
#import "MyAppDelegate.h"
// For iOS 10.x & later
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response
withCompletionHandler:(void(^)(void))completionHandler {
...
BOOL canBeHandledByHaptik = [[Haptik sharedSDK] canHandleNotificationWithResponse:response];
if (canBeHandledByHaptik) {
NSLog(@"do housekeeping");
[[Haptik sharedSDK] didReceiveHaptikNotificationResponse:response
controller:((UINavigationController *)self.window.rootViewController).visibleViewController];
}
}
@endcode
*/
- (BOOL)canHandleNotificationWithResponse:(UNNotificationResponse *)response;

/**
@method
Expand Down Expand Up @@ -483,6 +498,40 @@ typedef NS_ENUM(NSUInteger, HaptikLibRunEnvironment) {
- (void)didReceiveHaptikRemoteNotification:(NSDictionary<NSString *, id> *)userInfo
controller:(__kindof UIViewController *)controller;

/**
@method
@abstract
Prepares the HaptikSDK to handle the notification and gives you back the viaName of the conversation that the message belongs too.
@discussion
This method comes to use If you want to handle the notifications flow by yourself. On tapping the Haptik Notification, if you yourself want to take the user to the conversation, call this method before doing that.
It returns the viaName of the conversation to which the notification belongs too. Using this extracted viaName, you can take the user to the conversation scree.
@param response The received remote notification UNNotificationResponse to be processed
@return Returns the viaName of the conversation where you should take the user. Will return nil if its not an haptik notification
@code
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response
withCompletionHandler:(void(^)(void))completionHandler {
if ([[Haptik sharedSDK] canHandleNotificationWithResponse:response]) {
NSString *viaName = [[Haptik sharedSDK] prepareHaptikNotificationForResponse:response];
if (viaName && ![visibleViewController isKindOfClass:HPConversationClass()]) {
[[Haptik sharedSDK] launchChannelWith:viaName launchMessage:@"" hideLaunchMessage:NO controller:visibleViewController];
}
}
completionHandler();
}
@endcode
*/
- (NSString * _Nullable)prepareHaptikNotificationForResponse:(UNNotificationResponse *)response;


#pragma mark - Additional Methods

Expand Down Expand Up @@ -564,5 +613,23 @@ typedef NS_ENUM(NSUInteger, HaptikLibRunEnvironment) {
@end


#pragma mark - Conversation Helpers

/**
Represents the Class object of the Haptik's Conversation
*/
Class HPConversationClass(void);

/**
@abstract
Checks if the conversation controller belongs to the viaName. The contoller passed should belong to the HPConversationClass.
@param viaName Represents the string key used to uniquely identify a conversation inside Haptik
@param conversationController ViewController of type HPConversationClass
@return YES if the conversation is tied to the unique viaName passed, else NO.
*/
BOOL HPCheckConversationForViaName(NSString *viaName, __kindof UIViewController *conversationController);


NS_ASSUME_NONNULL_END

Binary file modified Frameworks/Core/HaptikLib.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleVersion</key>
<string>26</string>
<string>27</string>
</dict>
</plist>
Git LFS file not shown
Binary file modified Frameworks/Location/HaptikLocation.framework/Assets.car
Binary file not shown.
Git LFS file not shown
Binary file modified Frameworks/Location/HaptikLocation.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleVersion</key>
<string>20</string>
<string>21</string>
</dict>
</plist>
Git LFS file not shown
2 changes: 1 addition & 1 deletion Frameworks/Offline/HaptikOffline.framework/HaptikOffline
Git LFS file not shown
Binary file modified Frameworks/Offline/HaptikOffline.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleVersion</key>
<string>32</string>
<string>33</string>
</dict>
</plist>
Loading

0 comments on commit c771882

Please sign in to comment.