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 16, 2023
1 parent ab06f86 commit 6cd9022
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 6cd9022

Please sign in to comment.