Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define routing interfaces for company flow, setup navigation through …
…interfaces between main module and company flow
- Loading branch information
1 parent
2c9db88
commit 1fcecd0
Showing
6 changed files
with
68 additions
and
16 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
18 changes: 18 additions & 0 deletions
18
features/company/src/main/java/com/aaglobal/jnc_playground/company/di/CompanyDI.kt
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,18 @@ | ||
package com.aaglobal.jnc_playground.company.di | ||
|
||
import com.aaglobal.jnc_playground.company.routing.CompanyFragmentDetailsRouterSource | ||
import com.aaglobal.jnc_playground.company.routing.CompanyFragmentRouterSource | ||
|
||
|
||
/** | ||
* I need to init this object before I start navigating into Companies flow. | ||
* | ||
* In real app you may be use some DI-framework (e.g. Toothpick) and bind implementations of this interfaces to | ||
* appropriate structures of this DI-framework. | ||
*/ | ||
object CompanyDI { | ||
|
||
var companyFragmentRouterSource: CompanyFragmentRouterSource? = null | ||
var companyFragmentDetailsRouterSource: CompanyFragmentDetailsRouterSource? = null | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...in/java/com/aaglobal/jnc_playground/company/routing/CompanyFragmentDetailsRouterSource.kt
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,8 @@ | ||
package com.aaglobal.jnc_playground.company.routing | ||
|
||
|
||
interface CompanyFragmentDetailsRouterSource { | ||
|
||
fun finishCompanyFlow(flowResult: Boolean) | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
.../src/main/java/com/aaglobal/jnc_playground/company/routing/CompanyFragmentRouterSource.kt
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,8 @@ | ||
package com.aaglobal.jnc_playground.company.routing | ||
|
||
|
||
interface CompanyFragmentRouterSource { | ||
|
||
fun moveToCompanyDetails() | ||
|
||
} |