-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rafael Chagas <[email protected]>
- Loading branch information
Showing
16 changed files
with
87 additions
and
192 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
18 changes: 0 additions & 18 deletions
18
library/src/main/java/com/rtchagas/pingplacepicker/inject/AndroidModule.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
library/src/main/java/com/rtchagas/pingplacepicker/inject/DaggerInjector.kt
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
library/src/main/java/com/rtchagas/pingplacepicker/inject/PingComponent.kt
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
library/src/main/java/com/rtchagas/pingplacepicker/inject/PingKoinComponent.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,17 @@ | ||
package com.rtchagas.pingplacepicker.inject | ||
|
||
import org.koin.core.Koin | ||
import org.koin.core.KoinApplication | ||
import org.koin.core.KoinComponent | ||
|
||
object PingKoinContext { | ||
|
||
var koinApp: KoinApplication? = null | ||
|
||
} | ||
|
||
interface PingKoinComponent : KoinComponent { | ||
|
||
override fun getKoin(): Koin = PingKoinContext.koinApp?.koin!! | ||
|
||
} |
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
14 changes: 14 additions & 0 deletions
14
library/src/main/java/com/rtchagas/pingplacepicker/inject/ViewModelModule.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,14 @@ | ||
package com.rtchagas.pingplacepicker.inject | ||
|
||
import com.rtchagas.pingplacepicker.viewmodel.PlaceConfirmDialogViewModel | ||
import com.rtchagas.pingplacepicker.viewmodel.PlacePickerViewModel | ||
import org.koin.android.viewmodel.dsl.viewModel | ||
import org.koin.dsl.module | ||
|
||
val viewModelModule = module { | ||
|
||
viewModel { PlacePickerViewModel(get()) } | ||
|
||
viewModel { PlaceConfirmDialogViewModel(get()) } | ||
|
||
} |
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
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
Oops, something went wrong.