Posts

Create Retrofit instance

import android.util.Log import com.app.medlegal.data.local.PreferenceManager import com.app.medlegal.ui.App import okhttp3.Interceptor import okhttp3.OkHttpClient import okhttp3.Response import okhttp3.logging.HttpLoggingInterceptor import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import java.util.concurrent.TimeUnit object RetrofitInstance {     //------------------Local------- //    private const val BASE_URL = "http://192.168.29.212/advanceliens/" // For Test         private val retrofit: Retrofit by lazy {         val loggingInterceptor = HttpLoggingInterceptor().apply {             level = HttpLoggingInterceptor.Level.BODY         }         val client = OkHttpClient.Builder()             .connectTimeout(15, TimeUnit.SECONDS)             .readTimeout(15, TimeUnit.SEC...
Global Jobs Global Jobs First Name Last Name Email Qualifications Skills Total Experience Preferred Location Select work location Remote Office Hybrid Cover Letter Upload Resume Submit Your details has been successfully submitted!