mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
The React Native 1.x app shipped as com.subtracks and left an AsyncStorage database (RKStorage), an older `servers` dump and a downloaded/cached artwork+audio tree in app-specific storage. v3 reads none of those paths, so an update would otherwise leave the data behind, reachable only by wiping the whole app. Remove them once at startup, gated on one of those 1.x paths existing, so a fresh install does nothing and an upgrade is cleaned exactly once. The cached trees can be large, so the delete runs off the main thread. Kept in a single file so it can be deleted once no installs can come from 1.x.