Migration guide
MirrorFly Chat SDK Version 2 has introduced major import changes to streamline the code structure and enhance its scalability.
This guide explains the breaking changes and provices a step by step guide for migrating to Version 2.
#
Remove old dependenciesStep 1: Remove the following libraries in app/libs folder in the project.
- appbase.aar
- flycommons.aar
- flynetwork.aar
- flydatabase.aar
- videocompression.aar
- xmpp.aar
- flywebrtc.aar
Step 2: Remove the following dependencies in the app/build.gradle file.
#
Configure maven dependenciesStep 1: If using Gradle 6.8 or higher, add the following code to your settings.gradle file. If using Gradle 6.7 or lower, add the following code to your root build.gradle file. See this release note to learn more about updates to Gradle.
- Gradle 6.8 or higher
- Gradle 6.7 or lower
Step 2: Add the following dependencies in the app/build.gradle file.
Step 3: Check in app/build.gradle file below dependencies is used.
If it is used then replace it with below dependencies.
#
Migrating to Version 2MirrorFly SDK Version 2 will likely prevent your app from compiling until all migration tasks are complete and all errors are fixed. We recommend you allow a generous timeline for the task. Depending on the level of dependency, it may take a few hours to a day.
#
Replace import namesIt's is mandatory to replace old imports to new imports from Version 2
#
Removed filesBelow files were removed from MirrorFly SDK from Version 2.
You can find these removed files in sample project here
#
Removed functionsBelow Kotlin extention functions were removed in MirrorFly SDK Version 2, Add below functions in your applications if you have already used.
Once the migration has been completed you can proceed with V2 documentation.