Fix android usage of obsoleted VersionCode

This commit is contained in:
Dean Herbert 2020-05-08 15:12:29 +09:00
parent 586ddd8200
commit 8b5de7403f
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ public override Version AssemblyVersion
try try
{ {
string versionName = packageInfo.VersionCode.ToString(); // todo: needs checking before play store redeploy.
string versionName = packageInfo.VersionName;
// undo play store version garbling // undo play store version garbling
return new Version(int.Parse(versionName.Substring(0, 4)), int.Parse(versionName.Substring(4, 4)), int.Parse(versionName.Substring(8, 1))); return new Version(int.Parse(versionName.Substring(0, 4)), int.Parse(versionName.Substring(4, 4)), int.Parse(versionName.Substring(8, 1)));
} }