Repository navigation
fix: scope named sound restore ledger to the app container - #214
Merged
huami1314 merged 1 commit intoDec 3, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The named-override ledger records paths created in an application's data container. An App Group can contain a different sound at the same relative path, but selection and restore currently consult the app-data ledger for both containers. With no group backup, restore can consequently delete an original App Group sound. Restoring a valid group backup also clears the unrelated app-data entry, removing its documented fallback when the sibling marker is later lost.
Change
Restrict ledger-based restore availability, the absent-original fallback, and ledger removal to entries whose
groupisnil. App Group sounds continue to restore from their own verified sibling backups. Add seven regression and control cases using real WAV files, separate app/group directories, and the production store and codec.Validation
AppSoundTestssuite fails on both the untouched base and this head withUnsafe operation succeeded. A separate native diagnostic located this attests/AppSoundTests.swift:88, where selecting a sound with an unrelated.bakis expected to throw;selectcurrently swallows that backup-validation error withtry?. That pre-existing behavior is outside this patch. The validation job retains the failure; this is not a claim that the complete suite is green.Native/DeviceConsole/build-xcframework.sh.