As per the title, I updated to 3.0.2 but the package version is still defined as 3.0.1
public class StandardPurchasingModule : AbstractPurchasingModule, IAndroidStoreSelection, IStoreConfiguration
{
public const string k_PackageVersion = "3.0.1";
Unity’s own logging must use this as even that reports it as 3.0.1
And, StandardPurchasingManager.k_PackageVersion is a bug which unfortunately will be with us for the remainder of the 3.x.x release.
Thank you for pointing this out.
We will be deprecating this public API, and plan to add a new method “Version” that does the same thing, in a future release. Then finishing by removing k_PackageVersion in 4.x.x.
The k_PackageVersion signature, it is a constant [readonly would have been a better choice], and as such its string data could potentially be copied into a DLL…resulting in tighter-coupling than we want. E.g. the package could hypothetically be updated to 3.0.4 but a DLL would still have a cached copy of the value at 3.0.1, which is not what we want. So we are deprecating it, and replacing it with a method.
Thanks for the update and the new documentation. The old documents were quite dated, so it’s great to see them updated. I’ll go through them and double check my current code & setup matches the new docs & IAP project.
As for the version number, I understand and good to hear it’s on the radar.