ok,
we do the following in maven for other needs so this will be valid for you
too:
in your maven properties.
<royale.framework.version>0.9.6-OR-WHATEVER</royale.framework.version>
<plugin>
<groupId>org.apache.royale.compiler</groupId>
<artifactId>royale-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
...
<defines>
<property>
<name>BUILD::royaleVersion</name>
<value>'"${royale.framework.version}"'</value>
</property>
...
</defines>
...
defines can be done in ANT, asconfigc, config.xml....
Then in AS3 or MXML
/**
* ROYALE VERSION NUMBER
*/
private static var _royaleVersion :String = BUILD::royaleVersion;
So now you can use in any place you want
HTH
Carlos
El lun., 29 abr. 2019 a las 18:42, Kessler CTR Mark J
(<[email protected]>) escribió:
> Let me clarify.
>
> @Carlos,
> It's not a dependency issue, it's a matter of finding out what the
> SDK version or build number of the SDK or any form of uniquely identifying
> information about the SDK in code. So the apps we build using Flex we can
> just get the Flex version by referencing mx.core.FlexVersion in code. Then
> in our application logs when an app starts up we can see the message
> "Compiled with SDK v4.16.0.". So it allows us to more easily troubleshoot
> issues later.
>
> @Alex,
> Yes that would be great to have any important versions in there. How
> about we just keep it like a compile time constant / compiler "define"
> statement that has the version built it?
>
>
>
> -Mark K
>
--
Carlos Rovira
http://about.me/carlosrovira