update: 更新打点参数错误

deeplink
胡宇飞 2024-04-09 18:18:10 +08:00
parent eb7b743146
commit fa00f99dd9
2 changed files with 6 additions and 2 deletions

View File

@ -86,12 +86,14 @@ namespace Guru.Editor
/// <param name="useMinify"></param> /// <param name="useMinify"></param>
/// <param name="androidTargetVersion"></param> /// <param name="androidTargetVersion"></param>
/// <param name="debugWithMono"></param> /// <param name="debugWithMono"></param>
/// <param name="isBuildAAB"></param>
/// <returns></returns> /// <returns></returns>
public static AppBuildParam AndroidParam(bool isRelease, string version = "", bool autoBuildNumber = true, public static AppBuildParam AndroidParam(bool isRelease, string version = "", bool autoBuildNumber = true,
AppBuilderType builderType = AppBuilderType.Editor, AppBuilderType builderType = AppBuilderType.Editor,
string companyName = "", bool useGuruCerts = true, bool useMinify = false, int androidTargetVersion = 0, bool debugWithMono = true) string companyName = "", bool useGuruCerts = true, bool useMinify = false, int androidTargetVersion = 0,
bool debugWithMono = true, bool isBuildAAB = false)
{ {
bool buildAAB = isRelease; bool buildAAB = isBuildAAB;
bool buildShowLog = isRelease; bool buildShowLog = isRelease;
bool buildSymbols = isRelease; bool buildSymbols = isRelease;
string targetName = TargetNameAndroid; string targetName = TargetNameAndroid;

View File

@ -198,6 +198,8 @@ namespace Guru
{ {
if(kv.Value is string strValue) if(kv.Value is string strValue)
parameters.Add(new Parameter(kv.Key, strValue)); parameters.Add(new Parameter(kv.Key, strValue));
else if (kv.Value is bool boolValue)
parameters.Add(new Parameter(kv.Key, boolValue ? "true" : "false"));
else if (kv.Value is int intValue) else if (kv.Value is int intValue)
parameters.Add(new Parameter(kv.Key, intValue)); parameters.Add(new Parameter(kv.Key, intValue));
else if (kv.Value is long longValue) else if (kv.Value is long longValue)