[A] appsflyer, SDK facade init method
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Threading.Tasks;
|
||||
using asap.core;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using UnityEngine;
|
||||
using AppsFlyerSDK;
|
||||
|
||||
namespace tysdk
|
||||
{
|
||||
@@ -38,13 +39,19 @@ namespace tysdk
|
||||
|
||||
public void Init()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
//AppsFlyer.setIsDebug(true);
|
||||
#if UNITY_IOS
|
||||
AppsFlyer.initSDK("rSySeWtvKabfbPZE7Lmx7C","6505145935");
|
||||
#elif UNITY_ANDROID
|
||||
AppsFlyer.initSDK("rSySeWtvKabfbPZE7Lmx7C", null);
|
||||
UnityBridgeFunc.InitSDK();
|
||||
#endif
|
||||
AppsFlyer.startSDK();
|
||||
}
|
||||
|
||||
public void InitAfterLogin()
|
||||
{
|
||||
AppsFlyer.setCustomerUserId(_accountInfo.strUserId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "tysdk",
|
||||
"rootNamespace": "tysdk",
|
||||
"references": [
|
||||
"GUID:a4cfc1a18fa3a469b96d885db522f42e"
|
||||
"GUID:2a37df438292d4903b4e5159c5de3bf9"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
||||
Reference in New Issue
Block a user