-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53e038a
commit 55296db
Showing
21 changed files
with
170 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/app/ActivityBuilderModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.aac.andcun.themoviedb_mvvm.di.app; | ||
|
||
import com.aac.andcun.themoviedb_mvvm.ui.detail.MovieDetailActivity; | ||
import com.aac.andcun.themoviedb_mvvm.ui.main.MainActivity; | ||
|
||
import dagger.Module; | ||
import dagger.android.ContributesAndroidInjector; | ||
|
||
/** | ||
* Created by andani on 19.09.2017. | ||
*/ | ||
|
||
@Module | ||
public abstract class ActivityBuilderModule { | ||
|
||
@ContributesAndroidInjector(modules = FragmentBuilderModule.class) | ||
abstract MainActivity mainActivity(); | ||
|
||
@ContributesAndroidInjector | ||
abstract MovieDetailActivity movieDetailActivity(); | ||
|
||
} |
20 changes: 16 additions & 4 deletions
20
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/app/AppComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/app/FragmentBuilderModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.aac.andcun.themoviedb_mvvm.di.app; | ||
|
||
import com.aac.andcun.themoviedb_mvvm.ui.movie.MovieFragment; | ||
import com.aac.andcun.themoviedb_mvvm.ui.movie.MoviePageFragment; | ||
import com.aac.andcun.themoviedb_mvvm.ui.tv.TvFragment; | ||
import com.aac.andcun.themoviedb_mvvm.ui.tv.TvPageFragment; | ||
|
||
import dagger.Module; | ||
import dagger.android.ContributesAndroidInjector; | ||
|
||
/** | ||
* Created by andani on 19.09.2017. | ||
*/ | ||
|
||
@Module | ||
public abstract class FragmentBuilderModule { | ||
|
||
@ContributesAndroidInjector | ||
abstract MovieFragment movieFragment(); | ||
|
||
@ContributesAndroidInjector | ||
abstract MoviePageFragment moviePageFragment(); | ||
|
||
@ContributesAndroidInjector | ||
abstract TvFragment tvFragment(); | ||
|
||
@ContributesAndroidInjector | ||
abstract TvPageFragment tvPageFragment(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/detail/DetailComponent.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/detail/DetailModule.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/movie/MovieComponent.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
app/src/main/java/com/aac/andcun/themoviedb_mvvm/di/movie/MovieModule.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.