APIClient Setup Time! ️✨ First things first - grab the dependencies for Retrofit RxJava2 (com.squareup.retrofit2:adapter-rxjava2), rxAndroid & rxKotlin from Gradle, then let's dive in… API Client class looks like this; ```kotlin enum LogLevel { LOG_NOT_NEEDED, LOG_REQ RES,LOG_REQUEST AND RESPONSE BODY HEADERS… } // You can customize the logging level as per your needs. ✨ class APIClient (private val loglevel:LogLevel = LogNotNeeded) { private var retrofit : Retrofit?= null}// Create an instance of our enum to control logs in later methods if needed! ``` What do you think, fellow Android devs?! Let me know your thoughts on this or any other cool tips and tricks for using RxJava with android. Happy coding!!✨
Source:
https://dev.to/dss99911/rxjava-android-integration-retrofit-rxbinding-and-testing-324c