From 4de620854403ca11f8858e0c5babc8a309e05477 Mon Sep 17 00:00:00 2001 From: Prithivraj Selvaraj Date: Thu, 13 Jan 2022 08:54:06 +0000 Subject: [PATCH] Release 11.0.0 (#311) * Removed jcenter from repositories list and added build script for sample * Updated to v11.0.0 --- CHANGELOG.md | 5 +++++ intercom-plugin/package.json | 2 +- intercom-plugin/src/android/IntercomBridge.java | 2 +- intercom-plugin/src/android/intercom.gradle | 8 ++++---- runAndroidSample.sh | 13 +++++++++++++ 5 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 runAndroidSample.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index b00c0ed..2515b34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Intercom for Cordova/PhoneGap +## 11.0.0 (2022-01-13) +* The Intercom Cordova plugin has been updated to use the latest version of the Intercom iOS (v11.0.0) and Android SDK (v10.6.0) +* The minimum deployment version for iOS is now iOS 13. +* Using Intercom cordova plugin for the Android platform does not require jcenter + ## 10.2.0 (2021-09-28) * The Intercom Cordova plugin has been updated to use the latest version of the Intercom iOS (v10.3.0) and Android SDK (v10.2.0) diff --git a/intercom-plugin/package.json b/intercom-plugin/package.json index 7056070..31d12ba 100644 --- a/intercom-plugin/package.json +++ b/intercom-plugin/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-intercom", - "version": "10.2.0", + "version": "11.0.0", "description": "Official Cordova/PhoneGap plugin for Intercom", "cordova": { "id": "cordova-plugin-intercom", diff --git a/intercom-plugin/src/android/IntercomBridge.java b/intercom-plugin/src/android/IntercomBridge.java index 9a64a3f..89b0250 100644 --- a/intercom-plugin/src/android/IntercomBridge.java +++ b/intercom-plugin/src/android/IntercomBridge.java @@ -70,7 +70,7 @@ private void setUpIntercom() { try { Context context = cordova.getActivity().getApplicationContext(); - CordovaHeaderInterceptor.setCordovaVersion(context, "10.2.0"); + CordovaHeaderInterceptor.setCordovaVersion(context, "11.0.0"); switch (IntercomPushManager.getInstalledModuleType()) { case FCM: { diff --git a/intercom-plugin/src/android/intercom.gradle b/intercom-plugin/src/android/intercom.gradle index 9236699..815426e 100644 --- a/intercom-plugin/src/android/intercom.gradle +++ b/intercom-plugin/src/android/intercom.gradle @@ -9,8 +9,8 @@ buildscript { } repositories { google() - jcenter() mavenLocal() + mavenCentral() maven { url 'https://maven.google.com' } } dependencies { @@ -23,19 +23,19 @@ buildscript { repositories { google() - jcenter() + mavenCentral() maven { url 'https://maven.google.com' } } dependencies { - implementation 'io.intercom.android:intercom-sdk-base:10.2.+' + implementation 'io.intercom.android:intercom-sdk-base:10.6.0' implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.intercom:twig:1.3.0' implementation 'org.jetbrains:annotations:13.0' implementation 'com.squareup.okhttp3:okhttp:4.9.0' if (pushType == 'fcm' || pushType == 'fcm-without-build-plugin') { implementation 'com.google.firebase:firebase-messaging:20.+' - implementation 'io.intercom.android:intercom-sdk-fcm:10.2.+' + implementation 'io.intercom.android:intercom-sdk-fcm:10.6.0' } } diff --git a/runAndroidSample.sh b/runAndroidSample.sh new file mode 100644 index 0000000..2b77fe4 --- /dev/null +++ b/runAndroidSample.sh @@ -0,0 +1,13 @@ +clear +jenv global 1.8 +export ANDROID_SDK_ROOT=~/Library/Android/sdk +export PATH=${PATH}:${ANDROID_HOME}/tools +export PATH=${PATH}:${ANDROID_HOME}/platform-tools +cd Example +#cordova plugin remove cordova-plugin-intercom +#cordova plugin add cordova-plugin-intercom +cordova plugin remove ../intercom-plugin +cordova plugin add ../intercom-plugin +cordova platform remove android +cordova platform add android@10.0.0 --save +cordova run android --stacktrace \ No newline at end of file