52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
namespace Guru
 | 
						|
{
 | 
						|
    public partial class GuruSDK
 | 
						|
    {
 | 
						|
        
 | 
						|
        public static string UID => _model?.UserId ?? IPMConfig.IPM_UID;
 | 
						|
        public static string DeviceId => IPMConfig.IPM_DEVICE_ID ?? "";  // TODO: change it to _model member later.
 | 
						|
 | 
						|
        public static string PushToken => IPMConfig.IPM_PUSH_TOKEN ?? ""; // TODO: change it to _model member later.
 | 
						|
 | 
						|
        public static string SupportEmail => GuruSettings.SupportEmail ?? "";
 | 
						|
 | 
						|
        public static string StoreUrl
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                string url = "";
 | 
						|
#if UNITY_EDITOR
 | 
						|
                url = "https://test@com.guru.ai";
 | 
						|
#elif UNITY_ANDROID
 | 
						|
                url = GuruSettings?.AndroidStoreUrl ?? "";
 | 
						|
#elif UNITY_IOS
 | 
						|
                url = GuruSettings?.IOSStoreUrl ?? "";
 | 
						|
#endif
 | 
						|
                return url;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        
 | 
						|
        public static string AppVersion =>GuruAppVersion.version;
 | 
						|
 | 
						|
        public static string AppVersionCode => GuruAppVersion.code;
 | 
						|
        
 | 
						|
        public static string AppVersionString => GuruAppVersion.ToString();
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        private static GuruAppVersion _appVersion;
 | 
						|
        private static GuruAppVersion GuruAppVersion
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                if(_appVersion == null) _appVersion = GuruAppVersion.Load();
 | 
						|
                return _appVersion;
 | 
						|
            }
 | 
						|
        }
 | 
						|
 | 
						|
    }
 | 
						|
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
} |