Skip to content

Commit

Permalink
Artifacts updated for release 1.8.2 (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsimranjot authored Oct 16, 2019
1 parent 089df98 commit 04645de
Show file tree
Hide file tree
Showing 29 changed files with 91 additions and 20 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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

## [1.8.2] - (16/10/19) - W iOS

### Enhancements

- New API for launching the conversation view directly

---

## [1.8.1] - (03/10/19) - U iOS

### Bugs
Expand Down
59 changes: 55 additions & 4 deletions Feature Guides/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,31 @@ This BOOL controls the functionality of the `EdgePanGestureRecognizer` feature o

Once the user has been signed up, you also have the ability to open Conversation View for a specific channel directly. It needs to be Initialized with the unique business name of the channel that you wish to open Conversation for and an optional message text (can be `nil`) if you want to log any.

> Make sure to turn the `useInbox` flag on **HPConfiguration** to `NO` for it
Example:

```
[[Haptik sharedSDK] launchChannelWith:@"INSERT_BUSINESS_VIA_NAME_HERE"
message:@"INSERT_CUSTOM_MESSAGE_TEXT_HERE"
controller:visibleViewController];
message:@"INSERT_CUSTOM_MESSAGE_TEXT_HERE"
controller:visibleViewController];
```

If you wish to push to the conversation view by yourself you can use the following API:

```
NSError *error;
UIViewController *haptikConversation = [[Haptik sharedSDK] getConversationForViaName:@"INSERT_BUSINESS_VIA_NAME_HERE"
error:&error];
if (error) {
// Handle Error case
return;
}
[self.navigationController pushViewController:haptikConversation animated:YES];
```

- Check for selected [language](#localization) before pushing to a conversation screen.
- Make sure to turn the `useInbox` flag on **HPConfiguration** to `NO` for it

---

## Unread Count
Expand Down Expand Up @@ -95,4 +110,40 @@ You can also get the count of the current offers running on Haptik through the h

> Note: The offers count will be available through this function only after the user has been pushed to this screen once in the lifetime.
## Localization

HaptikLib provides the option to change the language of the SDK.

HaptikLib uses the [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format for languages.

The list of supported languages can be accessed from `HPLanguages`.

```ObjC
if ([HPLanguages containsObject:@"en"]) {
//do your thing
}
```
Current selected language can be obtained from `HaptikConfigs.currentHaptikLocale` which will return a [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
The default selected language will be English ("en").
You can change the current language of the SDK using the following method in `HaptikConfigs`
```ObjC
[HaptikConfigs setHaptikLocale:@"en" with:^(BOOL success) {
if (success) {
//language is successfully set
}
else {
//revert back
}
}];
```

> Note: Changing Language triggers a network call, meaning the callback won't necessarily be called immediately. Plan your language change calls accordingly.
Also users can change the language from conversation screen. So make sure you check `HaptikConfigs.currentHaptikLocale`

---

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.8.1</string>
<string>1.8.2</string>
<key>CFBundleVersion</key>
<string>15</string>
</dict>
Expand Down
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 @@ -6028,15 +6028,16 @@ HaptikLib/Model Objects/HSL Smart Action/Haptik Item/Payload/Payload Subtypes/La
___47-[Haptik(Additions) handleSyncOnInitialization]_block_invoke
-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]
___97-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]_block_invoke
-[Haptik(Additions) fetchConversationForViaName:error:]
-[Haptik(Additions) startHaptikNotificationFlow:controller:]
___60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke
___60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.360
___60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.536
-[Haptik(Additions) getForcesEntityTypes]
___block_descriptor_28_e4_20s24s_e21_v8?0"NSDictionary"4l
___block_descriptor_37_e4_20s24s28s_e5_v4?0l
/Users/iamsimranjot/Desktop/haptik-ios-framework/Source Libraries/HaptikLib/HaptikLib/Haptik/Additions/Haptik+Additions.m
HaptikLib/Haptik/Additions/Haptik+Additions.m
__60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.360
__60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.536
__60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke
__97-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]_block_invoke
__47-[Haptik(Additions) handleSyncOnInitialization]_block_invoke
Expand Down Expand Up @@ -7477,6 +7478,7 @@ ___25-[Haptik setDeviceToken:]_block_invoke_2
-[Haptik didReceiveHaptikNotificationResponse:controller:]
-[Haptik didReceiveHaptikRemoteNotification:controller:]
-[Haptik launchChannelWith:message:controller:]
-[Haptik getConversationForViaName:error:]
-[Haptik launchChannelToTriggerBotFor:message:source:controller:]
-[Haptik isRedirectHandled:options:]
-[Haptik pushToTransactionHistoryFrom:completion:]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6022,15 +6022,16 @@ HaptikLib/Model Objects/HSL Smart Action/Haptik Item/Payload/Payload Subtypes/La
___47-[Haptik(Additions) handleSyncOnInitialization]_block_invoke
-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]
___97-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]_block_invoke
-[Haptik(Additions) fetchConversationForViaName:error:]
-[Haptik(Additions) startHaptikNotificationFlow:controller:]
___60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke
___60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.360
___60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.536
-[Haptik(Additions) getForcesEntityTypes]
___block_descriptor_48_e8_32s40s_e22_v16?0"NSDictionary"8l
___block_descriptor_65_e8_32s40s48s_e5_v8?0l
/Users/iamsimranjot/Desktop/haptik-ios-framework/Source Libraries/HaptikLib/HaptikLib/Haptik/Additions/Haptik+Additions.m
HaptikLib/Haptik/Additions/Haptik+Additions.m
__60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.360
__60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke.536
__60-[Haptik(Additions) startHaptikNotificationFlow:controller:]_block_invoke
__97-[Haptik(Additions) handleNotificationWithUserInfo:controller:respectBackgroundApplicationState:]_block_invoke
__47-[Haptik(Additions) handleSyncOnInitialization]_block_invoke
Expand Down Expand Up @@ -7468,6 +7469,7 @@ ___25-[Haptik setDeviceToken:]_block_invoke_2
-[Haptik didReceiveHaptikNotificationResponse:controller:]
-[Haptik didReceiveHaptikRemoteNotification:controller:]
-[Haptik launchChannelWith:message:controller:]
-[Haptik getConversationForViaName:error:]
-[Haptik launchChannelToTriggerBotFor:message:source:controller:]
-[Haptik isRedirectHandled:options:]
-[Haptik pushToTransactionHistoryFrom:completion:]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.8.1</string>
<string>1.8.2</string>
<key>CFBundleVersion</key>
<string>80</string>
</dict>
Expand Down
Git LFS file not shown
4 changes: 2 additions & 2 deletions 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
8 changes: 8 additions & 0 deletions Frameworks/Core/HaptikLib.framework/Headers/Haptik.h
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,14 @@ UIKIT_EXTERN NSNotificationName const HPOffersUpdatedNotification;
controller:(__kindof UIViewController *)controller;


/// Gets you an instance of the conversation window
///
/// @param viaName Represents the key that haptik uses to find your conversation
/// @param error It requires an NSError object pointer that will be populated in case of a potential fail during the process
- (__kindof UIViewController *)getConversationForViaName:(NSString *)viaName
error:(NSError * __autoreleasing *)error;


/*!
Allows SDK clients to take user to a specific channel and trigger the Bot
@param viaName Represents the string key used to uniquely specify channel inside Haptik
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Frameworks/Core/HaptikLib.framework/Info.plist
Binary file not shown.
Binary file modified Frameworks/Core/HaptikLib.framework/Model2_to_Model3.cdm
Binary file not shown.
Binary file modified Frameworks/Core/HaptikLib.framework/Model_to_Model2.cdm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.8.1</string>
<string>1.8.2</string>
<key>CFBundleVersion</key>
<string>2</string>
</dict>
Expand Down
Git LFS file not shown
2 changes: 1 addition & 1 deletion Frameworks/Speech/HaptikSpeech.framework/HaptikSpeech
Git LFS file not shown
Binary file modified Frameworks/Speech/HaptikSpeech.framework/Info.plist
Binary file not shown.
2 changes: 1 addition & 1 deletion HaptikLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Pod::Spec.new do |s|

s.name = "HaptikLib"
s.version = "1.8.1"
s.version = "1.8.2"
s.summary = "Say goodbye to App Fatigue. Instantly enable 100+ chatbots across various daily tasks"

s.description = <<-DESC
Expand Down

0 comments on commit 04645de

Please sign in to comment.