qwen3.6:35b's first attempt, does not compile (yet).

This commit is contained in:
me committed 2026-11-02 15:28:46 -07:00
1 parent eeda4a18c5
commit 337403721b
17 files changed
+1486 -40

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
package com.hyperling.weather
/**
* Platform-agnostic location storage abstraction.
*/
object LocationStorage {
/**
* Load all saved locations.
*/
fun load(): List<LocationEntry> = getStorage().load()
/**
* Save all locations (replaces existing).
*/
fun save(locations: List<LocationEntry>) = getStorage().save(locations)
/**
* Save a single location, merging with existing list.
*/
fun saveOne(location: LocationEntry) = getStorage().saveOne(location)
/**
* Delete a location by id.
*/
fun delete(id: Long) = getStorage().delete(id)
expect fun getStorage(): StorageBackend
}
interface StorageBackend {
fun load(): List<LocationEntry>
fun save(locations: List<LocationEntry>)
fun saveOne(location: LocationEntry)
fun delete(id: Long)
}
expect fun getPlatformStorage(): StorageBackend