forked from JakeWharton/Telecine
-
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.
Use Dagger's AndroidInjectionModule.
- Loading branch information
1 parent
72c1b15
commit bd06fe4
Showing
10 changed files
with
86 additions
and
57 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
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
17 changes: 10 additions & 7 deletions
17
telecine/src/main/java/com/jakewharton/telecine/TelecineComponent.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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package com.jakewharton.telecine; | ||
|
||
import android.app.Application; | ||
import dagger.BindsInstance; | ||
import dagger.Component; | ||
import dagger.android.AndroidInjectionModule; | ||
import javax.inject.Singleton; | ||
|
||
@Singleton | ||
@Component(modules = TelecineModule.class) | ||
@Singleton @Component(modules = { AndroidInjectionModule.class, TelecineModule.class }) | ||
interface TelecineComponent { | ||
void inject(TelecineActivity activity); | ||
void inject(TelecineShortcutConfigureActivity activity); | ||
void inject(TelecineShortcutLaunchActivity activity); | ||
void inject(TelecineApplication app); | ||
|
||
void inject(TelecineService service); | ||
void inject(TelecineTileService service); | ||
@Component.Builder interface Builder { | ||
@BindsInstance Builder application(Application application); | ||
|
||
TelecineComponent build(); | ||
} | ||
} |
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
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
8 changes: 5 additions & 3 deletions
8
telecine/src/main/java/com/jakewharton/telecine/TelecineTileService.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