Migration
to 12.0.0
-
Add our Maven repository to the root build.gradle:
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url 'https://maven.channel.io/maven2' } // Channel Maven repository } }
-
ChannelIO.openSupportBot()
is removed.- Replace all usages of
openSupportBot()
toopenWorkflow()
.
- Replace all usages of
to 11.0.0
- onBadgeChanged(count:) is deprecated. Use onBadgeChanged(unread, alert) instead. Badge is separated into
unread
andalert
field.
to 10.0.0
Deprecated functions are removed. See to v8 migration guide
BootConfig
- setUnsubscribed is removed. use setUnsubscribeEmail (email), setUnsubscribeTexting (sms, lms)
Callback
- onProfileChanged is removed.
Models
- UserData's setUnsubscribed is removed. use setUnsubscribeEmail (email), setUnsubscribeTexting (sms, lms)
Proguard rules
- Should add proguard rules. See Installation.
to 8.4.0
Implementation
- Change repository from jcenter to mavenCentral See more about jcenter closing
- Change group name "com.zoyi.channel" to "io.channel" (implementation 'io.channel:plugin-android:8.4.0')
to v8
ChannelIO functions
- boot use BootConfig except ChannelPluginSettings + Profile
- boot use BootCallback except OnBootListener
- show, hide is deprecated. Use showChannelButton, hideChannelButton
- open, close is deprecated. Use showMessenger, hideMessenger
- openChat with animate is deprecated.
- canShowLauncher is deprecated.
- setChannelPluginListener is deprecated. Use setListener
- handlePushNotification is deprecated. Use openStoredPushNotification
- showPushNotification is deprecated. Use receivePushNotification
- updateProfile is depreacted. Use updateUser
BootConfig
- locale is deprecated. Use language
- enabledTrackDefaultEvent is deprecated. Use trackDefaultEvent
- hideDefaultInAppPush is deprecated. Use hidePopup
- LauncherConfig is deprecated. Use ChannelButtonOption
Callback
- OnBootListener is deprecated. Use BootCallback
Models
- PushEvent is deprecated. Use PopupData
- User's package name is changed. Use com.zoyi.channel.plugin.android.open.model
Migration v7 from post v7
- ChannelPluginSettings.setUserId changes to ChannelPluginSettings.setMemberId
- onClickRedirectUrl removed in ChannelPluginListener
- CHLocale.DEVICE is removed. If you want to set device langauge, set to null
Updated 5 months ago