Skip to content

Commit

Permalink
Merge pull request #190 from jampez77/bug/koin-isolation
Browse files Browse the repository at this point in the history
Bug/koin isolation
  • Loading branch information
jampez77 committed Jan 31, 2022
2 parents 41e2d71 + 0989a8d commit d7cdbbc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -68,7 +68,7 @@ In your Project's build.gradle file:
In your Application's or Module's build.gradle file:

dependencies {
api 'com.github.jampez77:UCE-Handler:2.0.10'
api 'com.github.jampez77:UCE-Handler:2.0.11'
}

In your Application class:
Expand Down
Expand Up @@ -3,7 +3,13 @@ package com.jampez.uceh.features.uce
import android.os.Build
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.jampez.uceh.data.modules.viewModelModule
import com.jampez.uceh.databinding.DefaultErrorActivityBinding
import com.jampez.uceh.features.supportissue.supportIssueModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.koin.core.logger.Level

class UCEDefaultActivity : AppCompatActivity(){

Expand All @@ -12,6 +18,17 @@ class UCEDefaultActivity : AppCompatActivity(){
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState?: Bundle())

startKoin {
androidLogger(Level.NONE)
androidContext(this@UCEDefaultActivity)
modules(
listOf(
viewModelModule,
supportIssueModule
)
)
}

if (Build.VERSION.SDK_INT > 21)
setTheme(android.R.style.Theme_Material)
else
Expand Down

0 comments on commit d7cdbbc

Please sign in to comment.