Skip to content

Commit

Permalink
[#1524] Remove NativeDependencyWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Dec 23, 2022
1 parent a023687 commit 0e6bb80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.oztechan.ccc.client.di.module.submodule

import com.oztechan.ccc.client.di.NativeDependencyWrapper
import com.russhwolf.settings.AppleSettings
import com.russhwolf.settings.Settings
import org.koin.dsl.module

internal actual val settingsModule = module {
single<Settings> {
AppleSettings(get<NativeDependencyWrapper>().userDefaults)
AppleSettings(get())
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.oztechan.ccc.provider.di.module

import com.oztechan.ccc.client.di.NativeDependencyWrapper
import org.koin.dsl.module
import platform.Foundation.NSUserDefaults

internal fun getIOSModule(userDefaults: NSUserDefaults) = module {
single { NativeDependencyWrapper(userDefaults) }
single { userDefaults }
}

0 comments on commit 0e6bb80

Please sign in to comment.