Skip to content

Commit

Permalink
[#1524] Remove NativeDependencyWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Jan 8, 2023
1 parent ab32bed commit 83a7550
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 83a7550

Please sign in to comment.