update: 更新GuruSettings 接口和配置设置
parent
9df2c3ca8f
commit
82bde7f992
|
|
@ -91,6 +91,20 @@ namespace Guru
|
|||
AnalyticsSetting.adjustEventList = evtList;
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateAppSettings(string bundleId = "", string fbAppId = "",
|
||||
string supportEmail = "",
|
||||
string privacyUrl = "", string termsUrl = "", string androidStoreUrl = "", string iosStoreUrl = "")
|
||||
{
|
||||
if(!string.IsNullOrEmpty(bundleId)) IPMSetting.bundleId = bundleId;
|
||||
if(!string.IsNullOrEmpty(supportEmail) )SupportEmail = supportEmail;
|
||||
if(!string.IsNullOrEmpty(privacyUrl) )PriacyUrl = privacyUrl;
|
||||
if(!string.IsNullOrEmpty(termsUrl) )TermsUrl = termsUrl;
|
||||
if(!string.IsNullOrEmpty(androidStoreUrl) )AndroidStoreUrl = androidStoreUrl;
|
||||
if(!string.IsNullOrEmpty(iosStoreUrl) )IOSStoreUrl = iosStoreUrl;
|
||||
if(!string.IsNullOrEmpty(fbAppId) )IPMSetting.fbAppId = fbAppId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
|
@ -99,13 +113,13 @@ namespace Guru
|
|||
[Header("中台项目ID")]
|
||||
[SerializeField] private string appID;
|
||||
[Header("中台Token有效时间(s)")]
|
||||
[SerializeField] private int tokenValidTime = 604800;
|
||||
[SerializeField] internal int tokenValidTime = 604800;
|
||||
[Header("应用包名")]
|
||||
[SerializeField] private string bundleId;
|
||||
[SerializeField] internal string bundleId;
|
||||
[Header("Facebook App ID")]
|
||||
[SerializeField] private string fbAppId;
|
||||
[SerializeField] internal string fbAppId;
|
||||
[Header("Facebook Client Token")]
|
||||
[SerializeField] private string fbClientToken;
|
||||
[SerializeField] internal string fbClientToken;
|
||||
|
||||
public string AppId => appID;
|
||||
public int TokenValidTime => tokenValidTime;
|
||||
|
|
|
|||
Loading…
Reference in New Issue