public PsdkAnalyticsService(IPsdkServiceManager sm) { switch (Application.platform) { case RuntimePlatform.IPhonePlayer: _impl = new IphonePsdkAnalytics(sm.GetImplementation()); break; #if UNITY_ANDROID case RuntimePlatform.Android: _impl = new AndroidPsdkAnalytics(sm.GetImplementation()); break; #endif case RuntimePlatform.WindowsEditor: case RuntimePlatform.OSXEditor: _impl = new UnityEditorPsdkAnalytics(sm.GetImplementation()); break; default: throw new System.Exception("Platform not supported for Analytics."); } // #if UNITY_EDITOR // _impl = new UnityEditorPsdkSplash(sm.GetImplementation()); // #elif UNITY_ANDROID // _impl = new AndroidPsdkSplash(sm.GetImplementation()); // #elif UNITY_IPHONE // _impl = new IphonePsdkSplash(sm.GetImplementation()); // #else // throw new Exception("Platform not supported for Splash."); // #endif }
public PsdkCrashToolService(IPsdkServiceManager sm) { switch (Application.platform) { case RuntimePlatform.IPhonePlayer: _impl = new IphonePsdkCrashTool(sm.GetImplementation()); break; #if UNITY_ANDROID case RuntimePlatform.Android: _impl = new AndroidPsdkCrashTool(sm.GetImplementation()); break; #endif case RuntimePlatform.WindowsEditor: case RuntimePlatform.OSXEditor: _impl = new UnityEditorPsdkCrashTool(sm.GetImplementation()); break; default: throw new System.Exception("Platform not supported for CrashTool."); } }
public PsdkInAppPurchase(IPsdkServiceManager sm) { switch (Application.platform) { case RuntimePlatform.IPhonePlayer: _impl = new IphoneInAppPurchase(); break; #if UNITY_ANDROID case RuntimePlatform.Android: _impl = new AndroidInAppPurchase(sm.GetImplementation()); break; #endif case RuntimePlatform.WindowsEditor: case RuntimePlatform.OSXEditor: _impl = new UnityInAppPurchase(); break; default: throw new System.Exception("Platform not supported for External Configuration."); } }
public PsdkAppLifeCycleManager(IPsdkServiceManager sm) { _sm = sm; switch (Application.platform) { case RuntimePlatform.IPhonePlayer: _impl = new IphonePsdkAppLifeCycleManager(sm.GetImplementation()); break; #if UNITY_ANDROID case RuntimePlatform.Android: _impl = new AndroidPsdkAppLifeCycleManager(sm.GetImplementation()); break; #endif case RuntimePlatform.WindowsEditor: case RuntimePlatform.OSXEditor: _impl = new UnityEditorPsdkAppLifeCycleManager(sm.GetImplementation()); break; default: throw new System.Exception("Platform not supported for PsdkAppLifeCycleManager."); } // #if UNITY_IPHONE && !UNITY_EDITOR // _impl = new IphonePsdkAppLifeCycleManager(sm.GetImplementation()); // #elif UNITY_ANDROID && !UNITY_EDITOR // _impl = new AndroidPsdkAppLifeCycleManager(sm.GetImplementation()); // #elif UNITY_EDITOR // _impl = new UnityEditorPsdkAppLifeCycleManager(sm.GetImplementation()); // #endif }