Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated docs

  • Loading branch information...
commit 21dab6d3f692de74b577b7e5747d61faf9cfaf21 1 parent e83e3b6
@meeech authored
Showing with 8 additions and 4 deletions.
  1. +6 −1 README
  2. +2 −3 documentation/index.md
View
7 README
@@ -1,7 +1,9 @@
Plist Module
============
-Simple module to access values from app plist at runtime.
+Simple module to access values from app info.plist at runtime.
+
+I wrote this since there was no way to get the value of CFBundleVersion from your app Info.plist in Titanium.
Example Usage:
@@ -9,3 +11,6 @@ var plistmodule = require('com.meeech.plist'),
appVersion = plistmodule.getValue("CFBundleVersion");
Ti.API.info("CFBundleVersion => " + appVersion);
+
+FYI re. Version info: When running in the simulator, you will basically get back the short version. (ie: 2.0) When you build your .ipa and run on device, then you will get the proper bundle version value (ie: 2.0.1333059581).
+
View
5 documentation/index.md
@@ -2,7 +2,7 @@
## Description
-A module to allow reading of info.plist values at runtime.
+A module to allow reading of info.plist values at runtime. I built it to get access to the full version number for my app, so I could display it in-app.
## Accessing the plist-module Module
@@ -13,9 +13,8 @@ var plistmodule = require("com.meeech.plist");
`
## Reference
-
`
-plistmodule.getValue('keyname');
+plistmodule.getValue('CFBundleVersion');
`
## Author

0 comments on commit 21dab6d

Please sign in to comment.
Something went wrong with that request. Please try again.