sdk 参数

This commit is contained in:
chenxi 2023-04-25 10:03:30 +08:00
parent d79e88c8bc
commit 6b0a1027d7
11 changed files with 73 additions and 73 deletions

View File

@ -131,7 +131,7 @@ namespace BFEditor.Build
// 应用名
if (buildInfo.IsPublish())
{
PlayerSettings.productName = "b6";
PlayerSettings.productName = "Knight Connect";
}
else
{

View File

@ -25,11 +25,11 @@
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb201089202542977" />
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="11811b9447848f6700c871aa7d739dc7" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb222326627097275" />
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="7ec364275c7766833d2ebace0c5a806e" />
<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="true" />
<provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider201089202542977" android:exported="true" />
<provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider222326627097275" android:exported="true" />
<!-- <uses-permission android:name="com.google.android.gms.permission.AD_ID" /> -->
<receiver android:name="com.adjust.sdk.AdjustReferrerReceiver" android:permission="android.permission.INSTALL_PACKAGES" android:exported="true">
<intent-filter>

View File

@ -20,7 +20,7 @@ namespace BF
#if UNITY_ANDROID
// string appKey = "85460dcd";
string appKey = "193cca4fd";
string appKey = "19b1b4f1d";
BFLog.Log("unity-script: IronSource.Agent.validateIntegration");
IronSource.Agent.validateIntegration();
@ -32,9 +32,9 @@ namespace BF
IronSource.Agent.init(appKey);
IronSource.Agent.setManualLoadRewardedVideo(true);
#elif UNITY_IPHONE
string appKey = "8545d445";
// string appKey = "8545d445";
#else
string appKey = "unexpected_platform";
// string appKey = "unexpected_platform";
#endif
// BFLog.Log("unity-script: IronSource.Agent.validateIntegration");
// IronSource.Agent.validateIntegration();

View File

@ -19,114 +19,114 @@ namespace BF
public void Init()
{
BFLog.Log("TASdk.Init");
// TASdk.Init();
// AFSdk.Init();
TASdk.Init();
AFSdk.Init();
}
// 设置账户id
public void SetThinkingAnalyticsAccountId(string id)
{
// TASdk.SetAccountId(id);
TASdk.SetAccountId(id);
}
// 清除账户id
public void ClearThinkingAnalyticsAccountId()
{
// TASdk.ClearAccountId();
TASdk.ClearAccountId();
}
// 数数科技上报
// lua端使用
public void PostThinkingAnalyticsEvent(string eventName, string data = "")
{
// if (string.IsNullOrEmpty(data))
// {
// TASdk.Track(eventName, null);
// }
// else
// {
// var properties = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
// TASdk.Track(eventName, properties);
// }
if (string.IsNullOrEmpty(data))
{
TASdk.Track(eventName, null);
}
else
{
var properties = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
TASdk.Track(eventName, properties);
}
}
// 数数科技上报
// c#端使用,只上报事件名
public void PostThinkingAnalyticsEventName(string eventName)
{
// TASdk.Track(eventName, null);
TASdk.Track(eventName, null);
}
// 数数科技上报
// c#端使用,上报事件名和参数
public void PostThinkingAnalyticsEventProperties(string eventName, Dictionary<string, object> properties)
{
// TASdk.Track(eventName, properties);
TASdk.Track(eventName, properties);
}
public void PostAppsflyerEvent(string eventName, string data = "")
{
// if (string.IsNullOrEmpty(data))
// {
// AFSdk.SendEvent(eventName, null);
// }
// else
// {
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
// AFSdk.SendEvent(eventName, properties);
// }
if (string.IsNullOrEmpty(data))
{
AFSdk.SendEvent(eventName, null);
}
else
{
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
AFSdk.SendEvent(eventName, properties);
}
}
public void PostFireBaseEvent(string eventName, string data = "")
{
// if (string.IsNullOrEmpty(data))
// {
// return;
// }
// else
// {
// BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data);
// }
if (string.IsNullOrEmpty(data))
{
return;
}
else
{
BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data);
}
}
// 设置账户id
public void PostAdjustSimpleTrackEvent(string key)
{
// AdjustEvent adjustEvent = new AdjustEvent(key);
// // BFLog.Log("PostAdjustSimpleTrackEvent");
// Adjust.trackEvent(adjustEvent);
AdjustEvent adjustEvent = new AdjustEvent(key);
// BFLog.Log("PostAdjustSimpleTrackEvent");
Adjust.trackEvent(adjustEvent);
}
public void PostAdjustRevenueTrackEvent(string key, double currency, string currencyCode)
{
// AdjustEvent adjustEvent = new AdjustEvent(key);
// adjustEvent.setRevenue(currency, currencyCode);
// // BFLog.Log("PostAdjustRevenueTrackEvent");
// Adjust.trackEvent(adjustEvent);
AdjustEvent adjustEvent = new AdjustEvent(key);
adjustEvent.setRevenue(currency, currencyCode);
// BFLog.Log("PostAdjustRevenueTrackEvent");
Adjust.trackEvent(adjustEvent);
}
public void PostAdjustCallbackTrackEvent(string key, string data = "")
{
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
// AdjustEvent adjustEvent = new AdjustEvent(key);
// foreach (var item in properties)
// {
// adjustEvent.addCallbackParameter(item.Key, item.Value);
// }
// // BFLog.Log("PostAdjustCallbackTrackEvent");
// Adjust.trackEvent(adjustEvent);
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
AdjustEvent adjustEvent = new AdjustEvent(key);
foreach (var item in properties)
{
adjustEvent.addCallbackParameter(item.Key, item.Value);
}
// BFLog.Log("PostAdjustCallbackTrackEvent");
Adjust.trackEvent(adjustEvent);
}
public void PostAdjustPartnerTrackEvent(string key, string data = "")
{
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
// AdjustEvent adjustEvent = new AdjustEvent(key);
// foreach (var item in properties)
// {
// adjustEvent.addPartnerParameter(item.Key, item.Value);
// }
// // BFLog.Log("PostAdjustPartnerTrackEvent");
// Adjust.trackEvent(adjustEvent);
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
AdjustEvent adjustEvent = new AdjustEvent(key);
foreach (var item in properties)
{
adjustEvent.addPartnerParameter(item.Key, item.Value);
}
// BFLog.Log("PostAdjustPartnerTrackEvent");
Adjust.trackEvent(adjustEvent);
}
}
}

View File

@ -96,7 +96,7 @@ namespace BF
BFPaySDKMgr = sdkGo.AddComponent<BFPaySDKManager>();
// 广告
// BFAdmobSDKMgr = sdkGo.AddComponent<BFAdmobSDKManager>();
// BFIronSourceSDKMgr = sdkGo.AddComponent<BFIronSourceSDKManager>();
BFIronSourceSDKMgr = sdkGo.AddComponent<BFIronSourceSDKManager>();
// 三方上报
BFThirdReportSDKMgr = sdkGo.AddComponent<BFThirdReportSDKManager>();
// native交互管理

View File

@ -14,11 +14,11 @@ MonoBehaviour:
m_EditorClassIdentifier:
selectedAppIndex: 0
clientTokens:
-
- 7ec364275c7766833d2ebace0c5a806e
appIds:
-
- 222326627097275
appLabels:
-
- Knight Connect
cookie: 1
logging: 1
status: 1

View File

@ -212,8 +212,8 @@ MonoBehaviour:
enableLog: 0
networkType: 1
tokens:
- appid:
serverUrl:
- appid: 4bd4464b39394188a6708fee41f352f7
serverUrl: https://ta.perfeggsgame.com
mode: 0
timeZone: 1
timeZoneId:
@ -392,7 +392,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2a2ec6ba1ee8b48749524f015ed572a6, type: 3}
m_Name:
m_EditorClassIdentifier:
devKey:
devKey: XHsvoUhhNvMamKMSEvrew3
iosDevKey:
appID:
UWPAppID:

View File

@ -31,7 +31,7 @@
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-8252390069143459~5647580719"/>
android:value="ca-app-pub-8252390069143459~1326835946"/>
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true"/>

View File

@ -32,7 +32,7 @@
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-8252390069143459~5647580719"/>
android:value="ca-app-pub-8252390069143459~1326835946"/>
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true"/>

View File

@ -43,7 +43,7 @@
<meta-data android:name="unity.allow-resizable-window" android:value="False" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-8252390069143459~5647580719"/>
android:value="ca-app-pub-8252390069143459~1326835946"/>
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true"/>

View File

@ -19,7 +19,7 @@
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-8252390069143459~5647580719"/>
android:value="ca-app-pub-8252390069143459~1326835946"/>
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true"/>