update: 代码补全 FirebaseUtils 注入 OnDeeplinkCallback 的方法
--story=1021486 --user=yufei.hu 【中台】【Deeplink】兼容 1.0.11.1 实现的 Deeplink Callback 的功能, 应用在当前的版本上(QA 无需测试) https://www.tapd.cn/33527076/s/1164086
							parent
							
								
									966327bd54
								
							
						
					
					
						commit
						20e162d311
					
				| 
						 | 
					@ -70,10 +70,13 @@ namespace Guru
 | 
				
			||||||
        /// <param name="userAllow">自定义 Consent 的用户授权结果</param>
 | 
					        /// <param name="userAllow">自定义 Consent 的用户授权结果</param>
 | 
				
			||||||
        /// <param name="consentName">Consent引导名称</param>
 | 
					        /// <param name="consentName">Consent引导名称</param>
 | 
				
			||||||
        /// <param name="buyNoAds">是否已经购买了去广告</param>
 | 
					        /// <param name="buyNoAds">是否已经购买了去广告</param>
 | 
				
			||||||
 | 
					        [Obsolete("不要再使用自定义的 Consent 流程, 必须使用中台统一的 Consent 流程。 此方法将被废弃")]
 | 
				
			||||||
        public static void StartAdsWithCustomConsent(bool userAllow = true, string consentName = "custom",
 | 
					        public static void StartAdsWithCustomConsent(bool userAllow = true, string consentName = "custom",
 | 
				
			||||||
            bool buyNoAds = false)
 | 
					            bool buyNoAds = false)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            StartAdsWithCustomConsent(userAllow, consentName, AdsInitSpec.BuildWithNoAds());
 | 
					            var spec = AdsInitSpec.BuildDefault();
 | 
				
			||||||
 | 
					            if(buyNoAds)  spec = AdsInitSpec.BuildWithNoAds();
 | 
				
			||||||
 | 
					            StartAdsWithCustomConsent(userAllow, consentName, spec);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -283,9 +286,12 @@ namespace Guru
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            //---------- Using InitConfig ----------
 | 
					            //---------- Using InitConfig ----------
 | 
				
			||||||
            if (InitConfig is { IsBuyNoAds: true }) SetBuyNoAds(true);
 | 
					            if (InitConfig != null && InitConfig.IsBuyNoAds)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                SetBuyNoAds(true);
 | 
				
			||||||
 | 
					                Debug.Log($"[SDK][Ads] ---- StartAdService : {InitConfig.IsBuyNoAds}");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            LogI($"StartAdService");
 | 
					 | 
				
			||||||
            if (spec == null)
 | 
					            if (spec == null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                spec = AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode);
 | 
					                spec = AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -165,7 +165,7 @@ namespace Guru
 | 
				
			||||||
            FirebaseUtil.onInitComplete += OnFirebaseReady;
 | 
					            FirebaseUtil.onInitComplete += OnFirebaseReady;
 | 
				
			||||||
            FirebaseUtil.OnUserAuthResult += OnUserAuthResult;
 | 
					            FirebaseUtil.OnUserAuthResult += OnUserAuthResult;
 | 
				
			||||||
            FirebaseUtil.OnFirebaseAuthResult += OnFirebaseAuthResult;
 | 
					            FirebaseUtil.OnFirebaseAuthResult += OnFirebaseAuthResult;
 | 
				
			||||||
            FirebaseUtil.InitFirebase(null); // 确保所有的逻辑提前被调用到
 | 
					            FirebaseUtil.InitFirebase(null, InitConfig.OnDeeplinkCallback); // 确保所有的逻辑提前被调用到
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            LogI($"#2.1 --- InitFacebook ---");
 | 
					            LogI($"#2.1 --- InitFacebook ---");
 | 
				
			||||||
            //---------- Start Facebook ------------
 | 
					            //---------- Start Facebook ------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue