Skip to content

Commit

Permalink
Remove v1 embedding (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak786 authored Oct 4, 2024
1 parent 6e332b7 commit 85013a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 4 additions & 0 deletions intercom_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion intercom_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 85013a6

Please sign in to comment.