Skip to content

Commit

Permalink
fix plist names to get version strings from
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Dec 8, 2012
1 parent faff1b9 commit 6776b2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public static void populateSystemProperties() {
*/
@SuppressWarnings("javadoc")
public static String versionStringForApplication() {
return valueFromPlistBundleWithKey(NSBundle.mainBundle(), "CustomInfo.plist", "CFBundleShortVersionString");
return valueFromPlistBundleWithKey(NSBundle.mainBundle(), "../Info.plist", "CFBundleShortVersionString");
}

/**
Expand Down Expand Up @@ -254,7 +254,7 @@ public static String versionStringForApplication() {
*/
@SuppressWarnings("javadoc")
public static String versionStringForFrameworkNamed(String frameworkName) {
return valueFromPlistBundleWithKey(NSBundle.bundleForName(frameworkName), "CustomInfo.plist", "CFBundleShortVersionString");
return valueFromPlistBundleWithKey(NSBundle.bundleForName(frameworkName), "Info.plist", "CFBundleShortVersionString");
}

/**
Expand Down

0 comments on commit 6776b2b

Please sign in to comment.