Set up project skeleton (milestone 1)
- Architecture and feature overview in docs/ARCHITECTURE.md - Gradle 9.8 / AGP 9.4 / Kotlin 2.4 with version catalog and convention plugins - Modules :app, :core:*, :device-profiles, :feature:* (placeholder screens) - Flavors core (no INTERNET, enforced by a build check) and full - Material You theme, navigation, expert mode and dry-run settings (DataStore) - Pixel 8-10 device detection, unit tests, GPLv3 license, English README with Obtainium badge Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
plugins {
|
||||
alias(libs.plugins.pixelwall.jvm.library)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":core:model"))
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
implementation(libs.javax.inject)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.pixelwall.core.domain
|
||||
|
||||
import org.pixelwall.core.model.DeviceInfo
|
||||
|
||||
fun interface DeviceInfoProvider {
|
||||
fun current(): DeviceInfo
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.pixelwall.core.domain
|
||||
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
data class UserPreferences(
|
||||
/** Zeigt rohe Settings-Keys und Shell-Befehle an. */
|
||||
val expertMode: Boolean = false,
|
||||
/** Änderungen werden nur angezeigt, nie ausgeführt. */
|
||||
val dryRun: Boolean = false,
|
||||
)
|
||||
|
||||
interface UserPreferencesRepository {
|
||||
val preferences: Flow<UserPreferences>
|
||||
suspend fun setExpertMode(enabled: Boolean)
|
||||
suspend fun setDryRun(enabled: Boolean)
|
||||
}
|
||||
Reference in New Issue
Block a user