and Android. • An adaptation of Square’s version and now maintained by Google. • Dagger 2 aims to address many of the development and performance issues that have plagued reflection-based solutions.
@Module public class ReleaseApiModule { @Provides @Singleton List<Interceptor> provideNetworkInterceptors() { return Arrays.asList(new AnalyticsInterceptor()); } } @Component(modules = {ApiModule.class, ReleaseApiModule.class,...}) public interface AppComponent { //... } and each app in each flavor use its component and is set in the manifest.
an observer and as an Observable. • A subject is an observer so it can subscribe to one or more observables, and an observable so it can pass through the items it observes by reemitting them, and it can also emit new items. • Multiple Types: PublishSubject, BehaviorSubject, ReplaySubject.