aeirola / react-native-svg-app-icon

Generate all app icons for you React Native apps from a single SVG file

Home Page:https://www.npmjs.com/package/react-native-svg-app-icon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improved caching

aeirola opened this issue · comments

Currently the caching logic relies on file timestamps, which doesn't work well if the input file is changed to one with an older timestamp. This can happen with source control or configuration changes. See #63

Would make sense to use a hash based cache control mechanism. This could include a mapping from input file hashes to output file hashes. The cache data could be stored somewhere similarly where react native stores its data, which seems to be under $TMPDIR/react-native.