Skip to content

Releases: Ashrafkhan19/KSafeSettings

v0.1.0-alpha: feat: zero-config KSafeSettingsProvider + platform factories

Choose a tag to compare

@Ashrafkhan19 Ashrafkhan19 released this 03 Jul 17:30
- KSafeSettingsProvider (expect/actual): wraps KSafe init per platform
  - Android actual: uses LocalContext.current, no Activity ref needed
  - Non-Android actual: calls KSafe() directly (Keychain/file/localStorage)
- LocalKSafeSettings: CompositionLocal for zero-parameter access anywhere
- Platform factories (no KSafe import required):
  - KSafeSettings(context) / KSafeSettings(context, scope) for Android
  - KSafeSettings() / KSafeSettings(scope) for iOS, JVM, WASM, JS
- KSafeSettingsImpl: internal CoroutineScope(IO + SupervisorJob()) default
- Shared App.kt: uses LocalKSafeSettings.current, no param threading
- All entry points reduced to KSafeSettingsProvider { App() }
- Updated README and CHANGELOG

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>