src: move pseudo-toplevel methods from Object
[nit.git] / lib / app / data_store.nit
index afb6a1d..5c59036 100644 (file)
@@ -22,6 +22,11 @@ module data_store
 import app_base
 import serialization
 
+# Platform variations
+# TODO: move on the platform once qualified names are understand in the condition
+import linux::data_store is conditional(linux)
+import android::data_store is conditional(android)
+
 redef class App
        # Services to store and load data
        fun data_store: DataStore is abstract
@@ -34,5 +39,5 @@ interface DataStore
        fun [](key: String): nullable Object is abstract
 
        # Store `value` at `key`
-       fun []=(key: String, value: Serializable) is abstract
+       fun []=(key: String, value: nullable Serializable) is abstract
 end