@Module @InstallIn(SingletonComponent::class) class ApplicationModule { @Provides fun provideBaseUrl() = "https://api-mobilespecs.azharimm.tk/" @Provides @Singleton fun provideRetrofit(BASE_URL: String): Retrofit = Retrofit.Builder() .addConverterFactory(MoshiConverterFactory.create()) .baseUrl(BASE_URL) .build() @Provides @Singleton fun provideApiService(retrofit: Retrofit): ApiService = retrofit.create(ApiService::class.java) }