Persistence of local data between versions

I’m looking for assistance as to how to preserve progress between updates to an app. If I use saveLocalData it gets reset with every new release. Can anyone offer an alternative which will preserve progress/stats between releases, preferably in Codea?

@West, saveLocalData doesn’t get reset every release… At least not as far as I have seen.

Ok thanks. Through testflight I thought uploading a new build reset what was stored in local data. Will be uploading a new version on Anagramal tomorrow so should be able to double check. I crudely version control by duplicating the project in codea and renaming it. This will certainly reset the local data which is probably causing the issue. If I don’t duplicate but just keep one version then export this should retain the local data?

Yes, keeping one version should retain local data on updates.