[F] Android GA International

This commit is contained in:
2024-09-02 10:28:07 +08:00
parent f6aad92327
commit 55d2216e2c
2 changed files with 14 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using AppsFlyerSDK; using AppsFlyerSDK;
using asap.core; using asap.core;
using Newtonsoft.Json.Linq;
using ThinkingData.Analytics; using ThinkingData.Analytics;
using tysdk; using tysdk;
using UnityEngine; using UnityEngine;
@@ -50,13 +51,15 @@ public class SDKTest : MonoBehaviour
void Start() void Start()
{ {
IObjectSerializer serializer = new ObjectSerializer();
IConfig config = new Config(serializer);
GContext.container.RegisterInstance<IConfig>(config);
Debug.Log("SDKTest Start"); Debug.Log("SDKTest Start");
//=============================================================================== //===============================================================================
//====================== Test Server =========================== //====================== Test Server ===========================
UnityBridgeFunc.UnityResetServerUrl("https://128-hwsfsdk-sdk-test01.qijihdhk.com"); UnityBridgeFunc.UnityResetServerUrl("https://128-hwsfsdk-sdk-test01.qijihdhk.com");
IObjectSerializer serializer = new ObjectSerializer();
IConfig config = new Config(serializer);
GContext.container.RegisterInstance<IConfig>(config);
config.Set("AGG_SERVER", "https://128-hwsfsdk-sdk-test01.qijihdhk.com"); config.Set("AGG_SERVER", "https://128-hwsfsdk-sdk-test01.qijihdhk.com");
//====================== Test Server =========================== //====================== Test Server ===========================
//=============================================================================== //===============================================================================
@@ -187,11 +190,13 @@ public class SDKTest : MonoBehaviour
public void OnGaBtn() public void OnGaBtn()
{ {
//Debug.LogError("Ga ask"); var e = new JObject();
//using (var e = GAEvent.TackEvent("idcheckdone")) e["user_id"] = 10001;
//{ e["login_type"] = EAccoutType.hwGuest.ToString();
//e.AddContent("test ga", true); e["display_name"] = "Skistua";
//} e["avatar_url"] = "";
Debug.Log(e.ToString());
TYSdkFacade.Instance.EventTrack(1,AFInAppEvents.LOGIN,e.ToString());
} }
/* /*

View File

@@ -299,7 +299,7 @@ public class SDKManager {
private static IGASDK GetGameGa(){ private static IGASDK GetGameGa(){
if(gasdk == null){ if(gasdk == null){
GAConfiguration.Builder builder = new GAConfiguration.Builder() GAConfiguration.Builder builder = new GAConfiguration.Builder()
.withBaseUrl(BaseUrl.INTERNAL) .withBaseUrl(BaseUrl.INTERNATIONAL)
.withContext(SDKWrapper.getInstance().getContext()) .withContext(SDKWrapper.getInstance().getContext())
.withClientId(ConfigManager.SDK_CLIENTID) .withClientId(ConfigManager.SDK_CLIENTID)
.withGameId(ConfigManager.SDK_GAMEID) .withGameId(ConfigManager.SDK_GAMEID)