pivotal/robolectric — pull request #454 by kurganec (2013-04-06 10:25:03+00:00)
Title: Parse android:versionCode and android:versionName 

Some applications may rely on PackageInfo.versionCode or PackageInfo.versionName.
Robolectric didn't try to parse it from manifest and just left versionCode as 0 and versionName as "1.0".

The patch fixes this issue.