ARK-Builders / ark-core

The core of the ARK framework
MIT License
4 stars 3 forks source link

`fs-storage`: A Crate for Handling Properties, Tags, and Scores #17

Open tareknaser opened 6 months ago

tareknaser commented 6 months ago

Description

Create a new crate to handle properties, tags, and scores, which are currently implemented separately in ark-cli and arklib-android. This crate will provide a unified API for managing these aspects of resources.

Current State

Currently, ark-cli and arklib-android each implement their own API to handle properties, tags, and scores. These functionalities are spread across different parts of the codebase. See:

We should create a separate crate within ark-rust workspace. This crate will centralize the logic for managing properties, tags, and scores so to provide a consistent API.

Next Steps

  1. Implement the functionality to store, load, and manipulate properties, tags, and scores.
  2. Integrate the new crate into ark-cli and arklib-android, replacing the existing implementations with calls to the new crate's API.
kirillt commented 6 months ago

Tags and Scores are the simplest storages (single file) and can be started as soon as #10 is completed.

Properties is more advanced and requires folder storage be implemented first.

Repo arklib-android is going to be replaced by ark-android. The transition is same as from arklib to ark-rust. It is in progress right now, we should separate existing modules better on Android side so Rust crates would map directly to Android libraries.