Update the Kotlin API client
You should keep your Kotlin API client up to date to benefit from improvements and bug fixes. Algolia’s Service Level Agreement only applies to the latest version of the API client.
Update to v2
2.x of the library uses ktor client version
2.x. To migrate from
2.x, follow these steps:
Refer to Ktor’s migration guide.
The library uses its own
LogLevel instead of ktor’s
Update your imports:
RouteIndexesV1) aren’t exposed anymore. Use your own
You can find the internal constants in the package:
This new version removes all deprecated methods and features from v1.
Update with Android Studio or IntelliJ Idea
Go to your
build.gradle.kts file and synchronize it.
Check the line for
com.algolia:algoliasearch-client-kotlin: if you see the warning “a newer version com.algolia:algoliasearch-client-kotlin than X is available: Y”, you can replace X by Y and re-build your project.
Update without Android Studio or IntelliJ Idea
Go to the latest release on GitHub and note its release number, for example,
Go to your
build.gradle.kts file, find the line with
com.algolia:algoliasearch-client-kotlin, replace its version by
X.Y.Z and build your project to upgrade.