From 85013a66f2f06413a6d0dfd26d9137143ba1a568 Mon Sep 17 00:00:00 2001 From: Deepak Goyal Date: Fri, 4 Oct 2024 16:24:26 +0530 Subject: [PATCH] Remove v1 embedding (#467) --- intercom_flutter/CHANGELOG.md | 4 ++++ .../kotlin/io/maido/intercom/IntercomFlutterPlugin.kt | 10 ---------- intercom_flutter/pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/intercom_flutter/CHANGELOG.md b/intercom_flutter/CHANGELOG.md index 29b9dfd..287719a 100755 --- a/intercom_flutter/CHANGELOG.md +++ b/intercom_flutter/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 9.0.11 + +* Removed references to v1 embedding. + ## 9.0.10 * Bump `intercom_flutter_web` to `1.1.2` supporting `web` `^1.0.0`. diff --git a/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt b/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt index 3a4301d..fa1f167 100644 --- a/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt +++ b/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt @@ -9,7 +9,6 @@ import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel.MethodCallHandler import io.flutter.plugin.common.MethodChannel.Result -import io.flutter.plugin.common.PluginRegistry.Registrar import io.intercom.android.sdk.* import io.intercom.android.sdk.identity.Registration import io.intercom.android.sdk.push.IntercomPushClient @@ -19,15 +18,6 @@ class IntercomFlutterPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Str @JvmStatic lateinit var application: Application - @JvmStatic - fun registerWith(registrar: Registrar) { - val channel = MethodChannel(registrar.messenger(), "maido.io/intercom") - application = registrar.context() as Application - channel.setMethodCallHandler(IntercomFlutterPlugin()) - val unreadEventChannel = EventChannel(registrar.messenger(), "maido.io/intercom/unread") - unreadEventChannel.setStreamHandler(IntercomFlutterPlugin()) - } - @JvmStatic fun initSdk(application: Application, appId: String, androidApiKey: String) { Intercom.initialize(application, apiKey = androidApiKey, appId = appId) diff --git a/intercom_flutter/pubspec.yaml b/intercom_flutter/pubspec.yaml index 4429c78..aee5f09 100644 --- a/intercom_flutter/pubspec.yaml +++ b/intercom_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: intercom_flutter description: Flutter plugin for Intercom integration. Provides in-app messaging and help-center Intercom services -version: 9.0.10 +version: 9.0.11 homepage: https://github.com/v3rm0n/intercom_flutter dependencies: