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
Showing
6 changed files
with
66 additions
and
6 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
35 changes: 35 additions & 0 deletions
35
...java/com/zhuinden/examplegithubclient/application/injection/modules/NavigationModule.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,35 @@ | ||
package com.zhuinden.examplegithubclient.application.injection.modules; | ||
|
||
import dagger.Module; | ||
import dagger.Provides; | ||
import flowless.Flow; | ||
import flowless.KeyManager; | ||
import flowless.ServiceProvider; | ||
|
||
/** | ||
* Created by Owner on 2017. 01. 18.. | ||
*/ | ||
|
||
@Module | ||
public class NavigationModule { | ||
private Flow flow; | ||
|
||
public NavigationModule(Flow flow) { | ||
this.flow = flow; | ||
} | ||
|
||
@Provides | ||
Flow flow() { | ||
return flow; | ||
} | ||
|
||
@Provides | ||
ServiceProvider serviceProvider() { | ||
return flow.getServices(); | ||
} | ||
|
||
@Provides | ||
KeyManager keyManager() { | ||
return flow.getStates(); | ||
} | ||
} |
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