Skip to content

Commit

Permalink
Release 6.1.0 (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleCantwell authored Jul 20, 2018
1 parent 8529c9e commit e9158ba
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 13 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Intercom for Cordova/PhoneGap

## 6.1.0 (2018-07-20)

**Enable mobile users to help themselves with the new mobile SDK for iOS and Android 🎉 😃**

The new Intercom mobile SDK brings the Messenger Home to your mobile applications. This means you can add messenger apps that allow your users to self-serve instead of starting a conversation. Users can now quickly access relevant help articles, review pinned content, and view product status in real time – all from the messenger home screen.

![android-release-screens](https://user-images.githubusercontent.com/2615468/42951497-316de29a-8b6e-11e8-8ed8-a0a3a93f6f4f.png)

![ios-release-screens](https://user-images.githubusercontent.com/3185423/42937925-71ab4b5c-8b48-11e8-913b-88d48c9b82f3.png)

**API changes**

* `displayConversationsList` - Use `displayMessenger` instead.

These deprecated methods will still work, but will be removed in a future release.

## 6.0.0 (2018-06-12)

The Business Messenger reimagined.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cordova plugin add cordova-plugin-intercom

To add the plugin to your PhoneGap app, add the following to your `config.xml`:
```xml
<plugin name="cordova-plugin-intercom" version="~5.1.1" />
<plugin name="cordova-plugin-intercom" version="~6.1.0" />
```
### Ionic

Expand Down
2 changes: 1 addition & 1 deletion intercom-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-intercom",
"version": "6.0.0",
"version": "6.1.0",
"description": "Official Cordova/PhoneGap plugin for Intercom",
"cordova": {
"id": "cordova-plugin-intercom",
Expand Down
4 changes: 2 additions & 2 deletions intercom-plugin/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-intercom" version="6.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="cordova-plugin-intercom" version="6.1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Intercom</name>
<author>Intercom</author>
<license>MIT License</license>
Expand Down Expand Up @@ -47,7 +47,7 @@
</array>
</config-file>

<framework src="Intercom" type="podspec" spec="~> 5.0.0" />
<framework src="Intercom" type="podspec" spec="~> 5.1.0" />
</platform>

<platform name="android">
Expand Down
5 changes: 3 additions & 2 deletions intercom-plugin/src/android/IntercomBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void setUpIntercom() {
try {
Context context = cordova.getActivity().getApplicationContext();

CordovaHeaderInterceptor.setCordovaVersion(context, "5.1.1");
CordovaHeaderInterceptor.setCordovaVersion(context, "6.1.0");

switch (IntercomPushManager.getInstalledModuleType()) {
case GCM: {
Expand Down Expand Up @@ -185,7 +185,8 @@ private enum Action {
},
displayConversationsList {
@Override void performAction(JSONArray args, CallbackContext callbackContext, CordovaInterface cordova) {
Intercom.client().displayConversationsList();
LumberMill.getLogger().w("displayConversationsList is deprecated. Please use displayMessenger instead.");
Intercom.client().displayMessenger();
callbackContext.success();
}
},
Expand Down
6 changes: 3 additions & 3 deletions intercom-plugin/src/android/intercom.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ repositories {
}

dependencies {
compile 'io.intercom.android:intercom-sdk-base:5.0.+'
compile 'io.intercom.android:intercom-sdk-base:5.1.+'
if (pushType == 'gcm') {
compile 'io.intercom.android:intercom-sdk-gcm:5.0.+'
compile 'io.intercom.android:intercom-sdk-gcm:5.1.+'
} else if (pushType == 'fcm' || pushType == 'fcm-without-build-plugin') {
compile 'com.google.firebase:firebase-messaging:11.+'
compile 'io.intercom.android:intercom-sdk-fcm:5.0.+'
compile 'io.intercom.android:intercom-sdk-fcm:5.1.+'
}
}

Expand Down
9 changes: 5 additions & 4 deletions intercom-plugin/src/ios/IntercomBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ + (void)setCordovaVersion:(NSString *)v;
@implementation IntercomBridge : CDVPlugin

- (void)pluginInitialize {
[Intercom setCordovaVersion:@"5.1.1"];
[Intercom setCordovaVersion:@"6.1.0"];
#ifdef DEBUG
[Intercom enableLogging];
#endif
Expand Down Expand Up @@ -93,18 +93,19 @@ - (void)displayMessenger:(CDVInvokedUrlCommand*)command {
}

- (void)displayMessageComposer:(CDVInvokedUrlCommand*)command {
[Intercom presentMessageComposer];
[Intercom presentMessageComposer:nil];
[self sendSuccess:command];
}

- (void)displayMessageComposerWithInitialMessage:(CDVInvokedUrlCommand*)command {
NSString *initialMessage = command.arguments[0];
[Intercom presentMessageComposerWithInitialMessage:initialMessage];
[Intercom presentMessageComposer:initialMessage];
[self sendSuccess:command];
}

- (void)displayConversationsList:(CDVInvokedUrlCommand*)command {
[Intercom presentConversationList];
NSLog(@"[Intercom-Cordova] WARNING - displayConversationsList is deprecated. Please use displayMessenger instead.");
[Intercom presentMessenger];
[self sendSuccess:command];
}

Expand Down

0 comments on commit e9158ba

Please sign in to comment.