fix:1、更换项目,使用winter来创建

This commit is contained in:
2026-04-22 11:13:16 +08:00
parent 173cfb2dc9
commit 83ff9f71ad
7375 changed files with 209752 additions and 157557 deletions
+2 -2
View File
@@ -23,10 +23,10 @@
.vscode
Logs/*
AssetBundle/*
/build
build/
UserSettings/Layouts/*.dwlt
Assets/StreamingAssets.meta
**/.DS_Store
/Assets/SGModule
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 692a8563bf4ba9749905419c982657c8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,110 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 468a46d0ae32c3544b7d98094e6448a9, type: 3}
m_Name: AddressableAssetSettings
m_EditorClassIdentifier:
m_DefaultGroup: a45d0d25213104f44ad8fe07eb3548d1
m_currentHash:
serializedVersion: 2
Hash: 24f7d451677154961ad4235510acee73
m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0
m_BundleLocalCatalog: 0
m_CatalogRequestsTimeout: 0
m_DisableCatalogUpdateOnStart: 0
m_IgnoreUnsupportedFilesInBuild: 0
m_UniqueBundleIds: 0
m_NonRecursiveBuilding: 1
m_CCDEnabled: 0
m_maxConcurrentWebRequests: 3
m_ContiguousBundles: 1
m_StripUnityVersionFromBundleBuild: 0
m_DisableVisibleSubAssetRepresentations: 0
m_ShaderBundleNaming: 0
m_ShaderBundleCustomNaming:
m_MonoScriptBundleNaming: 0
m_CheckForContentUpdateRestrictionsOption: 0
m_MonoScriptBundleCustomNaming:
m_RemoteCatalogBuildPath:
m_Id:
m_RemoteCatalogLoadPath:
m_Id:
m_ContentStateBuildPathProfileVariableName:
m_CustomContentStateBuildPath:
m_ContentStateBuildPath:
m_BuildAddressablesWithPlayerBuild: 0
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
m_GroupAssets:
- {fileID: 11400000, guid: 902fafad9bba93345b7a8d95737094ff, type: 2}
- {fileID: 11400000, guid: 0835c4975fed7d14795ec925b54bca80, type: 2}
m_BuildSettings:
m_CompileScriptsInVirtualMode: 0
m_CleanupStreamingAssetsAfterBuilds: 1
m_LogResourceManagerExceptions: 1
m_BundleBuildPath: Temp/com.unity.addressables/AssetBundles
m_ProfileSettings:
m_Profiles:
- m_InheritedParent:
m_Id: 70f0db63e1b2ccc49a35826b26d42ffa
m_ProfileName: Default
m_Values:
- m_Id: 693c6cc232ba75944b76340184d8d5da
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
- m_Id: 6c2c4720f61c8134b9b4b2c9776cd752
m_Value: http://[PrivateIpAddress]:[HostingServicePort]
- m_Id: 6e2463dd44eb1f54cb6bd7d1ed217d78
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
- m_Id: 79ac92be39ae3b548acfff4d617e9f3d
m_Value: ServerData/[BuildTarget]
- m_Id: c213fc96596f0424b92d9b5da98dc49d
m_Value: '[UnityEditor.EditorUserBuildSettings.activeBuildTarget]'
m_ProfileEntryNames:
- m_Id: 693c6cc232ba75944b76340184d8d5da
m_Name: Local.LoadPath
m_InlineUsage: 0
- m_Id: 6c2c4720f61c8134b9b4b2c9776cd752
m_Name: Remote.LoadPath
m_InlineUsage: 0
- m_Id: 6e2463dd44eb1f54cb6bd7d1ed217d78
m_Name: Local.BuildPath
m_InlineUsage: 0
- m_Id: 79ac92be39ae3b548acfff4d617e9f3d
m_Name: Remote.BuildPath
m_InlineUsage: 0
- m_Id: c213fc96596f0424b92d9b5da98dc49d
m_Name: BuildTarget
m_InlineUsage: 0
m_ProfileVersion: 1
m_LabelTable:
m_LabelNames:
- default
- config
m_SchemaTemplates: []
m_GroupTemplateObjects:
- {fileID: 11400000, guid: e3717cb91779b3c42b0fa261a19e2089, type: 2}
m_InitializationObjects: []
m_CertificateHandlerType:
m_AssemblyName:
m_ClassName:
m_ActivePlayerDataBuilderIndex: 3
m_DataBuilders:
- {fileID: 11400000, guid: e3793cbe36022934c8e448ba864e7d23, type: 2}
- {fileID: 11400000, guid: c1b22d2e9c442004aa8ce9415342d39b, type: 2}
- {fileID: 11400000, guid: 09b58a3e361fb894bb05487b13037296, type: 2}
- {fileID: 11400000, guid: 451c87b652b66324b93ed04ca22c9f79, type: 2}
m_ActiveProfileId: 70f0db63e1b2ccc49a35826b26d42ffa
m_HostingServicesManager:
m_HostingServiceInfos: []
m_Settings: {fileID: 11400000}
m_NextInstanceId: 0
m_RegisteredServiceTypeRefs: []
m_PingTimeoutInMilliseconds: 5000
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e60983ba8459aa349988c3ecb65abf31
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 820198255c53d7944a20b1c68c5aa2c9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f800864c27698964ab1fae5a1384670e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0da0bb3855501354a9bc91673adc7b14
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1a3c5d64ac83548c09dd1678b9f6f1cd, type: 3}
m_Name: Packed Assets
m_EditorClassIdentifier:
m_SchemaObjects:
- {fileID: 5467363252551928993}
- {fileID: 56619259277380849}
m_Description: Pack assets into asset bundles.
m_Settings: {fileID: 11400000, guid: e60983ba8459aa349988c3ecb65abf31, type: 2}
--- !u!114 &56619259277380849
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
m_Name: ContentUpdateGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_StaticContent: 0
--- !u!114 &5467363252551928993
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
m_Name: BundledAssetGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_InternalBundleIdMode: 1
m_Compression: 1
m_IncludeAddressInCatalog: 1
m_IncludeGUIDInCatalog: 1
m_IncludeLabelsInCatalog: 1
m_InternalIdNamingMode: 0
m_CacheClearBehavior: 0
m_IncludeInBuild: 1
m_BundledAssetProviderType:
m_AssemblyName:
m_ClassName:
m_ForceUniqueProvider: 0
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1
m_RetryCount: 0
m_BuildPath:
m_Id:
m_LoadPath:
m_Id:
m_BundleMode: 0
m_AssetBundleProviderType:
m_AssemblyName:
m_ClassName:
m_BundleNaming: 0
m_AssetLoadMode: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e3717cb91779b3c42b0fa261a19e2089
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0177e9cd130f2644c94ff6f27591f32f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,23 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Built In Data
m_EditorClassIdentifier:
m_GroupName: Built In Data
m_Data:
m_SerializedData: []
m_GUID: cd4decefa4232884fa80ecdbff31c3a5
m_SerializeEntries: []
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: e60983ba8459aa349988c3ecb65abf31, type: 2}
m_SchemaSet:
m_Schemas: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0835c4975fed7d14795ec925b54bca80
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Default Local Group
m_EditorClassIdentifier:
m_GroupName: Default Local Group
m_Data:
m_SerializedData: []
m_GUID: a45d0d25213104f44ad8fe07eb3548d1
m_SerializeEntries:
- m_GUID: 2286bdb9423d4da48ba3b1bd8765173f
m_Address: Assets/Configs
m_ReadOnly: 0
m_SerializedLabels:
- config
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: e60983ba8459aa349988c3ecb65abf31, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: a6c2bb9206a787d40a5ddd394de13ea2, type: 2}
- {fileID: 11400000, guid: 38bec3dff28f2014194d6df27120ffe2, type: 2}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 902fafad9bba93345b7a8d95737094ff
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a65b9c2fafd9b444aa0ce2c532b4133d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,17 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b1487f5d688e4f94f828f879d599dbdc, type: 3}
m_Name: Built In Data_PlayerDataGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 11400000, guid: 0835c4975fed7d14795ec925b54bca80, type: 2}
m_IncludeResourcesFolders: 1
m_IncludeBuildSettingsScenes: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 20981212fe0549c4f8f7200e0ce3f519
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,45 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
m_Name: Default Local Group_BundledAssetGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_InternalBundleIdMode: 1
m_Compression: 1
m_IncludeAddressInCatalog: 1
m_IncludeGUIDInCatalog: 1
m_IncludeLabelsInCatalog: 1
m_InternalIdNamingMode: 0
m_CacheClearBehavior: 0
m_IncludeInBuild: 1
m_BundledAssetProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
m_ForceUniqueProvider: 0
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1
m_RetryCount: 0
m_BuildPath:
m_Id: 6e2463dd44eb1f54cb6bd7d1ed217d78
m_LoadPath:
m_Id: 693c6cc232ba75944b76340184d8d5da
m_BundleMode: 0
m_AssetBundleProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
m_BundleNaming: 0
m_AssetLoadMode: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a6c2bb9206a787d40a5ddd394de13ea2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,16 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
m_Name: Default Local Group_ContentUpdateGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_StaticContent: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 38bec3dff28f2014194d6df27120ffe2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 72553237eae78744ba2ff551ec768030
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,20 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 88d21199f5d473f4db36845f2318f180, type: 3}
m_Name: BuildScriptFastMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e3793cbe36022934c8e448ba864e7d23
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,20 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3e2e0ffa088c91d41a086d0b8cb16bdc, type: 3}
m_Name: BuildScriptPackedMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 451c87b652b66324b93ed04ca22c9f79
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,20 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ad8c280d42ee0ed41a27db23b43dd2bf, type: 3}
m_Name: BuildScriptPackedPlayMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 09b58a3e361fb894bb05487b13037296
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,20 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bb0e4994b34add1409fd8ccaf4a82de5, type: 3}
m_Name: BuildScriptVirtualMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c1b22d2e9c442004aa8ce9415342d39b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,15 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a189bb168d8d90478a09ea08c2f3d72, type: 3}
m_Name: DefaultObject
m_EditorClassIdentifier:
m_AddressableAssetSettingsGuid: e60983ba8459aa349988c3ecb65abf31
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5f9b9b19ab849a34f8c66956df64c186
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,34 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7e3976da977cb49238499ea3b4c237ae, type: 3}
m_Name: ProfileDataSourceSettings
m_EditorClassIdentifier:
profileGroupTypes:
- m_GroupTypePrefix: Built-In
m_Variables:
- m_Suffix: BuildPath
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
- m_Suffix: LoadPath
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
- m_GroupTypePrefix: Editor Hosted
m_Variables:
- m_Suffix: BuildPath
m_Value: ServerData/[BuildTarget]
- m_Suffix: LoadPath
m_Value: http://[PrivateIpAddress]:[HostingServicePort]
environments: []
currentEnvironment:
id:
projectId:
projectGenesisId:
name:
isDefault: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 59f7c3bb2d35146c88dfedf2004a8ae7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fed1a435d3956452d953a0a0118be7b1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 56a8814c396664b048814cc6d477d82d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+1 -1
View File
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7863556d88b814e09ba9cfc75a91d655
guid: 001fbaaa1144341c9b9782b9278e8671
folderAsset: yes
DefaultImporter:
externalObjects: {}
+1 -1
View File
@@ -6,7 +6,7 @@ namespace AppsFlyerSDK
{
public class AppsFlyer : MonoBehaviour
{
public static readonly string kAppsFlyerPluginVersion = "6.15.3";
public static readonly string kAppsFlyerPluginVersion = "6.16.21";
public static string CallBackObjectName = null;
private static EventHandler onRequestResponse;
private static EventHandler onInAppResponse;
+6 -1
View File
@@ -398,7 +398,12 @@ namespace AppsFlyerSDK
public void setConsentData(AppsFlyerConsent appsFlyerConsent)
{
#if !UNITY_EDITOR
appsFlyerAndroid.CallStatic("setConsentData", appsFlyerConsent.isUserSubjectToGDPR, appsFlyerConsent.hasConsentForDataUsage, appsFlyerConsent.hasConsentForAdsPersonalization);
string isUserSubjectToGDPR = appsFlyerConsent.isUserSubjectToGDPR?.ToString().ToLower() ?? "null";
string hasConsentForDataUsage = appsFlyerConsent.hasConsentForDataUsage?.ToString().ToLower() ?? "null";
string hasConsentForAdsPersonalization = appsFlyerConsent.hasConsentForAdsPersonalization?.ToString().ToLower() ?? "null";
string hasConsentForAdStorage = appsFlyerConsent.hasConsentForAdStorage?.ToString().ToLower() ?? "null";
appsFlyerAndroid.CallStatic("setConsentData", isUserSubjectToGDPR, hasConsentForDataUsage, hasConsentForAdsPersonalization, hasConsentForAdStorage);
#endif
}
+37 -17
View File
@@ -11,25 +11,44 @@ namespace AppsFlyerSDK
// under GDPR, their general consent to data usage, and their consent to personalized
// advertisements based on user data.
// Note that the consent for data usage and ads personalization pair is only applicable when the user is
// subject to GDPR guidelines. Therefore, the following factory methods should be used accordingly:
// - Use [forGDPRUser] when the user is subject to GDPR.
// - Use [forNonGDPRUser] when the user is not subject to GDPR.
// @property isUserSubjectToGDPR Indicates whether GDPR regulations apply to the user (true if the user is
// a subject of GDPR). It also serves as a flag for compliance with relevant aspects of DMA regulations.
// @property hasConsentForDataUsage Indicates whether the user has consented to the use of their data for advertising
// purposes under both GDPR and DMA guidelines (true if the user has consented, nullable if not subject to GDPR).
// @property hasConsentForAdsPersonalization Indicates whether the user has consented to the use of their data for
// personalized advertising within the boundaries of GDPR and DMA rules (true if the user has consented to
// personalized ads, nullable if not subject to GDPR).
/// ## Properties:
/// - `isUserSubjectToGDPR` (optional) - Indicates whether GDPR regulations apply to the user.
/// This may also serve as a general compliance flag for other regional regulations.
/// - `hasConsentForDataUsage` (optional) - Indicates whether the user consents to the processing
/// of their data for advertising purposes.
/// - `hasConsentForAdsPersonalization` (optional) - Indicates whether the user consents to the
/// use of their data for personalized advertising.
/// - `hasConsentForAdStorage` (optional) - Indicates whether the user consents to ad-related storage access.
///
/// **Usage Example:**
/// ```csharp
/// var consent = new AppsFlyerConsent(
/// isUserSubjectToGDPR: true,
/// hasConsentForDataUsage: true,
/// hasConsentForAdsPersonalization: false,
/// hasConsentForAdStorage: true
/// );
/// **Deprecated APIs:**
/// - `ForGDPRUser(...)` and `ForNonGDPRUser(...)` should no longer be used.
/// - Use `new AppsFlyerConsent(...)` instead with relevant consent fields.
///
/// </summary>
public class AppsFlyerConsent
{
public bool isUserSubjectToGDPR { get; private set; }
public bool hasConsentForDataUsage { get; private set; }
public bool hasConsentForAdsPersonalization { get; private set; }
public bool? isUserSubjectToGDPR { get; private set; }
public bool? hasConsentForDataUsage { get; private set; }
public bool? hasConsentForAdsPersonalization { get; private set; }
public bool? hasConsentForAdStorage { get; private set; }
public AppsFlyerConsent( bool? isUserSubjectToGDPR = null, bool? hasConsentForDataUsage = null, bool? hasConsentForAdsPersonalization = null, bool? hasConsentForAdStorage = null)
{
this.isUserSubjectToGDPR = isUserSubjectToGDPR;
this.hasConsentForDataUsage = hasConsentForDataUsage;
this.hasConsentForAdsPersonalization = hasConsentForAdsPersonalization;
this.hasConsentForAdStorage = hasConsentForAdStorage;
}
[Obsolete("Use the new constructor with optional booleans instead.")]
private AppsFlyerConsent(bool isGDPR, bool hasForDataUsage, bool hasForAdsPersonalization)
{
isUserSubjectToGDPR = isGDPR;
@@ -37,15 +56,16 @@ namespace AppsFlyerSDK
hasConsentForAdsPersonalization = hasForAdsPersonalization;
}
[Obsolete("Use new AppsFlyerConsent(...) instead.")]
public static AppsFlyerConsent ForGDPRUser(bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization)
{
return new AppsFlyerConsent(true, hasConsentForDataUsage, hasConsentForAdsPersonalization);
}
[Obsolete("Use new AppsFlyerConsent(...) instead.")]
public static AppsFlyerConsent ForNonGDPRUser()
{
return new AppsFlyerConsent(false, false, false);
return new AppsFlyerConsent(false);
}
}
}
+7 -2
View File
@@ -215,7 +215,12 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
public void setConsentData(AppsFlyerConsent appsFlyerConsent)
{
#if !UNITY_EDITOR
_setConsentData(appsFlyerConsent.isUserSubjectToGDPR, appsFlyerConsent.hasConsentForDataUsage, appsFlyerConsent.hasConsentForAdsPersonalization);
string isUserSubjectToGDPR = appsFlyerConsent.isUserSubjectToGDPR?.ToString().ToLower() ?? "null";
string hasConsentForDataUsage = appsFlyerConsent.hasConsentForDataUsage?.ToString().ToLower() ?? "null";
string hasConsentForAdsPersonalization = appsFlyerConsent.hasConsentForAdsPersonalization?.ToString().ToLower() ?? "null";
string hasConsentForAdStorage = appsFlyerConsent.hasConsentForAdStorage?.ToString().ToLower() ?? "null";
_setConsentData(isUserSubjectToGDPR, hasConsentForDataUsage, hasConsentForAdsPersonalization, hasConsentForAdStorage);
#endif
}
@@ -760,7 +765,7 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
#elif UNITY_STANDALONE_OSX
[DllImport("AppsFlyerBundle")]
#endif
private static extern void _setConsentData(bool isUserSubjectToGDPR, bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization);
private static extern void _setConsentData(string isUserSubjectToGDPR, string hasConsentForDataUsage, string hasConsentForAdsPersonalization, string hasConsentForAdStorage);
#if UNITY_IOS
[DllImport("__Internal")]
@@ -2,16 +2,16 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.appsflyer:af-android-sdk:6.15.0">
<androidPackage spec="com.appsflyer:af-android-sdk:6.16.2">
</androidPackage>
<androidPackage spec="com.appsflyer:unity-wrapper:6.15.3">
<androidPackage spec="com.appsflyer:unity-wrapper:6.16.21">
</androidPackage>
<androidPackage spec="com.android.installreferrer:installreferrer:2.1">
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="AppsFlyerFramework" version="6.15.2" minTargetSdk="12.0">
<iosPod name="AppsFlyerFramework" version="6.16.2" minTargetSdk="12.0">
</iosPod>
</iosPods>
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 96a328019e42349aabc478b546b8605e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 682114f7790724ab3b9410e89bbc076c
folderAsset: yes
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 28175da64865f4e398b3b9ddfbe97b24
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>AppsFlyerBundle</string>
<key>CFBundleIdentifier</key>
<string>com.appsflyer.support.two.AppsFlyerBundle</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AppsFlyerBundle</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>13A1030d</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>12.0</string>
<key>DTSDKBuild</key>
<string>21A344</string>
<key>DTSDKName</key>
<string>macosx12.0</string>
<key>DTXcode</key>
<string>1310</string>
<key>DTXcodeBuild</key>
<string>13A1030d</string>
<key>LSMinimumSystemVersion</key>
<string>11.6</string>
<key>NSHumanReadableCopyright</key>
<string></string>
</dict>
</plist>
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 58a86b0b376564c06bf8ce29e1dbfb04
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 218a2e7ff5a4c461981bc41f7d7bfeba
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 0889edee891d84a8eb0b7cc87071b91e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 16068f30788004029bd487756623799b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,115 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 724b52b308e9a4a6d889d7bf3945a2ca
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -18,6 +18,7 @@ static char* getCString(const char* string);
static AppsFlyerLinkGenerator* generatorFromDictionary(NSDictionary* dictionary, AppsFlyerLinkGenerator* generator);
static EmailCryptType emailCryptTypeFromInt(int emailCryptTypeInt);
static AppsFlyerAdRevenueMediationNetworkType mediationNetworkTypeFromInt(int mediationNetwork);
static NSNumber *intFromNullableBool(const char *cStr);
static NSString* stringFromDeepLinkResultStatus(AFSDKDeepLinkResultStatus deepLinkResult);
static NSString* stringFromDeepLinkResultError(AppsFlyerDeepLinkResult *result);
@@ -108,6 +108,18 @@ static EmailCryptType emailCryptTypeFromInt(int emailCryptTypeInt){
return emailCryptType;
}
static NSNumber *intFromNullableBool(const char *cStr) {
if (!cStr) return nil;
NSString *str = [NSString stringWithUTF8String:cStr];
if ([str caseInsensitiveCompare:@"true"] == NSOrderedSame) {
return @YES;
} else if ([str caseInsensitiveCompare:@"false"] == NSOrderedSame) {
return @NO;
}
return nil;
}
static AppsFlyerAdRevenueMediationNetworkType mediationNetworkTypeFromInt(int mediationNetworkInt){
AppsFlyerAdRevenueMediationNetworkType mediationNetworkType;
@@ -10,8 +10,10 @@
#import "AppsFlyerAttribution.h"
#if __has_include(<AppsFlyerLib/AppsFlyerLib.h>)
#import <AppsFlyerLib/AppsFlyerLib.h>
#import "AppsFlyerLib/AppsFlyerLib-Swift.h"
#else
#import "AppsFlyerLib.h"
#import "AppsFlyerLib-Swift.h"
#endif
@interface AppsFlyeriOSWarpper : NSObject <AppsFlyerLibDelegate, AppsFlyerDeepLinkDelegate>
@@ -18,7 +18,7 @@ extern "C" {
const void _startSDK(bool shouldCallback, const char* objectName) {
[[AppsFlyerLib shared] setPluginInfoWith: AFSDKPluginUnity
pluginVersion:@"6.15.3"
pluginVersion:@"6.16.21"
additionalParams:nil];
startRequestObjectName = stringFromChar(objectName);
AppsFlyeriOSWarpper.didCallStart = YES;
@@ -87,13 +87,18 @@ extern "C" {
[[AppsFlyerLib shared] enableTCFDataCollection:shouldCollectTcfData];
}
const void _setConsentData(bool isUserSubjectToGDPR, bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization) {
AppsFlyerConsent *consentData = nil;
if (isUserSubjectToGDPR) {
consentData = [[AppsFlyerConsent alloc] initForGDPRUserWithHasConsentForDataUsage:hasConsentForDataUsage hasConsentForAdsPersonalization:hasConsentForAdsPersonalization];
} else {
consentData = [[AppsFlyerConsent alloc] initNonGDPRUser];
}
const void _setConsentData(const char* isUserSubjectToGDPR, const char* hasConsentForDataUsage, const char* hasConsentForAdsPersonalization, const char* hasConsentForAdStorage) {
NSNumber *gdpr = intFromNullableBool(isUserSubjectToGDPR);
NSNumber *dataUsage = intFromNullableBool(hasConsentForDataUsage);
NSNumber *adsPersonalization = intFromNullableBool(hasConsentForAdsPersonalization);
NSNumber *adStorage = intFromNullableBool(hasConsentForAdStorage);
AppsFlyerConsent *consentData = [[AppsFlyerConsent alloc] initWithIsUserSubjectToGDPR:gdpr
hasConsentForDataUsage:dataUsage
hasConsentForAdsPersonalization:adsPersonalization
hasConsentForAdStorage:adStorage];
[[AppsFlyerLib shared] setConsentData:consentData];
}
Binary file not shown.
@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 7b5b4579db85b4cfd8395bfb19aa309e
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 642cf65ed2573419bab7e7d44fc73181
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 3a5ccbd864ba94a9a9ba47895ff14922
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: ee45ae2608f3c44d08fc6e21a94d133f
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
-24
View File
@@ -1,24 +0,0 @@
{
"name": "Tests",
"references": [
"UnityEngine.TestRunner",
"UnityEditor.TestRunner",
"AppsFlyer"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll",
"NSubstitute.dll",
"Castle.Core.dll",
"System.Threading.Tasks.Extensions.dll"
],
"autoReferenced": false,
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"versionDefines": [],
"noEngineReferences": false
}
-7
View File
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 1f155a0e4c9ab48eeb4b54b2dc0aeba7
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
-810
View File
@@ -1,810 +0,0 @@
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using NSubstitute;
namespace AppsFlyerSDK.Tests
{
public class NewTestScript
{
[Test]
public void test_startSDK_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.startSDK();
AppsFlyerMOCKInterface.Received().startSDK(Arg.Any<bool>(), Arg.Any<string>());
}
[Test]
public void test_sendEvent_withValues()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
var eventParams = new Dictionary<string, string>();
eventParams.Add("key", "value");
AppsFlyer.sendEvent("testevent", eventParams);
AppsFlyerMOCKInterface.Received().sendEvent("testevent", eventParams, false, null);
}
[Test]
public void test_sendEvent_withNullParams()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.sendEvent("testevent", null);
AppsFlyerMOCKInterface.Received().sendEvent("testevent", null,false, null);
}
[Test]
public void test_isSDKStopped_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.stopSDK(true);
AppsFlyerMOCKInterface.Received().stopSDK(true);
}
[Test]
public void test_isSDKStopped_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.stopSDK(false);
AppsFlyerMOCKInterface.Received().stopSDK(false);
}
[Test]
public void test_isSDKStopped_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
var isSDKStopped = AppsFlyer.isSDKStopped();
AppsFlyerMOCKInterface.Received().isSDKStopped();
}
[Test]
public void test_isSDKStopped_receveivedFalse()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
var isSDKStopped = AppsFlyer.isSDKStopped();
Assert.AreEqual(AppsFlyerMOCKInterface.Received().isSDKStopped(), false);
}
[Test]
public void test_getSdkVersion_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.getSdkVersion();
AppsFlyerMOCKInterface.Received().getSdkVersion();
}
[Test]
public void test_setCustomerUserId_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCustomerUserId("test");
AppsFlyerMOCKInterface.Received().setCustomerUserId("test");
}
[Test]
public void Test_setAppInviteOneLinkID_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setAppInviteOneLinkID("2f36");
AppsFlyerMOCKInterface.Received().setAppInviteOneLinkID("2f36");
}
[Test]
public void Test_setAdditionalData_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
var customData = new Dictionary<string, string>();
customData.Add("test", "test");
AppsFlyer.setAdditionalData(customData);
AppsFlyerMOCKInterface.Received().setAdditionalData(customData);
}
[Test]
public void Test_setResolveDeepLinkURLs_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setResolveDeepLinkURLs("url1", "url2");
AppsFlyerMOCKInterface.Received().setResolveDeepLinkURLs("url1", "url2");
}
[Test]
public void Test_setOneLinkCustomDomain_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setOneLinkCustomDomain("url1", "url2");
AppsFlyerMOCKInterface.Received().setOneLinkCustomDomain("url1", "url2");
}
[Test]
public void Test_setCurrencyCode_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCurrencyCode("usd");
AppsFlyerMOCKInterface.Received().setCurrencyCode("usd");
}
[Test]
public void Test_recordLocation_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.recordLocation(0.3, 5.2);
AppsFlyerMOCKInterface.Received().recordLocation(0.3, 5.2);
}
[Test]
public void Test_anonymizeUser_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.anonymizeUser(true);
AppsFlyerMOCKInterface.Received().anonymizeUser(true);
}
[Test]
public void Test_anonymizeUser_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.anonymizeUser(false);
AppsFlyerMOCKInterface.Received().anonymizeUser(false);
}
[Test]
public void Test_getAppsFlyerId_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.getAppsFlyerId();
AppsFlyerMOCKInterface.Received().getAppsFlyerId();
}
[Test]
public void Test_setMinTimeBetweenSessions_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setMinTimeBetweenSessions(3);
AppsFlyerMOCKInterface.Received().setMinTimeBetweenSessions(3);
}
[Test]
public void Test_setHost_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setHost("prefix", "name");
AppsFlyerMOCKInterface.Received().setHost("prefix", "name");
}
[Test]
public void Test_setPhoneNumber_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setPhoneNumber("002");
AppsFlyerMOCKInterface.Received().setPhoneNumber("002");
}
[Test]
[System.Obsolete]
public void Test_setSharingFilterForAllPartners_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setSharingFilterForAllPartners();
AppsFlyerMOCKInterface.Received().setSharingFilterForAllPartners();
}
[Test]
[System.Obsolete]
public void Test_setSharingFilter_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setSharingFilter("filter1", "filter2");
AppsFlyerMOCKInterface.Received().setSharingFilter("filter1", "filter2");
}
[Test]
public void Test_getConversionData_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.getConversionData("ObjectName");
AppsFlyerMOCKInterface.Received().getConversionData("ObjectName");
}
[Test]
public void Test_attributeAndOpenStore_called_withParams()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("af_sub1", "val");
parameters.Add("custom_param", "val2");
AppsFlyer.attributeAndOpenStore("appid", "campaign", parameters, new MonoBehaviour());
AppsFlyerMOCKInterface.Received().attributeAndOpenStore("appid", "campaign", parameters, Arg.Any<MonoBehaviour>());
}
[Test]
public void Test_attributeAndOpenStore_called_nullParams()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.attributeAndOpenStore("appid", "campaign", null, new MonoBehaviour());
AppsFlyerMOCKInterface.Received().attributeAndOpenStore("appid", "campaign", null, Arg.Any<MonoBehaviour>());
}
[Test]
public void Test_recordCrossPromoteImpression_calledWithParameters()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("af_sub1", "val");
parameters.Add("custom_param", "val2");
AppsFlyer.recordCrossPromoteImpression("appid", "campaign", parameters);
AppsFlyerMOCKInterface.Received().recordCrossPromoteImpression("appid", "campaign", parameters);
}
[Test]
public void Test_recordCrossPromoteImpression_calledWithoutParameters()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.recordCrossPromoteImpression("appid", "campaign", null);
AppsFlyerMOCKInterface.Received().recordCrossPromoteImpression("appid", "campaign", null);
}
[Test]
public void Test_generateUserInviteLink_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.generateUserInviteLink(new Dictionary<string, string>(), new MonoBehaviour());
AppsFlyerMOCKInterface.Received().generateUserInviteLink(Arg.Any<Dictionary<string, string>>(), Arg.Any<MonoBehaviour>());
}
[Test]
public void Test_addPushNotificationDeepLinkPath_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerNativeBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.addPushNotificationDeepLinkPath("path1", "path2");
AppsFlyerMOCKInterface.Received().addPushNotificationDeepLinkPath("path1", "path2");
}
#if UNITY_ANDROID
[Test]
public void updateServerUninstallToken_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.updateServerUninstallToken("tokenTest");
AppsFlyerMOCKInterface.Received().updateServerUninstallToken("tokenTest");
}
[Test]
public void setImeiData_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setImeiData("imei");
AppsFlyerMOCKInterface.Received().setImeiData("imei");
}
[Test]
public void setAndroidIdData_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setAndroidIdData("androidId");
AppsFlyerMOCKInterface.Received().setAndroidIdData("androidId");
}
[Test]
public void waitForCustomerUserId_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.waitForCustomerUserId(true);
AppsFlyerMOCKInterface.Received().waitForCustomerUserId(true);
}
[Test]
public void setCustomerIdAndStartSDK_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCustomerIdAndStartSDK("01234");
AppsFlyerMOCKInterface.Received().setCustomerIdAndStartSDK("01234");
}
[Test]
public void getOutOfStore_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.getOutOfStore();
AppsFlyerMOCKInterface.Received().getOutOfStore();
}
[Test]
public void setOutOfStore_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setOutOfStore("test");
AppsFlyerMOCKInterface.Received().setOutOfStore("test");
}
[Test]
public void setCollectAndroidID_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCollectAndroidID(true);
AppsFlyerMOCKInterface.Received().setCollectAndroidID(true);
}
[Test]
public void setCollectIMEI_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCollectIMEI(true);
AppsFlyerMOCKInterface.Received().setCollectIMEI(true);
}
[Test]
public void setIsUpdate_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setIsUpdate(true);
AppsFlyerMOCKInterface.Received().setIsUpdate(true);
}
[Test]
public void setPreinstallAttribution_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setPreinstallAttribution("mediaSourceTestt", "campaign", "sideId");
AppsFlyerMOCKInterface.Received().setPreinstallAttribution("mediaSourceTestt", "campaign", "sideId");
}
[Test]
public void isPreInstalledApp_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.isPreInstalledApp();
AppsFlyerMOCKInterface.Received().isPreInstalledApp();
}
[Test]
public void getAttributionId_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.getAttributionId();
AppsFlyerMOCKInterface.Received().getAttributionId();
}
[Test]
public void handlePushNotifications_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.handlePushNotifications();
AppsFlyerMOCKInterface.Received().handlePushNotifications();
}
[Test]
public void validateAndSendInAppPurchase_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.validateAndSendInAppPurchase("ewjkekwjekw","hewjehwj", "purchaseData", "3.0", "USD", null, null);
AppsFlyerMOCKInterface.Received().validateAndSendInAppPurchase("ewjkekwjekw", "hewjehwj", "purchaseData", "3.0", "USD", null, null);
}
[Test]
public void setCollectOaid_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCollectOaid(true);
AppsFlyerMOCKInterface.Received().setCollectOaid(true);
}
[Test]
public void setDisableAdvertisingIdentifiers_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setDisableAdvertisingIdentifiers(true);
AppsFlyerMOCKInterface.Received().setDisableAdvertisingIdentifiers(true);
}
[Test]
public void setDisableNetworkData_called() {
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setDisableNetworkData(true);
AppsFlyerMOCKInterface.Received().setDisableNetworkData(true);
}
#elif UNITY_IOS
[Test]
public void setDisableCollectAppleAdSupport_called_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setDisableCollectAppleAdSupport(true);
AppsFlyerMOCKInterface.Received().setDisableCollectAppleAdSupport(true);
}
[Test]
public void setDisableCollectAppleAdSupport_called_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setDisableCollectAppleAdSupport(false);
AppsFlyerMOCKInterface.Received().setDisableCollectAppleAdSupport(false);
}
[Test]
[System.Obsolete]
public void setShouldCollectDeviceName_called_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setShouldCollectDeviceName(true);
AppsFlyerMOCKInterface.Received().setShouldCollectDeviceName(true);
}
[Test]
[System.Obsolete]
public void setShouldCollectDeviceName_called_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setShouldCollectDeviceName(false);
AppsFlyerMOCKInterface.Received().setShouldCollectDeviceName(false);
}
[Test]
public void setDisableCollectIAd_called_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setDisableCollectIAd(true);
AppsFlyerMOCKInterface.Received().setDisableCollectIAd(true);
}
[Test]
public void setDisableCollectIAd_called_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setDisableCollectIAd(false);
AppsFlyerMOCKInterface.Received().setDisableCollectIAd(false);
}
[Test]
public void setUseReceiptValidationSandbox_called_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setUseReceiptValidationSandbox(true);
AppsFlyerMOCKInterface.Received().setUseReceiptValidationSandbox(true);
}
[Test]
public void setUseReceiptValidationSandbox_called_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setUseReceiptValidationSandbox(false);
AppsFlyerMOCKInterface.Received().setUseReceiptValidationSandbox(false);
}
[Test]
public void ssetUseUninstallSandbox_called_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setUseUninstallSandbox(true);
AppsFlyerMOCKInterface.Received().setUseUninstallSandbox(true);
}
[Test]
public void setUseUninstallSandbox_called_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setUseUninstallSandbox(false);
AppsFlyerMOCKInterface.Received().setUseUninstallSandbox(false);
}
[Test]
public void validateAndSendInAppPurchase_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.validateAndSendInAppPurchase("3d2", "5.0","USD", "45", null, null);
AppsFlyerMOCKInterface.Received().validateAndSendInAppPurchase("3d2", "5.0", "USD", "45", null, null);
}
[Test]
public void registerUninstall_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
byte[] token = System.Text.Encoding.UTF8.GetBytes("740f4707 bebcf74f 9b7c25d4 8e335894 5f6aa01d a5ddb387 462c7eaf 61bb78ad");
AppsFlyer.registerUninstall(token);
AppsFlyerMOCKInterface.Received().registerUninstall(token);
}
[Test]
public void handleOpenUrl_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.handleOpenUrl("www.test.com", "appTest", "test");
AppsFlyerMOCKInterface.Received().handleOpenUrl("www.test.com", "appTest", "test");
}
[Test]
public void waitForATTUserAuthorizationWithTimeoutInterval_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.waitForATTUserAuthorizationWithTimeoutInterval(30);
AppsFlyerMOCKInterface.Received().waitForATTUserAuthorizationWithTimeoutInterval(30);
}
[Test]
public void setCurrentDeviceLanguage_called()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.setCurrentDeviceLanguage("en");
AppsFlyerMOCKInterface.Received().setCurrentDeviceLanguage("en");
}
[Test]
public void disableSKAdNetwork_called_true()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.disableSKAdNetwork(true);
AppsFlyerMOCKInterface.Received().disableSKAdNetwork(true);
}
[Test]
public void disableSKAdNetwork_called_false()
{
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerIOSBridge>();
AppsFlyer.instance = AppsFlyerMOCKInterface;
AppsFlyer.disableSKAdNetwork(false);
AppsFlyerMOCKInterface.Received().disableSKAdNetwork(false);
}
#endif
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 1b1a24aa01166451d804d7c03c14a3db
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "appsflyer-unity-plugin",
"displayName": "AppsFlyer",
"description": "AppsFlyer Unity plugin",
"version": "6.15.2",
"version": "6.16.2",
"unity": "2019.4",
"license": "MIT"
}
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2286bdb9423d4da48ba3b1bd8765173f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7ba7c6a75110f483683dc4885aee0758
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+1 -1
View File
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6274abff0e80f41ba968cf160634648f
guid: 47687e2a037fd460ba47c2a7156e77cb
folderAsset: yes
DefaultImporter:
externalObjects: {}
+1 -1
View File
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bbb5c1126efa04ade832ec3b209194eb
guid: 9b89719cc167645fd8629ebf87e3aee8
folderAsset: yes
DefaultImporter:
externalObjects: {}
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 77f09bffdfcf77a4ba54ffdda8d6f67f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,6 +0,0 @@
namespace FlowerPower
{
public class InviteData
{
}
}
@@ -1,86 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class MakeupTaskData
{
public int tableId;
public int id;
public string amountStr;
public decimal amount;
public long makeupTime;
public int videoCount;
public int LvVideoCount;
public int inlineInitNum;
public int inlineNum;
public string orderID;
public MakeupTaskStatus status;
public long order_time = 0;
public int WatchVideoSpeedNum = 0;
public int loginSpeedNum = 0;
public int activeMinute = 0;
public int activeSpeedNum = 0;
public long ch_time;
public string ExchangeAccount;
public string ExchangeName;
public string short_name;
public string long_name;
public List<makeupRdData> rdData;
public makeupRdData lastRdData;
public void SetStatus(MakeupTaskStatus _status)
{
status = _status;
}
public string GetAmountStr()
{
if (amount <= 0)
{
return amountStr;
}
else
{
return GameHelper.Get101Str(amount);
}
}
}
public enum MakeupTaskStatus
{
None,
AccumulatedCh,
Task,
Level,
Inline,
editAccount,
ticket,
code,
}
public class makeupRdData
{
public int coupon_mount;
public string code;
public bool isClaimed;
}
}
-49
View File
@@ -1,49 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
// public class
public class UserData
{
public long uid;
public string name;
public int headId;
public int points;
public float bonus;
public int[][] add_points_time; // 每个时间段获得的积分时间
public int[][] remaining_time; // 每个时间段剩余的时间
public int hourPoints;
public int dayPoints;
public int weekPoints;
public int lastHourPoints;
public int lastDayPoints;
public int lastWeekPoints;
public Dictionary<long, addPointsData> addPointsDic = new Dictionary<long, addPointsData>();
}
public class RankRewardData
{
public int rank;
public rankType type;
public float bonus;
public string time;
}
public class addPointsData
{
public int points;
public addPointType type;
}
public enum rankType {
hour = 1,
day = 2,
week = 3
}
public enum addPointType {
eliminate = 1,
ads = 2,
buy = 3,
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 828b91f2bf11a664f8552d71261b0dc8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,146 +0,0 @@
namespace FlowerPower
{
public static partial class UICtrlMsg
{
private static uint cursor_OpenClose = 130000;
public static uint GameLoginUI_Close = ++cursor_OpenClose;
public static uint MakeupRecordUI_Open = ++cursor_OpenClose;
public static uint MainTabUI_Open = ++cursor_OpenClose;
public static uint MainTabUI_Close = ++cursor_OpenClose;
public static uint MakeupRecordUI_Close = ++cursor_OpenClose;
public static uint FirstRewardUI_Open = ++cursor_OpenClose;
public static uint FirstRewardUI_Close = ++cursor_OpenClose;
public static uint RateUsDialogUI_Open = ++cursor_OpenClose;
public static uint RateUsDialogUI_Close = ++cursor_OpenClose;
public static uint OpenBgUI_Open = ++cursor_OpenClose;
public static uint OpenBgUI_Close = ++cursor_OpenClose;
public static uint FXWndUI_Open = ++cursor_OpenClose;
public static uint FXWndUI_Close = ++cursor_OpenClose;
public static uint RewardAniUI_Open = ++cursor_OpenClose;
public static uint RewardAniUI_Close = ++cursor_OpenClose;
public static uint NetLoadingUI_Open = ++cursor_OpenClose;
public static uint NetLoadingUI_Close = ++cursor_OpenClose;
public static uint SCTipsUI_Open = ++cursor_OpenClose;
public static uint SCTipsUI_Close = ++cursor_OpenClose;
public static uint GameLoginUI_Open = ++cursor_OpenClose;
public static uint RewardboxUI_Open = ++cursor_OpenClose;
public static uint RewardboxUI_Close = ++cursor_OpenClose;
public static uint RewardUI_Open = ++cursor_OpenClose;
public static uint RewardUI_Close = ++cursor_OpenClose;
public static uint NewTaskUI_Open = ++cursor_OpenClose;
public static uint MenuUI_Open = ++cursor_OpenClose;
public static uint MenuUI_Close = ++cursor_OpenClose;
public static uint PlayUI_Close = ++cursor_OpenClose;
public static uint NewTaskUI_Close = ++cursor_OpenClose;
public static uint PrivacyUI_Open = ++cursor_OpenClose;
public static uint PrivacyUI_Close = ++cursor_OpenClose;
public static uint PlayUIFX = ++cursor_OpenClose;
public static uint RainPlayUI_Open = ++cursor_OpenClose;
public static uint RainPlayUI_Close = ++cursor_OpenClose;
public static uint OpenGameUI_Open = ++cursor_OpenClose;
public static uint OpenGameUI_Close = ++cursor_OpenClose;
public static uint RegulationUI_Open = ++cursor_OpenClose;
public static uint RegulationUI_Close = ++cursor_OpenClose;
public static uint CoinWnd_newUI_Open = ++cursor_OpenClose;
public static uint CoinWnd_newUI_Close = ++cursor_OpenClose;
public static uint SheepwindowUI_Open = ++cursor_OpenClose;
public static uint SheepwindowUI_Close = ++cursor_OpenClose;
public static uint BuyslotUI_Open = ++cursor_OpenClose;
public static uint BuyslotUI_Close = ++cursor_OpenClose;
public static uint BuygoldUI_Open = ++cursor_OpenClose;
public static uint BuygoldUI_Close = ++cursor_OpenClose;
public static uint BuyConfirmUI_Open = ++cursor_OpenClose;
public static uint BuyConfirmUI_Close = ++cursor_OpenClose;
public static uint LevelSuccessUI_Open = ++cursor_OpenClose;
public static uint LevelSuccessUI_Close = ++cursor_OpenClose;
public static uint ChoosePropUI_Open = ++cursor_OpenClose;
public static uint ChoosePropUI_Close = ++cursor_OpenClose;
public static uint AdcomingUI_Open = ++cursor_OpenClose;
public static uint AdcomingUI_Close = ++cursor_OpenClose;
public static uint PassunlockUI_Open = ++cursor_OpenClose;
public static uint PassunlockUI_Close = ++cursor_OpenClose;
public static uint GetTaskRewardUI_Open = ++cursor_OpenClose;
public static uint GetTaskRewardUI_Close = ++cursor_OpenClose;
public static uint PayloadingUI_Open = ++cursor_OpenClose;
public static uint PayloadingUI_Close = ++cursor_OpenClose;
public static uint BackgroundUI_Open = ++cursor_OpenClose;
public static uint BackgroundUI_Close = ++cursor_OpenClose;
public static uint MainUI_Open = ++cursor_OpenClose;
public static uint MainUI_Close = ++cursor_OpenClose;
public static uint PlayBgUI_Close = ++cursor_OpenClose;
public static uint SignInUI_Open = ++cursor_OpenClose;
public static uint SignInUI_Close = ++cursor_OpenClose;
public static uint SuperSpeedUI_Open = ++cursor_OpenClose;
public static uint SuperSpeedUI_Close = ++cursor_OpenClose;
public static uint MailUI_Open = ++cursor_OpenClose;
public static uint MailUI_Close = ++cursor_OpenClose;
public static uint WheelUI_Open = ++cursor_OpenClose;
public static uint WheelUI_Close = ++cursor_OpenClose;
public static uint PassViewUI_Open = ++cursor_OpenClose;
public static uint PassViewUI_Close = ++cursor_OpenClose;
public static uint FacePhotoViewUI_Open = ++cursor_OpenClose;
public static uint FacePhotoViewUI_Close = ++cursor_OpenClose;
public static uint MakeupConfirmUI_Close = ++cursor_OpenClose;
public static uint MakeupConfirmUI_Open = ++cursor_OpenClose;
public static uint H5UI_Open = ++cursor_OpenClose;
public static uint H5UI_Close = ++cursor_OpenClose;
public static uint PackrewardUI_Open = ++cursor_OpenClose;
public static uint PackrewardUI_Close = ++cursor_OpenClose;
public static uint GameMenuUI_Open = ++cursor_OpenClose;
public static uint GameMenuUI_Close = ++cursor_OpenClose;
public static uint PixPayUI_Open = ++cursor_OpenClose;
public static uint PixPayUI_Close = ++cursor_OpenClose;
public static uint PersonViewUI_Open = ++cursor_OpenClose;
public static uint PersonViewUI_Close = ++cursor_OpenClose;
public static uint GuideViewUI_Open = ++cursor_OpenClose;
public static uint GuideViewUI_Close = ++cursor_OpenClose;
public static uint TipsViewUI_Open = ++cursor_OpenClose;
public static uint TipsViewUI_Close = ++cursor_OpenClose;
public static uint ResurgenceUI_Open = ++cursor_OpenClose;
public static uint ResurgenceUI_Close = ++cursor_OpenClose;
public static uint SaveingPotUI_Open = ++cursor_OpenClose;
public static uint SaveingPotUI_Close = ++cursor_OpenClose;
public static uint BroadcastUI_Open = ++cursor_OpenClose;
public static uint BroadcastUI_Close = ++cursor_OpenClose;
public static uint RecordViewUI_Open = ++cursor_OpenClose;
public static uint RecordViewUI_Close = ++cursor_OpenClose;
public static uint ThreeDaysGiftUI_Open = ++cursor_OpenClose;
public static uint ThreeDaysGiftUI_Close = ++cursor_OpenClose;
public static uint RewardMulNewUI_Open = ++cursor_OpenClose;
public static uint RewardMulNewUI_Close = ++cursor_OpenClose;
public static uint TujianUI_Open = ++cursor_OpenClose;
public static uint TujianUI_Close = ++cursor_OpenClose;
public static uint FAQUI_Open = ++cursor_OpenClose;
public static uint FAQUI_Close = ++cursor_OpenClose;
public static uint AddViewoffUI_Open = ++cursor_OpenClose;
public static uint AddViewoffUI_Close = ++cursor_OpenClose;
public static uint RankRewardUI_Open = ++cursor_OpenClose;
public static uint RankRewardUI_Close = ++cursor_OpenClose;
public static uint RankUI_Open = ++cursor_OpenClose;
public static uint RankUI_Close = ++cursor_OpenClose;
public static uint RankRuleUI_Open = ++cursor_OpenClose;
public static uint RankRuleUI_Close = ++cursor_OpenClose;
public static uint AddviewnewUI_Open = ++cursor_OpenClose;
public static uint AddviewnewUI_Close = ++cursor_OpenClose;
public static uint GoldRewardUI_Open = ++cursor_OpenClose;
public static uint GoldRewardUI_Close = ++cursor_OpenClose;
public static uint LoginloadingUI_Open = ++cursor_OpenClose;
public static uint LoginloadingUI_Close = ++cursor_OpenClose;
public static uint PettyAwardUI_Open = ++cursor_OpenClose;
public static uint PettyAwardUI_Close = ++cursor_OpenClose;
}
}
@@ -1,18 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class ADTaskModel
{
public List<ADTask> dataList;
}
public class ADTask
{
public int id;
public string text_read;
public int tol_num;
public int reward_num;
public bool is_get;
}
}
@@ -1,17 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class AppOpenAdModel
{
public List<SplashAD> dataList;
}
public class SplashAD
{
public int Retention_Days;
public int Retention_Rate;
public int upperlimit;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 38d1867b3db8f0745b44d22c27a37813
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,97 +0,0 @@
namespace FlowerPower
{
public class CommonModel
{
public int InitialNum;
public int[] inlineLoginDown;
public int inlineMin;
public int Purchaseprops;
public int Smallrewardsrate;
public int rewardrate;
public int RevivalCoins;
public int[] wheelTimes;
public int[] flyAdTime;
public int flyCD;
public float[] flyReward;
public int Dailyrefreshtimes;
public int[] darkWVRefreshtime;
public int[] darkWVDailyrefreshtimes;
public int H5Refreshtime;
public int flyCtRate;
public int otherH5switch;
public int darkThoughProbability;
public int ThroughRewardCD;
// public float[] Passportgift;
// public float[] addspace;
public int addspace;
public float addspace2;
public int AddDiscount;
public float AddDiscount2;
public int Passportgift;
public float Passportgift2;
public int WwalaccelerationCD;
public int purchase1;
public int purchase2;
public int[] inlineInitNum;
public int playtimes;
public int interstitialtype;
public int lobbyrewrdtime;
public int roomrewardrate;
public int Activetimes;
public int[] propCoord;
public int adrate;
public int roomrate;
public float afSendLimit;
public float afSendNum;
public int rewardinsertion;
public int propswitch;
public int flyswitch;
public int exchangeCD = 120;
public int WVswitch;
public int[] WVClickAddTime;
public int PassTimes;
public int FailedGiftProgress;
public int PiggyBankSwitch;
public int[] WVOffset;
public int[] darkWVRefreshtime2;
public float[] WVClickCTAddTime1;
public float[] WVClickCTAddTime2;
public int FailedGiftCD;
public int NewWVswitch;
public string contactUs;
public int PayRate;
public int AddDiscountLevel;
public int AddDiscountCD;
public int AddSpaceLevel;
public int[] basePoint;
public string[] TimeSlot;
public int RobotNum;
public int HourTime;
public int eliminatePoints;
public int[] adsPoints;
public int USDPoints;
public int FreeClaims;
public int BonusInside;
public int TurnOffRewardsRate;
public int TurnOffRewardsCD;
public int TurnOffRewardslimit;
public int TurnOffPackRate;
public int BalanceExpired;
public int[] BalanceExchange;
public int[] PotExchange;
public int ExchangeModeToggle;
public int ExchangeProcessMode;
public int CHProcessMode;
public int ExpiryUnlock;
public int RemoveADsPackDuration;
public int SplashSwitch;
public int AddSpaceMode;
public int AddSpaceCoin;
public int SmallReward;
public int ProcessingTime;
public int PropCD;
}
}
@@ -1,5 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
}
@@ -1,18 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class DurationtasksModel
{
public List<Durationtasks> dataList;
}
public class Durationtasks
{
public int id;
public string text_read;
public int tol_num;
public int reward_num;
public bool is_get;
}
}
@@ -1,16 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class ExchangeDesModel
{
public List<ExchangeDes> dataList;
}
public class ExchangeDes
{
public string des_key;
public string Mode_0;
public string Mode_1;
};
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 333885db5f5d5714694b2eaf011aa384
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,21 +0,0 @@
using System.Collections.Generic;
using System.Linq;
namespace FlowerPower
{
public class GameConfigModel
{
public List<GameBoard> dataList1;
public Dictionary<int, List<GameBoard>> game_conf = new Dictionary<int, List<GameBoard>>();
}
public class GameBoard
{
public int level;
public string board;
public string stacked;
public int item_type;
}
}
@@ -1,23 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class GameUrlsModel
{
public List<GameUrls> dataList;
}
public class GameUrls
{
public int id;
public string webLink;
public int webType;
public int probability;
public int refreshMax;
public int darkWebTimesCT;
public int wvType;
public int wvthrough;
public int isMagic;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 6946102b5dc574917a40854dd2d7f74c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,29 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class LargerewardNumModel
{
public List<LargerewardNum> dataList;
}
public class LargerewardNum
{
public int id;
public int[] ch_1;
public int[] ch_2;
public int[] ch_3;
public float[] nor_1;
public float[] nor_2;
public float[] nor_3;
public float rv_1;
public float rv_2;
public float rv_3;
public int[] Boost_1;
public int[] Boost_2;
public int[] Boost_3;
public int[] weight_1;
public int[] weight_2;
public int[] weight_3;
}
}
@@ -1,61 +0,0 @@
using System.Collections.Generic;
using System.Linq;
namespace FlowerPower
{
public class MakeupModel
{
public List<Makeup> dataList;
public Makeup GetData(int id)
{
return dataList.FirstOrDefault(makeup => makeup.id == id);
}
}
public class Makeup
{
public int id;
public int item_need;
public bool is_onetime;
public int task_need;
public int ad_need;
public int item;
public int levels_need;
public int AD_Down;
public int AD_Limit_times;
public int Login_Limit_times;
public int Active_time;
public int Active_time_Down;
public int Active_Limit_times;
}
public class MakeupModel_2
{
public List<Makeup_2> dataList;
public Makeup_2 GetData(int id)
{
return dataList.FirstOrDefault(makeup => makeup.id == id);
}
}
public class Makeup_2
{
public int id;
public int item_need;
public bool is_onetime;
public int task_need;
public int ad_need;
public int item;
public int levels_need;
public int AD_Down;
public int AD_Limit_times;
public int Login_Limit_times;
public int Active_time;
public int Active_time_Down;
public int Active_Limit_times;
public int Reset_time;
public float ADIncrease;
public int PayIncrease;
}
}
@@ -1,18 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class PassingTaskModel
{
public List<PassingTask> dataList;
}
public class PassingTask
{
public int id;
public string text_read;
public int tol_num;
public int reward_num;
public bool is_get;
}
}
@@ -1,54 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class PassportrewardsModel
{
public List<Passportrewards> dataList;
}
public class Passportrewards
{
public int id;
public int Eliminating_quantity;
public int Free_rewards_num;
public int Free_rewards_type;
public int Paid_rewards_num;
public int Paid_rewards_type;
public int Passportrewards_CD;
public int[] Boost;
public int[] weight;
}
public class PaidcoinsModel
{
public List<Paidcoins> dataList;
}
public class Paidcoins
{
public int id;
public int Actual_coins;
public int Discount_rate;
public float Payment_amount;
public float Payment_amount2;
public int receive_CD;
public bool is_paid;
public string SKU;
}
public class MultigiftModel
{
public List<Multigift> dataList;
}
public class Multigift
{
public float Paid_price;
public float Paid_price2;
public int coins_quantity;
public int[] props_type;
public int[] props_quantity;
}
}
@@ -1,26 +0,0 @@
using System.Collections.Generic;
namespace FlowerPower
{
public class RankHourRewardsModel
{
public List<RankRewards> dataList;
}
public class RankDayRewardsModel
{
public List<RankRewards> dataList;
}
public class RankWeekRewardsModel
{
public List<RankRewards> dataList;
}
public class RankRewards
{
public int id;
public int rank;
public int award;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 0e985a8d209cf4f448180c302a4e0ff7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Some files were not shown because too many files have changed in this diff Show More