Skip to content

Commit

Permalink
Release 11.0.0 (#311)
Browse files Browse the repository at this point in the history
* Removed jcenter from repositories list and added build script for sample

* Updated to v11.0.0
  • Loading branch information
prithivraj authored Jan 13, 2022
1 parent a3b54ee commit 4de6208
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 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

## 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)

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": "10.2.0",
"version": "11.0.0",
"description": "Official Cordova/PhoneGap plugin for Intercom",
"cordova": {
"id": "cordova-plugin-intercom",
Expand Down
2 changes: 1 addition & 1 deletion intercom-plugin/src/android/IntercomBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
8 changes: 4 additions & 4 deletions intercom-plugin/src/android/intercom.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ buildscript {
}
repositories {
google()
jcenter()
mavenLocal()
mavenCentral()
maven { url 'https://maven.google.com' }
}
dependencies {
Expand All @@ -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'
}
}

Expand Down
13 changes: 13 additions & 0 deletions runAndroidSample.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected] --save
cordova run android --stacktrace

0 comments on commit 4de6208

Please sign in to comment.