From 38bf60e30ea6d2c34e7e55b7011cbd021933e808 Mon Sep 17 00:00:00 2001 From: Przemyslaw Dabrowski Date: Wed, 9 Sep 2020 15:07:39 +0200 Subject: [PATCH] Release 9.2.0 --- CHANGELOG.md | 5 +++++ README.md | 2 +- intercom-plugin/package.json | 2 +- intercom-plugin/plugin.xml | 2 +- intercom-plugin/src/android/intercom.gradle | 14 ++++++++------ 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65f0f24..d90f909 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 6b2d3db..978f177 100644 --- a/README.md +++ b/README.md @@ -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 - + ``` ## Example App diff --git a/intercom-plugin/package.json b/intercom-plugin/package.json index bc391bc..23289d4 100644 --- a/intercom-plugin/package.json +++ b/intercom-plugin/package.json @@ -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", diff --git a/intercom-plugin/plugin.xml b/intercom-plugin/plugin.xml index d0b8bc4..be13178 100644 --- a/intercom-plugin/plugin.xml +++ b/intercom-plugin/plugin.xml @@ -1,5 +1,5 @@ - + Intercom Intercom MIT License diff --git a/intercom-plugin/src/android/intercom.gradle b/intercom-plugin/src/android/intercom.gradle index 0350965..b0a0fa3 100644 --- a/intercom-plugin/src/android/intercom.gradle +++ b/intercom-plugin/src/android/intercom.gradle @@ -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' } } } @@ -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' } } @@ -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") }