react-native-asset icon indicating copy to clipboard operation
react-native-asset copied to clipboard

Add an option of using symlinks for Android's raw directory

Open sergeymorkovkin opened this issue 1 year ago • 5 comments

Symlinks could eliminate file duplication in a project directory.

sergeymorkovkin avatar Apr 10 '23 15:04 sergeymorkovkin

Not sure I understood the issue, can you elaborate?

unimonkiez avatar Apr 12 '23 21:04 unimonkiez

@unimonkiez Resources get copied from their source directories to the respective Android's raw directory. Instead of copying these files (which are in our case are large enough), we could create sym-links at the destination path. I tried it on Android, and it worked.

sergeymorkovkin avatar Jun 02 '23 15:06 sergeymorkovkin

Also not a fan of the copied artefacts. Duplicate files tracked under version control can cause confusion, and create opportunity for those files to get out of sync.

trippingtarballs avatar Jun 09 '23 20:06 trippingtarballs

Sounds like a good feature! will happily merge any PR in the subject

unimonkiez avatar Jun 11 '23 07:06 unimonkiez

Yes, images get resized (so we have multiple-sized image files per one source image), but for sounds and fonts it's not justified at all... we're using symlinks already, and these work perfectly on MacOS.

sergeymorkovkin avatar Jun 15 '23 08:06 sergeymorkovkin