Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Swap version values on iOS
Browse files Browse the repository at this point in the history
This fixes #639

We were using the wrong version key/values from Info.plist for the respective AppInfo properties.
  • Loading branch information
Redth committed Dec 7, 2018
1 parent 77ad639 commit c61ef22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Xamarin.Essentials/AppInfo/AppInfo.ios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public static partial class AppInfo

static string PlatformGetName() => GetBundleValue("CFBundleDisplayName") ?? GetBundleValue("CFBundleName");

static string PlatformGetVersionString() => GetBundleValue("CFBundleShortVersionString");
static string PlatformGetVersionString() => GetBundleValue("CFBundleVersion");

static string PlatformGetBuild() => GetBundleValue("CFBundleVersion");
static string PlatformGetBuild() => GetBundleValue("CFBundleShortVersionString");

static string GetBundleValue(string key)
=> NSBundle.MainBundle.ObjectForInfoDictionary(key)?.ToString();
Expand Down

0 comments on commit c61ef22

Please sign in to comment.