I have a version 1 of an app installed on the device. An app can be updated automatically to version 2.
I would like to save a constant string (defined at build time) in version 1 and read it in version 2. It might happen that app updates itself to version 2 before user runs version 1, so I cannot save my string programmatically.
Is there any way to declaratively define preference (or maybe have an asset file containing a value) which does not require a code to run and persist during update?