mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-03 13:29:47 -04:00
* Rename for consistency with obs photos * Refactor to be similar to obs photos * Include Sound as type * Revert "Include Sound as type" This reverts commit3db88ae031. * Revert "Refactor to be similar to obs photos" This reverts commit8ed7454be0. * Revert "Rename for consistency with obs photos" This reverts commit674b921bab. * Git mv without changes * Add types * Type api sound param * Type fields s const * Type fields as const * Type api param * Type new param * The only call site of this function passes in only defined strings * Adapted from Photo check for local path before deleting * Type fct params * Refactor constructor to only have a uri as param * Refactor Sound constructor to have string as param * Update Sound.ts * Remove unused param * Type fct params * Type realm * Also collect unsyncedSounds * Create operations for sound uploads based on Sound only * Add Evidence type * Change a sound upload operation to work with a RealmSound * Update realmSync to also just pass through Sounds * Use server ID for attaching obs_sound to obs * Also split photo pipeline for clarity This is not a functional change. Also previously, only RealmPhoto s are uploaded, only RealmObservationPhoto s are attached or modified. Same as for sounds now. * Update realmSync.ts * Remove log * Update realmSync.test.js * Update mocks * Update Sound map test * Update prepareMediaForUpload.test.js * Update prepareMediaForUpload.test.js * Update mediaUploader.test.js