-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to the latest Intercom iOS SDK (#329)
Updated to use the latest Intercom iOS SDK. This required a lot of updates to the JS API. Deprecated a lot of methods, but these will continue to work. They will however be removed in a future release, therefore it is recommended to adopt the new API.
- Loading branch information
1 parent
a005f45
commit 0455839
Showing
15 changed files
with
751 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
Example/node_modules | ||
intercom-cordova.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.6 | ||
3.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
<platform name="ios"> | ||
<allow-intent href="itms:*" /> | ||
<allow-intent href="itms-apps:*" /> | ||
<preference name="deployment-target" value="13.0" /> | ||
<preference name="deployment-target" value="15.0" /> | ||
<preference name="BackupWebStorage" value="local" /> | ||
<icon height="29" src="www/img/icon-29.png" width="29" /> | ||
<icon height="58" src="www/img/[email protected]" width="58" /> | ||
|
@@ -47,7 +47,7 @@ | |
<icon height="80" src="www/img/[email protected]" width="80" /> | ||
<icon height="167" src="www/img/[email protected]" width="167" /> | ||
</platform> | ||
<preference name="intercom-app-id" value="YOUR_APP_ID" /> | ||
<preference name="intercom-app-id" value="YOUR_WORKSPACE_ID" /> | ||
<preference name="intercom-ios-api-key" value="YOUR_IOS_API_KEY" /> | ||
<preference name="intercom-android-api-key" value="YOUR_ANDROID_API_KEY" /> | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
orbs: | ||
android: circleci/[email protected] | ||
|
||
setup_ruby: &setup_ruby | ||
run: | ||
name: Setup Ruby | ||
command: sed -i '' 's/.*chruby ruby.*/chruby ruby-3.3.0/' ~/.bash_profile | ||
|
||
jobs: | ||
ios: | ||
macos: | ||
xcode: "13.4.1" | ||
resource_class: macos.x86.medium.gen2 | ||
xcode: "15.4.0" | ||
resource_class: macos.m1.large.gen1 | ||
shell: /bin/bash --login -eo pipefail | ||
steps: | ||
- <<: *setup_ruby | ||
- checkout | ||
- run: | ||
name: Install node/npm | ||
|
@@ -22,35 +31,28 @@ jobs: | |
command: cd Example && cordova plugin add ../intercom-plugin | ||
- run: | ||
name: Build | ||
command: cd Example && cordova build ios --buildFlag="-UseModernBuildSystem=0" | ||
command: cd Example && cordova build ios | ||
|
||
android: | ||
docker: | ||
- image: circleci/android:api-30 | ||
executor: | ||
name: android/android-machine | ||
resource-class: large | ||
tag: default | ||
environment: | ||
- JVM_OPTS: -Xmx3200m | ||
GRADLE_OPTS: -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.daemon=false -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=512m" -Dorg.gradle.workers.max=2 | ||
working_directory: ~/project/Example | ||
steps: | ||
- checkout | ||
- run: | ||
name: Accept all Android licenses | ||
command: | | ||
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi; | ||
- run: | ||
name: Install node/npm | ||
command: | | ||
curl -O https://packages.cloud.google.com/apt/doc/apt-key.gpg && sudo apt-key add apt-key.gpg | ||
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - | ||
sudo apt install -y nodejs | ||
- run: | ||
name: Install gradle | ||
command: sudo apt-get install gradle | ||
- run: | ||
name: Install Cordova | ||
command: sudo npm install -g cordova@9.0.0 | ||
command: npm install -g cordova@12.0.0 | ||
- run: | ||
name: Add Android platform | ||
command: cd Example && cordova platform add android@10.0.0 | ||
command: cd Example && cordova platform add android@latest | ||
- run: | ||
name: Install intercom plugin | ||
command: cd Example && cordova plugin add ../intercom-plugin | ||
|
@@ -59,16 +61,12 @@ jobs: | |
command: cd Example && cordova build android --verbose -- --gradleArg=--stacktrace | ||
|
||
publish: | ||
docker: | ||
- image: circleci/android:api-28 | ||
executor: | ||
name: android/android-machine | ||
resource-class: large | ||
tag: default | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install node/npm | ||
command: | | ||
curl -O https://packages.cloud.google.com/apt/doc/apt-key.gpg && sudo apt-key add apt-key.gpg | ||
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - | ||
sudo apt install -y nodejs | ||
- run: | ||
name: Publish to npm | ||
command: | | ||
|
@@ -77,7 +75,7 @@ jobs: | |
cd intercom-plugin && npm publish | ||
workflows: | ||
version: 2 | ||
version: 2.1 | ||
ios_and_android: | ||
jobs: | ||
- ios: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.