Skip to content

Instantly share code, notes, and snippets.

@jobinlawrance
Created December 13, 2020 20:54
Show Gist options
  • Select an option

  • Save jobinlawrance/bb2d2d749dda507a5a0adc6246d0393f to your computer and use it in GitHub Desktop.

Select an option

Save jobinlawrance/bb2d2d749dda507a5a0adc6246d0393f to your computer and use it in GitHub Desktop.

Revisions

  1. jobinlawrance revised this gist Dec 13, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion TestHomeApplication.kt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@

    class TestHomeApplication: HomeApplication { // make HomeApplication open at this point

    override fun onCreate() {
    @@ -8,4 +9,4 @@ class TestHomeApplication: HomeApplication { // make HomeApplication open at thi

    val testModule = module {
    single(override = true) { ... }
    }
    }
  2. jobinlawrance created this gist Dec 13, 2020.
    11 changes: 11 additions & 0 deletions TestHomeApplication.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    class TestHomeApplication: HomeApplication { // make HomeApplication open at this point

    override fun onCreate() {
    super.onCreate()
    koinApplication.modules(testModule)
    }
    }

    val testModule = module {
    single(override = true) { ... }
    }