shared: Add missing settings implementation

This seems to have gotten missed during moving settings to different modules

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta 2026-05-22 23:27:06 +08:00
parent a6bda1768e
commit 2571010199
4 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/*
* SPDX-FileCopyrightText: 2026 NewPipe e.V. <https://newpipe-ev.de>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package net.newpipe.app.di.settings
import com.russhwolf.settings.PreferencesSettings
import com.russhwolf.settings.Settings
import java.util.prefs.Preferences
import org.koin.core.annotation.Singleton
/**
* Settings for JVM devices based on Java Preferences
*/
@Singleton
fun provideSettings(): Settings = PreferencesSettings(Preferences.userRoot())