/*
 * Copyright 2016 Peter Kenji Yamanaka
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pyamsoft.powermanager.dagger.service;

import android.support.annotation.NonNull;
import com.pyamsoft.powermanager.app.service.ForegroundPresenter;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;

@Module public class ForegroundModule {

  @Singleton @Provides ForegroundPresenter provideForegroundPresenter(
      @NonNull ForegroundInteractor interactor) {
    return new ForegroundPresenter(interactor);
  }

  @Singleton @Provides ForegroundInteractor provideForegroundInteractor(
      @NonNull ForegroundInteractorImpl interactor) {
    return interactor;
  }
}

@@ -824,25 +824,73 @@
 .inject.
-Singleton
+Named;%0Aimport javax.inject.Singleton;%0Aimport rx.Scheduler
 ;%0A%0A@Modu
@@ -1034,32 +1034,114 @@
 actor interactor
+, @Named(%22main%22) Scheduler mainScheduler,%0A      @Named(%22io%22) Scheduler ioScheduler
 ) %7B%0A    return n
@@ -1173,16 +1173,44 @@
 teractor
+, mainScheduler, ioScheduler
 );%0A  %7D%0A%0A

Update module