Understanding Kotlin FDK Client Installation

What steps should I follow to install and integrate the Kotlin FDK Client?

To install and integrate Kotlin FDK Client, follow these steps:

  1. Add the dependency in your app build.gradle file. You can do this by adding the following line of code implementation 'com.github.gofynd:fdk-client-kotlin:v0.0.7'.

  2. Add the URL ‘https://jitpack.io’ in your root build.gradle at the end of repositories.

  3. Start integrating by using the ApplicationClient or the PlatformClient depending on your needs. You would need to provide specific configuration details in their constructors like Application ID and token for ApplicationClient and Company ID, API Key, API Secret and domain for PlatformClient.

  4. Finally, you can invoke methods like getProductDetailBySlug for ApplicationClient or getCompanyDetail for PlatformClient.

You can find detailed instructions and examples here.