Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
da5c313b
Commit
da5c313b
authored
Sep 25, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
futher code need mvi scopes to be declared first
parent
f1a59874
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
AppModule.kt
...ain/java/com/biganto/visual/roompark/di/koin/AppModule.kt
+12
-1
authUseCase.kt
...om/biganto/visual/roompark/domain/use_case/authUseCase.kt
+4
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/di/koin/AppModule.kt
View file @
da5c313b
...
@@ -17,7 +17,10 @@ fun RoomParkApplication.initDI(){
...
@@ -17,7 +17,10 @@ fun RoomParkApplication.initDI(){
startKoin
{
startKoin
{
androidLogger
()
androidLogger
()
androidContext
(
this
@initDI
)
androidContext
(
this
@initDI
)
modules
(
listOf
(
appModule
,
scopesModule
))
modules
(
listOf
(
appModule
,
scopesModule
))
}
}
}
}
...
@@ -31,4 +34,12 @@ val scopesModule = module {
...
@@ -31,4 +34,12 @@ val scopesModule = module {
}
}
}
}
val
presenterScope
=
module
{
scope
(
named
<
RoomParkMainActivity
>()){
//<- Presenter?
scoped
{
StartUpData
(
"ja pesik!"
)
}
}
}
data class
StartUpData
(
val
helloText
:
String
)
data class
StartUpData
(
val
helloText
:
String
)
app/src/main/java/com/biganto/visual/roompark/domain/use_case/authUseCase.kt
View file @
da5c313b
...
@@ -4,3 +4,7 @@ package com.biganto.visual.roompark.domain.use_case
...
@@ -4,3 +4,7 @@ package com.biganto.visual.roompark.domain.use_case
* Created by Vladislav Bogdashkin on 24.09.2019.
* Created by Vladislav Bogdashkin on 24.09.2019.
*/
*/
class
AuthUseCase
{
// val auth: AuthContract by currentScope.inject()
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment