Skip to content

Commit

Permalink
Release 2.1.0 (#154)
Browse files Browse the repository at this point in the history
* Podspec updated

* Updated Docs

* Changelog and readme updated

* Updated release artifacts

* Example apps updated
  • Loading branch information
iamsimranjot authored Dec 4, 2019
1 parent cb337ae commit 08bb6ab
Show file tree
Hide file tree
Showing 75 changed files with 6,121 additions and 4,658 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Frameworks/Speech/HaptikSpeech.framework/HaptikSpeech filter=lfs diff=lfs merge=
frameworks/location/haptiklocation.framework/haptiklocation filter=lfs diff=lfs merge=lfs -text
frameworks/location/haptiklocation.framework.dsym/contents/resources/dwarf/haptiklocation filter=lfs diff=lfs merge=lfs -text
frameworks/core/haptiklocation.framework/assets.car filter=lfs diff=lfs merge=lfs -text
Frameworks/Analytics/HaptikAnalytics.framework/HaptikAnalytics filter=lfs diff=lfs merge=lfs -text
Frameworks/Analytics/HaptikAnalytics.framework.dSYM/Contents/Resources/DWARF/HaptikAnalytics filter=lfs diff=lfs merge=lfs -text
Frameworks/Offline/HaptikOffline.framework/HaptikOffline filter=lfs diff=lfs merge=lfs -text
Frameworks/Offline/HaptikOffline.framework.dSYM/Contents/Resources/DWARF/HaptikOffline filter=lfs diff=lfs merge=lfs -text
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,46 @@

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

## [2.1.0] - (04/12/19) - A iOS

### Features

- Message level feedback functionality is added
- Offline conversation functionality added
- Analytics is abstracted out in a separate spec

### Enhancements

- Added Unit tests in `HaptikBase`
- Taskbox to be presented after every 8 minutes of last message sent
- Add loader animation in place picker when detecting user location
- Show location address while searching for places
- Removed support of i386 architecture from the SDK
- Analytics added for offline module
- Only active forms are fetched while syncing
- Use ChildVC for feedback overlay
- Refactor Location Module
- Refactor Localisation in HPConfiguration

### Bugs

- Fix place picker loader animation not being dismissed
- Fix unsafe typecasting crash while dismissing taskbox overlay

---

## [2.0.1] - (19/11/19) - Y iOS

### Bugs

- Fix back button not working if the conversation is presented modally

### Enhancements

- Haptik Branding is now configurable from the backend

---

## [2.0.0] - (04/11/19) - X iOS

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,5 @@ extension AppDelegate: HPAnalyticsServiceDelegate {

// Get all the events tracked here
}

func errorTracked(_ errorMessage: String, forError error: Error?) {

// Get all the errors tracked here
}
}

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.0.1):
- HaptikLib/Core (= 2.0.1)
- HaptikLib/Base (2.0.1):
- HaptikLib (2.1.0):
- HaptikLib/Core (= 2.1.0)
- HaptikLib/Base (2.1.0):
- PINRemoteImage (= 3.0.0-beta.13)
- PINRemoteImage/WebP (= 3.0.0-beta.13)
- HaptikLib/Core (2.0.1):
- HaptikLib/Core (2.1.0):
- 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: 7f4570b033bb411bdae685742dcbc4eabdb91be9
HaptikLib: a02bc81d87332cabc01da5649be462785a2ea578
libwebp: d7e0c95fe97245c97e08101eba10702ebb0f6101
PINCache: d195fdba255283f7e9900a55e3cced377f431f9b
PINOperation: a6219e6fc9db9c269eb7a7b871ac193bcf400aac
Expand Down
5 changes: 0 additions & 5 deletions Examples/Swift-Example/Swift-Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,5 @@ extension AppDelegate: HPAnalyticsServiceDelegate {

// Get all the events tracked here
}

func errorTracked(_ errorMessage: String, forError error: Error?) {

// Get all the errors tracked here
}
}

36 changes: 17 additions & 19 deletions Feature Guides/analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ title: Analytics

## HaptikLib Analytics

HaptikLib uses **Analytics** internally and also _provides the functionality of giving callbacks for every event tracking_. `HPAnalyticsServiceDelegate` **protocol** is defined in `HPConfiguration.h` class under which two optional methods are defined which are called if you confirm to the respective protocol. The class has a property named `analyticsCallbackObject` of type `HPAnalyticsServiceDelegate` which the application needs to set with the object that will confirm to the protocol.
HaptikLib is geared up with **analytics** internally and also _provides the functionality of giving callbacks for every event tracking_. The `HPAnalyticsServiceDelegate` **protocol** gives an optional method (_see example below_) which is called if you confirm to the protocol.

**HPConfiguration** class exposes a property named `analyticsCallbackObject` of type `HPAnalyticsServiceDelegate` which the application needs to set with the object that will confirm to the protocol.

Example:

```
```ObjC
@interface ViewController () < HPAnalyticsServiceDelegate >

@implementation ViewController
Expand All @@ -23,11 +25,6 @@ Example:
// Callback for every event recorded
}

- (void)errorTracked:(NSString *)errorMessage forError:(NSError *)error {
// Callback for every error recorded
}
@end
```
Expand All @@ -46,9 +43,9 @@ A dictionary with the name `CleverTap` is to be added in `HaptikLib`. The dictio
Example:
```
```XML
<key>HaptikLib</key>
<dict>
<dict>
<key>apiKey</key>
<string>INSERT_API_KEY_HERE</string>
<key>baseUrl</key>
Expand All @@ -58,19 +55,20 @@ Example:
<key>runEnvironment</key>
<string>INSERT_APPROPRIATE_RUN_ENVIRONMENT</string>
***
***
<key>CleverTap</key>
<dict>
<key>CleverTapAccountID</key>
<string>INSERT_CLEVER_TAP_ACCOUNT_ID</string>
<key>CleverTapToken</key>
<string>INSERT_CLEVER_TAP_TOKEN</string>
</dict>
<key>CleverTap</key>
<dict>
<key>CleverTapAccountID</key>
<string>INSERT_CLEVER_TAP_ACCOUNT_ID</string>
<key>CleverTapToken</key>
<string>INSERT_CLEVER_TAP_TOKEN</string>
</dict>
***
***
</dict>
</dict>
```

---

20 changes: 5 additions & 15 deletions Feature Guides/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Features

To Signout the current user from Haptik, use the following method on `[Haptik sharedSDK]`:

```
```ObjC
[[Haptik sharedSDK] signoutFromHaptik:^(BOOL success, NSError * _Nullable error) {

if (success) {
Expand All @@ -22,30 +22,20 @@ else {
---
## InteractivePopGesture

This BOOL controls the functionality of the `EdgePanGestureRecognizer` feature of UINavigationController that allows to set the slide to go back functionality for Haptik Screens. By default the value will be true.

```
[HPConfiguration shared].useInteractivePopGesture = YES;
```

---

## Opening Conversation View
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.
Example:
```
```ObjC
[[Haptik sharedSDK] launchChannelWith:@"INSERT_BUSINESS_VIA_NAME_HERE"
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:

```
```ObjC
NSError *error;
UIViewController *haptikConversation = [[Haptik sharedSDK] getConversationForViaName:@"INSERT_BUSINESS_VIA_NAME_HERE"
error:&error];
Expand All @@ -58,15 +48,14 @@ If you wish to push to the conversation view by yourself you can use the followi
```
- 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
HaptikLib provides the `unreadCount` of the chat that the user has not read.
```
```ObjC
- (void)getUnreadCountFor:(NSString *)viaName
WithCompletion:(void(^)(NSUInteger unreadCount, NSError * _Nullable error))completion;
```
Expand Down Expand Up @@ -127,3 +116,4 @@ You can change the current language of the SDK using the following method in `Ha
Also users can change the language from conversation screen. So make sure you check `HaptikConfigs.currentHaptikLocale`
---
Loading

0 comments on commit 08bb6ab

Please sign in to comment.