Skip to content

Migration from 1.0.8 to 1.1.0 and above

Raghav Rawat edited this page Jun 10, 2022 · 1 revision

build.gradle inside root directory

add

apply plugin: 'kotlin-android'

update gradle version to 4.2.0 or above classpath 'com.android.tools.build:gradle:4.2.0'

update google-services version to 4.3.10 or above classpath 'com.google.gms:google-services:4.3.10'

build.gradle inside app directory

update compile and target SDK version to 33

compileSdkVersion 33
targetSdkVersion 33

Update firebase messaging dependency

From

implementation 'com.google.firebase:firebase-messaging:***'

To

implementation 'com.google.firebase:firebase-messaging-ktx:23.0.0'
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation 'com.google.firebase:firebase-analytics-ktx'

In your code:

In order to get FCM token, replace

FirebaseInstanceId.getInstance()

with

FirebaseMessaging.getInstance()

For VerloopConfig, Instead of constructor and getter/setter use VerloopConfig.Builder for creating the config object.

Before:

VerloopConfig config = new VerloopConfig("hello");
config.setUserId(“userId”);

Now:

Var verloopConfig =
   VerloopConfig.Builder()
       .clientId(“hello”)
       .userId(“UserId”)
       .build()

Start chat
verloop.showChat()

Go through readme for more configuration details

Clone this wiki locally