From ebcdc9ccbf07a559dbb4c76a6bedf317589abec0 Mon Sep 17 00:00:00 2001 From: huyufei Date: Wed, 20 Mar 2024 15:15:20 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=B0=E5=A2=9E=20Crashlytics=20?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=20CustomKey=20=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/GuruConsent/README.md | 4 ++++ .../GuruCore/Runtime/Reporter/CrashlyticsAgent.cs | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Runtime/GuruConsent/README.md b/Runtime/GuruConsent/README.md index 0303b5a..2ab12b3 100644 --- a/Runtime/GuruConsent/README.md +++ b/Runtime/GuruConsent/README.md @@ -1,5 +1,9 @@ # Guru Unity Consent +## Version 1.0.7 +* 更新 Consent 针对 Json 参数的回调和解析逻辑. + + ## Version 1.0.6 * 更新了Google DMA 合规策略, 请查询详细的 [Google Ads Consent Mode DMA合规 技术需求文档](https://docs.google.com/document/d/1p7ad-W6XnqPjMgFkvoVf1Yylsogm_PykD9_nauInVoI/edit#heading=h.42lwhi7yczmk) * 已集成了中台的 `dma_gg` 点位 diff --git a/Runtime/GuruCore/Runtime/Reporter/CrashlyticsAgent.cs b/Runtime/GuruCore/Runtime/Reporter/CrashlyticsAgent.cs index ba2ce88..c8d5579 100644 --- a/Runtime/GuruCore/Runtime/Reporter/CrashlyticsAgent.cs +++ b/Runtime/GuruCore/Runtime/Reporter/CrashlyticsAgent.cs @@ -118,11 +118,7 @@ namespace Guru public static void Log(string msg) { - if (!_isReady) - { - Install(); - return; - } + if (!_isReady) return; Crashlytics.Log(msg); CheckSetUser(); } @@ -139,6 +135,14 @@ namespace Guru } } } + + + public static void SetCustomKey(string key, string value) + { + if (!_isReady) return; + Crashlytics.SetCustomKey(key, value); + } + } } \ No newline at end of file