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
d4de5bcd
Commit
d4de5bcd
authored
Sep 30, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7bca8c2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
AppModule.kt
...ain/java/com/biganto/visual/roompark/di/koin/AppModule.kt
+17
-0
authUseCase.kt
...om/biganto/visual/roompark/domain/use_case/authUseCase.kt
+6
-2
No files found.
app/src/main/java/com/biganto/visual/roompark/di/koin/AppModule.kt
View file @
d4de5bcd
...
@@ -2,7 +2,11 @@ package com.biganto.visual.roompark.di.koin
...
@@ -2,7 +2,11 @@ package com.biganto.visual.roompark.di.koin
import
com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.domain.contract.AuthContract
import
com.biganto.visual.roompark.domain.model.AuthInfoModel
import
com.biganto.visual.roompark.view_utils.snackbar.SnackBarProvider
import
com.biganto.visual.roompark.view_utils.snackbar.SnackBarProvider
import
io.reactivex.rxjava3.core.Completable
import
io.reactivex.rxjava3.core.Observable
import
org.koin.android.ext.koin.androidContext
import
org.koin.android.ext.koin.androidContext
import
org.koin.android.ext.koin.androidLogger
import
org.koin.android.ext.koin.androidLogger
import
org.koin.core.context.startKoin
import
org.koin.core.context.startKoin
...
@@ -29,6 +33,19 @@ val appModule = module{
...
@@ -29,6 +33,19 @@ val appModule = module{
}
}
val
dataModule
=
module
{
single
<
AuthContract
>{
object
:
AuthContract
{
override
fun
signIn
(
email
:
String
,
password
:
String
):
Observable
<
AuthInfoModel
>
{
TODO
(
"not implemented"
)
//To change body of created functions use File | Settings | File Templates.
}
override
fun
signOut
():
Completable
{
TODO
(
"not implemented"
)
//To change body of created functions use File | Settings | File Templates.
}
}}
}
val
scopesModule
=
module
{
val
scopesModule
=
module
{
scope
(
named
<
RoomParkMainActivity
>()){
scope
(
named
<
RoomParkMainActivity
>()){
scoped
{
SnackBarProvider
(
get
())
}
scoped
{
SnackBarProvider
(
get
())
}
...
...
app/src/main/java/com/biganto/visual/roompark/domain/use_case/authUseCase.kt
View file @
d4de5bcd
package
com.biganto.visual.roompark.domain.use_case
package
com.biganto.visual.roompark.domain.use_case
import
com.biganto.visual.roompark.domain.contract.AuthContract
/**
/**
* Created by Vladislav Bogdashkin on 24.09.2019.
* Created by Vladislav Bogdashkin on 24.09.2019.
*/
*/
class
AuthUseCase
{
class
AuthUseCase
(
// val auth: AuthContract by currentScope.inject()
val
auth
:
AuthContract
by
currentScope
.
get
<>
){
}
}
\ 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