Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v1 embedding #467

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading