Add methods to UI::Application to return app build number and version number#58
Add methods to UI::Application to return app build number and version number#58hboon wants to merge 1 commit intoHipByte:masterfrom
Conversation
|
I like |
|
What about |
|
@hboon I feel it weird to have this under the UI namespace, how is this related to UI? |
|
I think |
@hboon it may not be a problem, because CFBundleShortVersionString allow only numbers. |
|
@jjaffeux I thought of that yesterday too. It is a little out of place. I added it there originally because I'd only used UI Flow at the moment and it has a UI:Application class. Any suggestion for a better place? The other "modules" don't seem suitable either. |
(main)> UI::Application.instance.build_number
=> "27"
(main)> UI::Application.instance.version_number
=> "1.0.0"