update: 更新 SDK 注入逻辑

Signed-off-by: huyufei <yufei.hu@castbox.fm>
hotfix/v1.0.12.2
胡宇飞 2024-05-31 16:19:58 +08:00
parent 225197c867
commit 6512ed327c
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ namespace Guru
public void UpdateAppSettings(string bundleId = "", string fbAppId = "", public void UpdateAppSettings(string bundleId = "", string fbAppId = "",
string supportEmail = "", string supportEmail = "",
string privacyUrl = "", string termsUrl = "", string privacyUrl = "", string termsUrl = "",
string androidStoreUrl = "", string iosStoreUrl = "", string usingUUID = "", string cdnHost = "") string androidStoreUrl = "", string iosStoreUrl = "", bool usingUUID = false, string cdnHost = "")
{ {
if (!string.IsNullOrEmpty(bundleId)) IPMSetting.bundleId = bundleId; if (!string.IsNullOrEmpty(bundleId)) IPMSetting.bundleId = bundleId;
if (!string.IsNullOrEmpty(supportEmail)) SupportEmail = supportEmail; if (!string.IsNullOrEmpty(supportEmail)) SupportEmail = supportEmail;
@ -104,7 +104,7 @@ namespace Guru
if (!string.IsNullOrEmpty(iosStoreUrl)) IOSStoreUrl = iosStoreUrl; if (!string.IsNullOrEmpty(iosStoreUrl)) IOSStoreUrl = iosStoreUrl;
if (!string.IsNullOrEmpty(fbAppId)) IPMSetting.fbAppId = fbAppId; if (!string.IsNullOrEmpty(fbAppId)) IPMSetting.fbAppId = fbAppId;
if (!string.IsNullOrEmpty(cdnHost)) IPMSetting.cdnHost = cdnHost; if (!string.IsNullOrEmpty(cdnHost)) IPMSetting.cdnHost = cdnHost;
if (!string.IsNullOrEmpty(usingUUID)) IPMSetting.usingUUID = usingUUID.ToLower() == "true" || usingUUID == "1"; IPMSetting.usingUUID = usingUUID;
} }
public string CdnHost() => IPMSetting.cdnHost; public string CdnHost() => IPMSetting.cdnHost;