This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.
Apache License 2.0
15.49k
stars
3.32k
forks
source link
how can a int value be injected without @Provides annotation #244
@Inject
public GetUserDetails(int userId, UserRepository userRepository,
ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) {
super(threadExecutor, postExecutionThread);
this.userId = userId;
this.userRepository = userRepository;
}
with the code abouve, i find no place where provide a int value which is annnotated with @provides,anyone helps?
@Inject public GetUserDetails(int userId, UserRepository userRepository, ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) { super(threadExecutor, postExecutionThread); this.userId = userId; this.userRepository = userRepository; } with the code abouve, i find no place where provide a int value which is annnotated with @provides,anyone helps?