sdk 参数
This commit is contained in:
parent
d79e88c8bc
commit
6b0a1027d7
@ -131,7 +131,7 @@ namespace BFEditor.Build
|
|||||||
// 应用名
|
// 应用名
|
||||||
if (buildInfo.IsPublish())
|
if (buildInfo.IsPublish())
|
||||||
{
|
{
|
||||||
PlayerSettings.productName = "b6";
|
PlayerSettings.productName = "Knight Connect";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -25,11 +25,11 @@
|
|||||||
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
|
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
|
||||||
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
|
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
|
||||||
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" />
|
<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.ApplicationId" android:value="fb222326627097275" />
|
||||||
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="11811b9447848f6700c871aa7d739dc7" />
|
<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.AutoLogAppEventsEnabled" android:value="true" />
|
||||||
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" 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" /> -->
|
<!-- <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">
|
<receiver android:name="com.adjust.sdk.AdjustReferrerReceiver" android:permission="android.permission.INSTALL_PACKAGES" android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|||||||
@ -20,7 +20,7 @@ namespace BF
|
|||||||
|
|
||||||
#if UNITY_ANDROID
|
#if UNITY_ANDROID
|
||||||
// string appKey = "85460dcd";
|
// string appKey = "85460dcd";
|
||||||
string appKey = "193cca4fd";
|
string appKey = "19b1b4f1d";
|
||||||
|
|
||||||
BFLog.Log("unity-script: IronSource.Agent.validateIntegration");
|
BFLog.Log("unity-script: IronSource.Agent.validateIntegration");
|
||||||
IronSource.Agent.validateIntegration();
|
IronSource.Agent.validateIntegration();
|
||||||
@ -32,9 +32,9 @@ namespace BF
|
|||||||
IronSource.Agent.init(appKey);
|
IronSource.Agent.init(appKey);
|
||||||
IronSource.Agent.setManualLoadRewardedVideo(true);
|
IronSource.Agent.setManualLoadRewardedVideo(true);
|
||||||
#elif UNITY_IPHONE
|
#elif UNITY_IPHONE
|
||||||
string appKey = "8545d445";
|
// string appKey = "8545d445";
|
||||||
#else
|
#else
|
||||||
string appKey = "unexpected_platform";
|
// string appKey = "unexpected_platform";
|
||||||
#endif
|
#endif
|
||||||
// BFLog.Log("unity-script: IronSource.Agent.validateIntegration");
|
// BFLog.Log("unity-script: IronSource.Agent.validateIntegration");
|
||||||
// IronSource.Agent.validateIntegration();
|
// IronSource.Agent.validateIntegration();
|
||||||
|
|||||||
@ -19,114 +19,114 @@ namespace BF
|
|||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
BFLog.Log("TASdk.Init");
|
BFLog.Log("TASdk.Init");
|
||||||
// TASdk.Init();
|
TASdk.Init();
|
||||||
// AFSdk.Init();
|
AFSdk.Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置账户id
|
// 设置账户id
|
||||||
public void SetThinkingAnalyticsAccountId(string id)
|
public void SetThinkingAnalyticsAccountId(string id)
|
||||||
{
|
{
|
||||||
// TASdk.SetAccountId(id);
|
TASdk.SetAccountId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 清除账户id
|
// 清除账户id
|
||||||
public void ClearThinkingAnalyticsAccountId()
|
public void ClearThinkingAnalyticsAccountId()
|
||||||
{
|
{
|
||||||
// TASdk.ClearAccountId();
|
TASdk.ClearAccountId();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数数科技上报
|
// 数数科技上报
|
||||||
// lua端使用
|
// lua端使用
|
||||||
public void PostThinkingAnalyticsEvent(string eventName, string data = "")
|
public void PostThinkingAnalyticsEvent(string eventName, string data = "")
|
||||||
{
|
{
|
||||||
// if (string.IsNullOrEmpty(data))
|
if (string.IsNullOrEmpty(data))
|
||||||
// {
|
{
|
||||||
// TASdk.Track(eventName, null);
|
TASdk.Track(eventName, null);
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
|
var properties = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
|
||||||
// TASdk.Track(eventName, properties);
|
TASdk.Track(eventName, properties);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数数科技上报
|
// 数数科技上报
|
||||||
// c#端使用,只上报事件名
|
// c#端使用,只上报事件名
|
||||||
public void PostThinkingAnalyticsEventName(string eventName)
|
public void PostThinkingAnalyticsEventName(string eventName)
|
||||||
{
|
{
|
||||||
// TASdk.Track(eventName, null);
|
TASdk.Track(eventName, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数数科技上报
|
// 数数科技上报
|
||||||
// c#端使用,上报事件名和参数
|
// c#端使用,上报事件名和参数
|
||||||
public void PostThinkingAnalyticsEventProperties(string eventName, Dictionary<string, object> properties)
|
public void PostThinkingAnalyticsEventProperties(string eventName, Dictionary<string, object> properties)
|
||||||
{
|
{
|
||||||
// TASdk.Track(eventName, properties);
|
TASdk.Track(eventName, properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostAppsflyerEvent(string eventName, string data = "")
|
public void PostAppsflyerEvent(string eventName, string data = "")
|
||||||
{
|
{
|
||||||
// if (string.IsNullOrEmpty(data))
|
if (string.IsNullOrEmpty(data))
|
||||||
// {
|
{
|
||||||
// AFSdk.SendEvent(eventName, null);
|
AFSdk.SendEvent(eventName, null);
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||||
// AFSdk.SendEvent(eventName, properties);
|
AFSdk.SendEvent(eventName, properties);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostFireBaseEvent(string eventName, string data = "")
|
public void PostFireBaseEvent(string eventName, string data = "")
|
||||||
{
|
{
|
||||||
// if (string.IsNullOrEmpty(data))
|
if (string.IsNullOrEmpty(data))
|
||||||
// {
|
{
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data);
|
BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置账户id
|
// 设置账户id
|
||||||
public void PostAdjustSimpleTrackEvent(string key)
|
public void PostAdjustSimpleTrackEvent(string key)
|
||||||
{
|
{
|
||||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||||
// // BFLog.Log("PostAdjustSimpleTrackEvent");
|
// BFLog.Log("PostAdjustSimpleTrackEvent");
|
||||||
// Adjust.trackEvent(adjustEvent);
|
Adjust.trackEvent(adjustEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostAdjustRevenueTrackEvent(string key, double currency, string currencyCode)
|
public void PostAdjustRevenueTrackEvent(string key, double currency, string currencyCode)
|
||||||
{
|
{
|
||||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||||
// adjustEvent.setRevenue(currency, currencyCode);
|
adjustEvent.setRevenue(currency, currencyCode);
|
||||||
// // BFLog.Log("PostAdjustRevenueTrackEvent");
|
// BFLog.Log("PostAdjustRevenueTrackEvent");
|
||||||
// Adjust.trackEvent(adjustEvent);
|
Adjust.trackEvent(adjustEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostAdjustCallbackTrackEvent(string key, string data = "")
|
public void PostAdjustCallbackTrackEvent(string key, string data = "")
|
||||||
{
|
{
|
||||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||||
// foreach (var item in properties)
|
foreach (var item in properties)
|
||||||
// {
|
{
|
||||||
// adjustEvent.addCallbackParameter(item.Key, item.Value);
|
adjustEvent.addCallbackParameter(item.Key, item.Value);
|
||||||
// }
|
}
|
||||||
// // BFLog.Log("PostAdjustCallbackTrackEvent");
|
// BFLog.Log("PostAdjustCallbackTrackEvent");
|
||||||
// Adjust.trackEvent(adjustEvent);
|
Adjust.trackEvent(adjustEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostAdjustPartnerTrackEvent(string key, string data = "")
|
public void PostAdjustPartnerTrackEvent(string key, string data = "")
|
||||||
{
|
{
|
||||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||||
// foreach (var item in properties)
|
foreach (var item in properties)
|
||||||
// {
|
{
|
||||||
// adjustEvent.addPartnerParameter(item.Key, item.Value);
|
adjustEvent.addPartnerParameter(item.Key, item.Value);
|
||||||
// }
|
}
|
||||||
// // BFLog.Log("PostAdjustPartnerTrackEvent");
|
// BFLog.Log("PostAdjustPartnerTrackEvent");
|
||||||
// Adjust.trackEvent(adjustEvent);
|
Adjust.trackEvent(adjustEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ namespace BF
|
|||||||
BFPaySDKMgr = sdkGo.AddComponent<BFPaySDKManager>();
|
BFPaySDKMgr = sdkGo.AddComponent<BFPaySDKManager>();
|
||||||
// 广告
|
// 广告
|
||||||
// BFAdmobSDKMgr = sdkGo.AddComponent<BFAdmobSDKManager>();
|
// BFAdmobSDKMgr = sdkGo.AddComponent<BFAdmobSDKManager>();
|
||||||
// BFIronSourceSDKMgr = sdkGo.AddComponent<BFIronSourceSDKManager>();
|
BFIronSourceSDKMgr = sdkGo.AddComponent<BFIronSourceSDKManager>();
|
||||||
// 三方上报
|
// 三方上报
|
||||||
BFThirdReportSDKMgr = sdkGo.AddComponent<BFThirdReportSDKManager>();
|
BFThirdReportSDKMgr = sdkGo.AddComponent<BFThirdReportSDKManager>();
|
||||||
// native交互管理
|
// native交互管理
|
||||||
|
|||||||
@ -14,11 +14,11 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
selectedAppIndex: 0
|
selectedAppIndex: 0
|
||||||
clientTokens:
|
clientTokens:
|
||||||
-
|
- 7ec364275c7766833d2ebace0c5a806e
|
||||||
appIds:
|
appIds:
|
||||||
-
|
- 222326627097275
|
||||||
appLabels:
|
appLabels:
|
||||||
-
|
- Knight Connect
|
||||||
cookie: 1
|
cookie: 1
|
||||||
logging: 1
|
logging: 1
|
||||||
status: 1
|
status: 1
|
||||||
|
|||||||
@ -212,8 +212,8 @@ MonoBehaviour:
|
|||||||
enableLog: 0
|
enableLog: 0
|
||||||
networkType: 1
|
networkType: 1
|
||||||
tokens:
|
tokens:
|
||||||
- appid:
|
- appid: 4bd4464b39394188a6708fee41f352f7
|
||||||
serverUrl:
|
serverUrl: https://ta.perfeggsgame.com
|
||||||
mode: 0
|
mode: 0
|
||||||
timeZone: 1
|
timeZone: 1
|
||||||
timeZoneId:
|
timeZoneId:
|
||||||
@ -392,7 +392,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 2a2ec6ba1ee8b48749524f015ed572a6, type: 3}
|
m_Script: {fileID: 11500000, guid: 2a2ec6ba1ee8b48749524f015ed572a6, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
devKey:
|
devKey: XHsvoUhhNvMamKMSEvrew3
|
||||||
iosDevKey:
|
iosDevKey:
|
||||||
appID:
|
appID:
|
||||||
UWPAppID:
|
UWPAppID:
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
|
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
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
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
||||||
android:value="true"/>
|
android:value="true"/>
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
|
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
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
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
||||||
android:value="true"/>
|
android:value="true"/>
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
<meta-data android:name="unity.allow-resizable-window" android:value="False" />
|
<meta-data android:name="unity.allow-resizable-window" android:value="False" />
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
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
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
||||||
android:value="true"/>
|
android:value="true"/>
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
|
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
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
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
|
||||||
android:value="true"/>
|
android:value="true"/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user