af 兼容處理

This commit is contained in:
LYP
2024-08-07 17:00:55 +08:00
parent 4b0a85efea
commit 69fee08c61
7 changed files with 10 additions and 74 deletions

View File

@@ -31,7 +31,7 @@ dependencies {
implementation 'org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.41'
implementation 'androidx.core:core:1.8.0'
implementation 'com.appsflyer:af-android-sdk:6.12.5'
implementation 'com.appsflyer:af-android-sdk:6.14.2' //tuyou 讓使用6.12.5 版本 ,對接后發現 缺少了一些文件 所以使用6.14.2版本
implementation 'com.android.installreferrer:installreferrer:2.2'
implementation 'com.miui.referrer:homereferrer:1.0.0.6'

View File

@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dependencies>
<androidPackages>
<androidPackage spec="com.appsflyer:af-android-sdk:6.14.2">
</androidPackage>
<androidPackage spec="com.appsflyer:unity-wrapper:6.14.5">
</androidPackage>
<androidPackage spec="com.android.installreferrer:installreferrer:2.1">
</androidPackage>
</androidPackages>
<!-- <androidPackages>-->
<!-- <androidPackage spec="com.appsflyer:af-android-sdk:6.14.2">-->
<!-- </androidPackage>-->
<!-- <androidPackage spec="com.appsflyer:unity-wrapper:6.14.5">-->
<!-- </androidPackage>-->
<!-- <androidPackage spec="com.android.installreferrer:installreferrer:2.1">-->
<!-- </androidPackage>-->
<!-- </androidPackages>-->
<iosPods>
<iosPod name="AppsFlyerFramework" version="6.14.5" minTargetSdk="12.0">

View File

@@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: abbe912b9f917460995af0e66da301d0
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 6f38effdeaf92485b91158b901ad3755
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -39,7 +39,7 @@ namespace tysdk
public void Init()
{
//AppsFlyer.setIsDebug(true);
AppsFlyer.setIsDebug(true);
#if UNITY_IOS
AppsFlyer.initSDK("rSySeWtvKabfbPZE7Lmx7C","6505145935");
#elif UNITY_ANDROID