Displaying the version which is specified in build.yml in view

M Marcus Atkins 3 years ago
1 2 0

HI all,

A minor annoyance I have is maintaining two version codes, one in the build.yml and one in my app/application.rb.

I would like to display the app version number in a view, is there a way to display the value that is set in the build.yml for the version.

Any help will be much appreciated !

Regards,
Marcus Atkins

Please register or login to post a reply

2 Replies

K Kutir Mobility

Hi Marcus,
To my knowledge, there is no way to display the value from build.yml
You can use Rhoconfig variable if set the version value in rhoconfig file.
Visnupriya R
Kutir Mobility

J Joerg Koch

To get the version from build.yml use:

http://docs.rhomobile.com/en/4.1.0/api/Application#pversion

Ruby: Rho::Application.version

CONTACT
Can’t find what you’re looking for?