/samcodes-mobileprefs

Helper haxelib for reading and salvaging old OpenFL mobile preferences/savedata

Primary LanguageHaxeOtherNOASSERTION

MobilePrefs

License

Support for upgrading from legacy lime/OpenFL savedata/preferences implementations to a newer one, for Haxe Android and iOS targets.

Made for salvaging user's old savedata when updating an app using a legacy OpenFL version (~3.6) to a new version (~8.0). See this forum thread for details.

Install

haxelib install samcodes-mobileprefs

Usage

Include the haxelib through Project.xml:

<haxelib name="samcodes-mobileprefs" />

See this savedata salvaging test for a usage example.

Notes

  • Based on lime-mobileprefs by Justin Espedal.
  • Use #if (android || ios) conditionals around your imports and calls to this library for cross platform projects - there is no stub/fallback implementation included in the haxelib.
  • Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on Twitter.