package it.cosenonjaviste.daggermock.realworldapp;

import android.app.Activity;

import dagger.Binds;
import dagger.Module;
import dagger.android.ActivityKey;
import dagger.android.AndroidInjector;
import dagger.multibindings.IntoMap;
import it.cosenonjaviste.daggermock.realworldapp.main.MainActivity;
import it.cosenonjaviste.daggermock.realworldapp.main.MainActivityComponent;

@Module(subcomponents = {
        MainActivityComponent.class
})
abstract public class MainActivityBindingModule {

    @Binds
    @IntoMap
    @ActivityKey(MainActivity.class)
    abstract AndroidInjector.Factory<? extends Activity> mainActivityInjectorFactory(
            MainActivityComponent.Builder builder);
}

@@ -49,38 +49,8 @@
 p;%0A%0A
-import android.app.Activity;%0A%0A
 impo
@@ -111,26 +111,30 @@
 ndroid.A
-ctivityKey
+ndroidInjector
 ;%0Aimport
@@ -141,39 +141,38 @@
  dagger.
-android.AndroidInjector
+multibindings.ClassKey
 ;%0Aimport
@@ -493,24 +493,21 @@
 ap%0A    @
-Activity
+Class
 Key(Main
@@ -564,25 +564,8 @@
 ry%3C?
- extends Activity
 %3E ma

Fix compilation error in RealWorldAppInjector