Skip to content

Commit

Permalink
hotfix : kotlin override method divide
Browse files Browse the repository at this point in the history
  • Loading branch information
kjh5833 committed Feb 9, 2021
1 parent 430f8e2 commit 96c67a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/src/main/java/com/iamport/sdk/domain/core/Iamport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,15 @@ object Iamport {
return koinApp
}

fun create(app: Application) {
createWithKoin(app)
}

/**
* Application instance 를 통해 SDK 생명주기 감지, DI 초기화
*/
// TODO Application 사용하지 않는 방안 모색
fun create(app: Application, koinApp: KoinApplication? = null) {
fun createWithKoin(app: Application, koinApp: KoinApplication? = null) {

IamportKoinContext.koinApp = koinApp
?: startKoin {
Expand Down

0 comments on commit 96c67a5

Please sign in to comment.