Skip to content

Conversation

@Maite2003
Copy link
Contributor

Refactor backupSettings and BeReal to use context parameter.

Refactored bereal_preferences from an artifact into a helper function. This change addresses an initialization issue where the artifact execution order was not guaranteed, which could result in global variables being used before they were set. The new function now uses a flag to ensure its logic runs only once on the first call, guaranteeing that globals are initialized safely

Tested both with an ios15 image and everything works fine

Refactored all artifact processor functions to use a context object.
Removed the 'bereal_preferences' artifact and made it a helper function with a flag to make sure it only runs once
@JamesHabben JamesHabben added the Artifact Module Update related to an artifact module label Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Artifact Module Update related to an artifact module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants