void InitializeValidator() { if (IsCurrentStoreSupportedByValidator()) { #if !UNITY_EDITOR var appleTangleData = m_UseAppleStoreKitTestCertificate ? AppleStoreKitTestTangle.Data() : AppleTangle.Data(); m_Validator = new CrossPlatformValidator(GooglePlayTangle.Data(), appleTangleData, Application.identifier); #endif } else { userWarning.WarnInvalidStore(StandardPurchasingModule.Instance().appStore); } }
void InitializeValidator() { if (IsCurrentStoreSupportedByValidator()) { #if !UNITY_EDITOR var appleTangleData = m_UseAppleStoreKitTestCertificate ? AppleStoreKitTestTangle.Data() : AppleTangle.Data(); m_Validator = new CrossPlatformValidator(GooglePlayTangle.Data(), appleTangleData, Application.identifier); #endif } else { var warningMsg = $"The cross-platform validator is not implemented for the currently selected store: {StandardPurchasingModule.Instance().appStore}. \n" + "Build the project for Android, iOS, macOS, or tvOS and use the Google Play Store or Apple App Store. See README for more information."; Debug.LogWarning(warningMsg); } }