Skip to content

Commit 52ecadd

Browse files
authored
Update intercom-android 17.1.1 and intercom-ios 19.2.0 (#559)
1 parent 89ad02b commit 52ecadd

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

intercom_flutter/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 9.4.7
4+
5+
* Bump Intercom iOS SDK version to [19.2.0](https://github.com/intercom/intercom-ios/releases/tag/19.2.0)
6+
* Bump Intercom Android SDK version to [17.1.1](https://github.com/intercom/intercom-android/releases/tag/17.1.1)
7+
38
## 9.4.6
49

510
* Bump Intercom iOS SDK version to [19.1.2](https://github.com/intercom/intercom-ios/releases/tag/19.1.2)

intercom_flutter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
Flutter wrapper for Intercom [Android](https://github.com/intercom/intercom-android), [iOS](https://github.com/intercom/intercom-ios), and [Web](https://developers.intercom.com/installing-intercom/docs/basic-javascript) projects.
77

8-
- Uses Intercom Android SDK Version `17.1.0`.
8+
- Uses Intercom Android SDK Version `17.1.1`.
99
- The minimum Android SDK `minSdk` required is 21.
1010
- The compile Android SDK `compileSdk` required is 35.
11-
- Uses Intercom iOS SDK Version `19.1.2`.
11+
- Uses Intercom iOS SDK Version `19.2.0`.
1212
- The minimum iOS target version required is 15.
1313
- The Xcode version required is 15.
1414

intercom_flutter/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ android {
5050

5151
dependencies {
5252
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
53-
implementation 'io.intercom.android:intercom-sdk:17.1.0'
53+
implementation 'io.intercom.android:intercom-sdk:17.1.1'
5454
implementation 'com.google.firebase:firebase-messaging:24.1.2'
5555
}

intercom_flutter/ios/Classes/IntercomFlutterPlugin.m

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,18 @@ - (void) handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
183183
NSData *encodedToken=[self createDataWithHexString:token];
184184
// NSData* encodedToken=[token dataUsingEncoding:NSUTF8StringEncoding];
185185
NSLog(@"%@", encodedToken);
186-
[Intercom setDeviceToken:encodedToken failure:^(NSError * _Nonnull error) {
186+
[Intercom setDeviceToken:encodedToken success:^{
187+
// Handle success
188+
result(@"Token set");
189+
} failure:^(NSError * _Nonnull error) {
187190
// Handle failure
188-
NSLog(@"Error setting device token: %@", error.localizedDescription);
191+
NSInteger errorCode = error.code;
192+
NSString *errorMsg = error.localizedDescription;
193+
194+
result([FlutterError errorWithCode:[@(errorCode) stringValue]
195+
message:errorMsg
196+
details: [self getIntercomError:errorCode:errorMsg]]);
189197
}];
190-
result(@"Token set");
191198
}
192199
} else if([@"displayArticle" isEqualToString:call.method]) {
193200
NSString *articleId = call.arguments[@"articleId"];

intercom_flutter/ios/intercom_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ A new flutter plugin project.
1717
s.dependency 'Flutter'
1818
s.dependency 'Intercom'
1919
s.static_framework = true
20-
s.dependency 'Intercom', '19.1.2'
20+
s.dependency 'Intercom', '19.2.0'
2121
s.ios.deployment_target = '15.0'
2222
end

intercom_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: intercom_flutter
22
description: Flutter plugin for Intercom integration. Provides in-app messaging
33
and help-center Intercom services
4-
version: 9.4.6
4+
version: 9.4.7
55
homepage: https://github.com/v3rm0n/intercom_flutter
66

77
dependencies:

0 commit comments

Comments
 (0)