fix:1、接入合作方的sdk。2、支付逻辑接入sdk中的接口

This commit is contained in:
2026-05-09 09:37:34 +08:00
parent 1599bf4bbb
commit ee55c03120
1011 changed files with 167108 additions and 33552 deletions
@@ -2,15 +2,15 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.appsflyer:af-android-sdk:6.17.0"></androidPackage>
<androidPackage spec="com.appsflyer:unity-wrapper:6.17.0"></androidPackage>
<androidPackage spec="com.appsflyer:af-android-sdk:6.17.6"></androidPackage>
<androidPackage spec="com.appsflyer:unity-wrapper:6.17.91"></androidPackage>
<androidPackage spec="com.android.installreferrer:installreferrer:2.1"></androidPackage>
<androidPackage spec="com.appsflyer:purchase-connector:2.1.0"></androidPackage>
<androidPackage spec="com.appsflyer:purchase-connector:2.2.0"></androidPackage>
</androidPackages>
<iosPods>
<iosPod name="AppsFlyerFramework" version="6.17.1" minTargetSdk="12.0"></iosPod>
<iosPod name="PurchaseConnector" version="6.17.1" minTargetSdk="12.0"></iosPod>
<iosPod name="AppsFlyerFramework" version="6.17.9" minTargetSdk="12.0"></iosPod>
<iosPod name="PurchaseConnector" version="6.17.9" minTargetSdk="12.0"></iosPod>
</iosPods>
</dependencies>
@@ -31,7 +31,7 @@ public class AppsFlyerObjectEditor : Editor
{
serializedObject.Update();
GUILayout.Box((Texture)AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(AssetDatabase.FindAssets("appsflyer_logo")[0]), typeof(Texture)), new GUILayoutOption[] { GUILayout.Width(600) });
DrawLogo();
EditorGUILayout.Separator();
EditorGUILayout.HelpBox("Set your devKey and appID to init the AppsFlyer SDK and start tracking. You must modify these fields and provide:\ndevKey - Your application devKey provided by AppsFlyer.\nappId - For iOS only. Your iTunes Application ID.\nUWP app id - For UWP only. Your application app id \nMac OS app id - For MacOS app only.", MessageType.Info);
@@ -80,5 +80,25 @@ public class AppsFlyerObjectEditor : Editor
serializedObject.ApplyModifiedProperties();
}
private void DrawLogo()
{
var guids = AssetDatabase.FindAssets("appsflyer_logo");
if (guids.Length == 0) return;
Texture logo = (Texture)AssetDatabase.LoadAssetAtPath(
AssetDatabase.GUIDToAssetPath(guids[0]),
typeof(Texture));
if (logo == null) return;
float maxWidth = Mathf.Min(200, EditorGUIUtility.currentViewWidth - 40);
float aspect = (float)logo.height / logo.width;
float height = maxWidth * aspect;
Rect rect = GUILayoutUtility.GetRect(maxWidth, height, GUILayout.ExpandWidth(false));
rect.x = (EditorGUIUtility.currentViewWidth - maxWidth) * 0.5f;
rect.width = maxWidth;
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB