Skip to content

Commit

Permalink
Release 6.0.0 (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleCantwell authored Jun 12, 2018
1 parent 0cf7ec3 commit 8529c9e
Show file tree
Hide file tree
Showing 25 changed files with 91 additions and 50 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Intercom for Cordova/PhoneGap

## 6.0.0 (2018-06-12)

The Business Messenger reimagined.

**Messenger apps**
* Complete actions beyond chat in the Messenger seamlessly with a growing library of apps. Messenger apps are being rolled out to all customers over the next 2 weeks.

**Extendable platform**
* Create your own Messenger apps to suit your unique workflows – and enable entirely new ones.

**Updated Design**
* Updated visual design with new wallpapers and expanded color settings.

**Messenger settings**
* New wallpapers to customize your profile.
* Set a background color for your profile and an action color for cards and chat bubbles.
* Support light theme colors in your messenger.

**Help Center**
* Added the method `displayHelpCenter()`. Calling this method in your app displays your Articles Help Center. Learn more about Articles [here](https://www.intercom.com/articles/features).

![5-0-0-android-release-screens](https://user-images.githubusercontent.com/2615468/39157445-befb7196-4752-11e8-8a33-57636975ecec.png)

![5-0-0-ios-release-screens](https://user-images.githubusercontent.com/3185423/39155559-6a3f239e-474a-11e8-8eb0-fdb0c69d288f.jpg)

## 5.1.1 (2018-02-26)

* Include FCM libraries when building without build plugin [#257](https://github.com/intercom/intercom-cordova/pull/257)
Expand Down
14 changes: 2 additions & 12 deletions Example/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,7 @@
<icon height="40" src="www/img/icon-40.png" width="40" />
<icon height="80" src="www/img/[email protected]" width="80" />
<icon height="167" src="www/img/[email protected]" width="167" />
<splash height="960" src="www/img/launch/[email protected]" width="640" />
<splash height="480" src="www/img/launch/Default.png" width="320" />
<splash height="1024" src="www/img/launch/Default-Portrait_iPad.png" width="768" />
<splash height="2048" src="www/img/launch/[email protected]" width="1536" />
<splash height="768" src="www/img/launch/iPad_landscape.png" width="1024" />
<splash height="1536" src="www/img/launch/[email protected]" width="2048" />
<splash height="960" src="www/img/launch/iPhone_small.png" width="640" />
<splash height="1136" src="www/img/launch/[email protected]" width="640" />
<splash height="1334" src="www/img/launch/[email protected]" width="750" />
<splash height="2208" src="www/img/launch/[email protected]" width="1242" />
<splash height="1242" src="www/img/launch/iPad_landscape_large.png" width="2208" />
<splash src="www/img/launch/Default@2x~universal~anyany.png" />
</platform>
<preference name="intercom-app-id" value="YOUR_APP_ID" />
<preference name="intercom-ios-api-key" value="YOU_IOS_API_KEY" />
Expand All @@ -62,6 +52,6 @@
-->

<plugin name="cordova-plugin-whitelist" spec="1.0.0" />
<engine name="android" spec="^7.0.0" />
<engine name="android" spec="^7.1.0" />
<engine name="ios" spec="^4.5.4" />
</widget>
31 changes: 17 additions & 14 deletions Example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions Example/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "io.intercom.cordova.sample",
"version": "0.0.1",
"displayName": "Intercom Cordova",
"cordova": {
"platforms": [
"android",
"ios"
],
"plugins": {
"cordova-plugin-whitelist": {}
"name": "io.intercom.cordova.sample",
"version": "0.0.1",
"displayName": "Intercom Cordova",
"cordova": {
"platforms": [
"ios",
"android"
],
"plugins": {
"cordova-plugin-whitelist": {}
}
},
"dependencies": {
"cordova-android": "^7.1.0",
"cordova-ios": "^4.5.4",
"cordova-plugin-whitelist": "1.0.0"
}
},
"dependencies": {
"cordova-android": "^7.0.0",
"cordova-ios": "^4.5.4",
"cordova-plugin-whitelist": "1.0.0"
}
}
Binary file removed Example/www/img/launch/[email protected]
Binary file not shown.
Binary file removed Example/www/img/launch/[email protected]
Binary file not shown.
Binary file removed Example/www/img/launch/[email protected]
Binary file not shown.
Binary file removed Example/www/img/launch/Default-Portrait_iPad.png
Binary file not shown.
Binary file removed Example/www/img/launch/[email protected]
Binary file not shown.
Binary file removed Example/www/img/launch/Default.png
Binary file not shown.
Binary file removed Example/www/img/launch/[email protected]
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Example/www/img/launch/iPad_landscape.png
Binary file not shown.
Binary file removed Example/www/img/launch/[email protected]
Binary file not shown.
Binary file removed Example/www/img/launch/iPad_landscape_large.png
Binary file not shown.
Binary file removed Example/www/img/launch/iPhone_small.png
Binary file not shown.
3 changes: 2 additions & 1 deletion Example/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover">
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>Intercom Cordova Sample</title>
</head>
Expand All @@ -14,6 +14,7 @@
<p><button id="login-btn">Login</button></p>
<p><button id="logout-btn">Logout</button></p>
<p><button id="open-intercom-btn">Open Intercom</button></p>
<p><button id="open-help-center-btn">Open Help Center</button></p>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
Expand Down
6 changes: 6 additions & 0 deletions Example/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ var app = {
document.getElementById("open-intercom-btn").addEventListener("click", function(){
intercom.displayMessenger();
}, false);

document.getElementById("open-help-center-btn").addEventListener("click", function(){
intercom.displayHelpCenter();
}, false);
},
// Update DOM on a Received Event
receivedEvent: function(id) {
Expand All @@ -83,12 +87,14 @@ var app = {
configureViewForLoggedInUser: function() {
document.getElementById("logout-btn").style.visibility = 'visible';
document.getElementById("open-intercom-btn").style.visibility = 'visible';
document.getElementById("open-help-center-btn").style.visibility = 'visible';
document.getElementById("login-btn").style.visibility = 'hidden';
},

configureViewForLoggedOutUser: function() {
document.getElementById("logout-btn").style.visibility = 'hidden';
document.getElementById("open-intercom-btn").style.visibility = 'hidden';
document.getElementById("open-help-center-btn").style.visibility = 'hidden';
document.getElementById("login-btn").style.visibility = 'visible';
}
};
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": "5.1.1",
"version": "6.0.0",
"description": "Official Cordova/PhoneGap plugin for Intercom",
"cordova": {
"id": "cordova-plugin-intercom",
Expand Down
6 changes: 3 additions & 3 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="5.1.1" 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.0.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 All @@ -9,7 +9,7 @@

<engines>
<engine name="cordova" version=">=7.1.0" />
<engine name="cordova-android" version=">=7.0.0" />
<engine name="cordova-android" version=">=7.1.0" />
<engine name="cordova-ios" version=">=4.5.4" />
</engines>

Expand Down Expand Up @@ -47,7 +47,7 @@
</array>
</config-file>

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

<platform name="android">
Expand Down
6 changes: 6 additions & 0 deletions intercom-plugin/src/android/IntercomBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ private enum Action {
callbackContext.success();
}
},
displayHelpCenter {
@Override void performAction(JSONArray args, CallbackContext callbackContext, CordovaInterface cordova) {
Intercom.client().displayHelpCenter();
callbackContext.success();
}
},
setLauncherVisibility {
@Override void performAction(JSONArray args, CallbackContext callbackContext, CordovaInterface cordova) {
String visibilityString = args.optString(0);
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:4.1.+'
compile 'io.intercom.android:intercom-sdk-base:5.0.+'
if (pushType == 'gcm') {
compile 'io.intercom.android:intercom-sdk-gcm:4.1.+'
compile 'io.intercom.android:intercom-sdk-gcm:5.0.+'
} else if (pushType == 'fcm' || pushType == 'fcm-without-build-plugin') {
compile 'com.google.firebase:firebase-messaging:11.+'
compile 'io.intercom.android:intercom-sdk-fcm:4.1.+'
compile 'io.intercom.android:intercom-sdk-fcm:5.0.+'
}
}

Expand Down
1 change: 1 addition & 0 deletions intercom-plugin/src/ios/IntercomBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- (void)displayMessageComposer:(CDVInvokedUrlCommand*)command;
- (void)displayMessageComposerWithInitialMessage:(CDVInvokedUrlCommand*)command;
- (void)displayConversationsList:(CDVInvokedUrlCommand*)command;
- (void)displayHelpCenter:(CDVInvokedUrlCommand*)command;

- (void)setLauncherVisibility:(CDVInvokedUrlCommand*)command;
- (void)setInAppMessageVisibility:(CDVInvokedUrlCommand*)command;
Expand Down
5 changes: 5 additions & 0 deletions intercom-plugin/src/ios/IntercomBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ - (void)displayConversationsList:(CDVInvokedUrlCommand*)command {
[self sendSuccess:command];
}

- (void)displayHelpCenter:(CDVInvokedUrlCommand*)command {
[Intercom presentHelpCenter];
[self sendSuccess:command];
}

- (void)hideMessenger:(CDVInvokedUrlCommand*)command {
[Intercom hideMessenger];
[self sendSuccess:command];
Expand Down
4 changes: 4 additions & 0 deletions intercom-plugin/www/intercom.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ var intercom = {
cordova.exec(success, error, 'Intercom', 'displayConversationsList', []);
},

displayHelpCenter: function(success, error) {
cordova.exec(success, error, 'Intercom', 'displayHelpCenter', []);
},

unreadConversationCount: function(success, error) {
cordova.exec(success, error, 'Intercom', 'unreadConversationCount', []);
},
Expand Down

0 comments on commit 8529c9e

Please sign in to comment.