2024-03-12 02:35:00 +00:00
|
|
|
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.
|
2024-03-22 05:20:54 +00:00
|
|
|
public static string AuthToken => IPMConfig.IPM_TOKEN ?? ""; // TODO: change it to _model member later.
|
2024-03-12 02:35:00 +00:00
|
|
|
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();
|
2024-03-19 02:02:31 +00:00
|
|
|
|
|
|
|
|
public static bool IsNewUser => IPMConfig.IPM_NEWUSER;
|
2024-03-22 05:20:54 +00:00
|
|
|
|
|
|
|
|
public static string FireabseId => IPMConfig.FIREBASE_ID;
|
|
|
|
|
public static string IDFA => IPMConfig.ADJUST_IDFA;
|
|
|
|
|
public static string AdjustId => IPMConfig.ADJUST_ID;
|
|
|
|
|
public static string GSADID => IPMConfig.ADJUST_ADID;
|
2024-03-19 02:02:31 +00:00
|
|
|
|
|
|
|
|
|
2024-03-12 02:35:00 +00:00
|
|
|
private static GuruAppVersion _appVersion;
|
|
|
|
|
private static GuruAppVersion GuruAppVersion
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if(_appVersion == null) _appVersion = GuruAppVersion.Load();
|
|
|
|
|
return _appVersion;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-18 02:22:11 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置购买去广告道具的标志位
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="value"></param>
|
|
|
|
|
public static void SetBuyNoAds(bool value = true)
|
|
|
|
|
{
|
|
|
|
|
ADService.Instance.IsBuyNoAds = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 所有成功的主线关卡数量 (b_level)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static int SuccessLevelCount
|
|
|
|
|
{
|
|
|
|
|
get => GuruSDKModel.Instance.SuccessLevelCount;
|
|
|
|
|
set => GuruSDKModel.Instance.SuccessLevelCount = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 成功关卡总计数量 (b_play)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static int TotalPlayedCount
|
|
|
|
|
{
|
|
|
|
|
get => GuruSDKModel.Instance.TotalPlayedCount;
|
|
|
|
|
set => GuruSDKModel.Instance.TotalPlayedCount = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-03-12 02:35:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|