| 1234567891011121314151617181920 |
- using UnityEngine;
- // Included in the validation scene so the linker sees the actual public API path.
- public sealed class AppRuntimesValidationStartup : MonoBehaviour
- {
- private async void Start()
- {
- #if UNITY_IOS
- // Root every native entry point through IL2CPP without starting any purchases.
- System.GC.KeepAlive((System.Action)IAPWrapper.InitializeSK1);
- System.GC.KeepAlive((System.Action)IAPWrapper.InitializeSK2);
- System.GC.KeepAlive((System.Action)IAPWrapper.PurchaseConsumable);
- System.GC.KeepAlive((System.Action)IAPWrapper.PurchaseNonConsumable);
- System.GC.KeepAlive((System.Action)IAPWrapper.PurchaseSubscription);
- #endif
- Debug.Log(AppRuntimesStreamingAssets.GetPath("meta-logo.png"));
- AppRuntimes.Initialization();
- await AppRuntimes.CheckVersion();
- }
- }
|