I have such situation that I need get some data first and after that create retrofit, I'm using Dagger 2 to inject it. Is it possible to initialize object when inject is made? I have such code in my application module.
@Module
public class ApplicationModule {
...
@Provides
public Retrofit provideRetrofitSecure(GsonConverterFactory gsonConverterFactory) {
.....
}
....
}