-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1524] Remove NativeDependencyWrapper
- Loading branch information
1 parent
292ea98
commit c799ce8
Showing
3 changed files
with
2 additions
and
9 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
client/src/iosMain/kotlin/com/oztechan/ccc/client/di/NativeDependencyWrapper.kt
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
client/src/iosMain/kotlin/com/oztechan/ccc/client/di/module/submodule/IOSSettingsModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
provider/src/iosMain/kotlin/com/oztechan/ccc/provider/di/module/IOSModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | ||
} |