app::data_store using shared_preferencesWe use the shared preferences named "data_store" to store the data.
Serializable::inspect to show more useful information
serialization :: serialization_core
Abstract services to serialize Nit objects to different formatsdeserialize_json and JsonDeserializer
serialize_to_json and JsonSerializer
core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Implements `app::data_store` using `shared_preferences`
#
# We use the shared preferences named "data_store" to store the data.
module data_store
import app::data_store
import shared_preferences
redef class DataStore
redef fun [](key) do return shared_preferences[key]
redef fun []=(key, value) do shared_preferences[key] = value
end
lib/android/data_store.nit:17,1--33,3