开发者

Externalize app version info

开发者 https://www.devze.com 2023-04-10 23:52 出处:网络
I want my app\'s preloader to display version/build info that I have in an XML file. Obviously, the preloader can\'t pick it up because it waits for XML file to load. Is there another approach that I

I want my app's preloader to display version/build info that I have in an XML file. Obviously, the preloader can't pick it up because it waits for XML file to load. Is there another approach that I can use to externalize my version/build info and ensure it's in my app early?

Any tips are helpful and very apprecia开发者_如何转开发ted.

Thanks!


I typically use compiler constants for this data, as it's available at build time, and can be easily baked into the app.

-define+=CONFIG::VERSION "1.0.1-a"

private static const version:String = CONFIG::VERSION;


<s:Label text="{version}" />
0

精彩评论

暂无评论...
验证码 换一张
取 消