Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ public virtual bool Initialize(BuildToolLogger buildToolLogger)
// Cache information that is only accessible from the main thread.
_minSdkVersion = PlayerSettings.Android.minSdkVersion;
_packageName = PlayerSettings.GetApplicationIdentifier(BuildTargetGroup.Android);
_versionCode = PlayerSettings.Android.bundleVersionCode;
_versionName = PlayerSettings.bundleVersion;

_assetPackManifestTransformers = AssetPackManifestTransformerRegistry.Registry.ConstructInstances();
var initializedManifestTransformers = true;
Expand Down Expand Up @@ -176,7 +174,12 @@ public virtual AndroidBuildResult BuildAndroidPlayer(BuildPlayerOptions buildPla
};

// Do not use BuildAndSign since this signature won't be used.
return _androidBuilder.Build(updatedBuildPlayerOptions);
var buildResult = _androidBuilder.Build(updatedBuildPlayerOptions);

_versionCode = PlayerSettings.Android.bundleVersionCode;
_versionName = PlayerSettings.bundleVersion;

return buildResult;
}

/// <summary>
Expand Down Expand Up @@ -888,4 +891,4 @@ private string DisplayBuildError(string errorType, string errorMessage)
return _buildErrorMessage;
}
}
}
}