Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate cashes directories #562

Merged
merged 6 commits into from
Sep 19, 2024
Merged

Conversation

filip131311
Copy link
Collaborator

This PR changes the location of caches directory for all new devices, old devices remain in old cache location and can still be used and removed by the user by the user.

Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 10:42am

@filip131311 filip131311 changed the title Migrate cashes directories. Migrate cashes directories Sep 18, 2024
Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

const devices = fs.readdirSync(oldDeviceSetLocation);
if (devices.includes(deviceUDID)) {
return oldDeviceSetLocation;
}
return path.join(appCachesDir, "Devices", "iOS");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we return deviceSetLocation here as well?

const pidFile = path.join(deviceSetLocation, this.deviceUDID, "lock.pid");
return pidFile;
}

public dispose() {
public async dispose() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change here? we don't call await in this method

@filip131311 filip131311 merged commit 40cb534 into main Sep 19, 2024
3 checks passed
@filip131311 filip131311 deleted the @Filip131311/migrateCachesDirs branch September 19, 2024 10:43
filip131311 added a commit that referenced this pull request Sep 23, 2024
This PR fixes a bug introduced by #562 witch always searched for
localization settings in new caches directories for ios devices.

Co-authored-by: Filip <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants