All the standalone settings are contained in a custom property set of the stack. To see the set, you need to turn on "LiveCode UI Elements in Lists" in the "View" menu. Then you can see the custom property set in the stack inspector, it's named "cRevStandaloneSettings". The two that are relevant to versioning are "android,version name" and "android,version code".
The version name is what the user sees, the version code is what Android uses to determine whether to notify of an available update.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
FourthWorld wrote:I believe the cRevStandaloneSettings is stripped from the standalone build, so it's not available at runtime.
True, I guess I was thinking it was an in-development thing. I use it a lot to display the current build version in my stacks in a preOpenCard handler, and also to automate increasing the version numbers when starting a new revision. I also use it to populate a user-visible field before a build if necessary, since the version won't change once the standalone is built.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Jacque - Sorry, this aspect of Livecode is new to me.
- I activate VIEW > LIVECODE UI ELEMENTS LIST.
- This causes about 30 new stacks to appear in my project browser.
- One of those new stacks is "revStandaloneSettings". I don't see any "cRevStandalone Settings" stack.
- revStandaloneSettings has 8 custom properties defined in it, but these do NOT include "android,version name" or "android,version code".
What am I doing wrong?
The settings are stored in your own stack, not any of the rev stacks, so you can ignore the project browser. After turning on "UI elements in lists", open the property inspector for your own stack.
In its custom properties pane, change the "Set" popdown button to the cRevStandaloneSettings property set. You'll see lots of properties for every option for every OS. For at least the android settings, only the ones you've changed seem to get stored, the default settings aren't listed there. If you don't see "android,version code" for example, make a slight change to it in standalone settings and it should show up the next time you reload the stack's inspector.
Once you're done with those properties, you'll want to uncheck viewing UI elements in lists or you'll go nuts seeing all those other rev stacks.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com