Skip to content

Commit

Permalink
Release 9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Dabrowski authored and Przemysław committed Sep 9, 2020
1 parent 611fcde commit 38bf60e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Intercom for Cordova/PhoneGap

## 9.2.0 (2020-09-09)

* The Intercom Cordova plugin has been updated to use v8.1.0 of the Intercom Android SDK as the latest version.
* Fixed the Gradle [issue](https://community.intercom.com/t/cordova-android-9-and-cordova-intercom-9-1/2235) with enabling push notification

## 9.1.1 (2020-08-25)

* The Intercom Cordova plugin has been updated to use v8.0.0 of the Intercom Android SDK as the latest version.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,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="~9.1.1" />
<plugin name="cordova-plugin-intercom" version="~9.2.0" />
```

## Example App
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": "9.1.1",
"version": "9.2.0",
"description": "Official Cordova/PhoneGap plugin for Intercom",
"cordova": {
"id": "cordova-plugin-intercom",
Expand Down
2 changes: 1 addition & 1 deletion 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="9.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="9.2.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
14 changes: 8 additions & 6 deletions intercom-plugin/src/android/intercom.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ buildscript {
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.android.tools.build:gradle:4.0.0'
if (pushType == 'fcm') {
classpath 'com.google.gms:google-services:3.2.0'
classpath 'com.google.gms:google-services:4.3.3'
}
}
}
Expand All @@ -28,10 +28,10 @@ repositories {
}

dependencies {
implementation 'io.intercom.android:intercom-sdk-base:8.0.0'
implementation 'io.intercom.android:intercom-sdk-base:8.1.0'
if (pushType == 'fcm' || pushType == 'fcm-without-build-plugin') {
implementation 'com.google.firebase:firebase-messaging:20.+'
implementation 'io.intercom.android:intercom-sdk-fcm:8.0.0'
implementation 'io.intercom.android:intercom-sdk-fcm:8.1.0'
}
}

Expand All @@ -42,10 +42,12 @@ task copyGoogleServices(type: Copy) {
into '.'
}

gradle.taskGraph.whenReady {
copyGoogleServices
}

if (pushType == 'fcm') {
tasks.copyGoogleServices.execute()
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
} else if (pushType == 'fcm-without-build-plugin') {
tasks.copyGoogleServices.execute()
logger.info("Not applying GoogleServicesPlugin from Intercom plugin, another plugin should do this")
}

0 comments on commit 38bf60e

Please sign in to comment.