更改facebookSDK版本 测试

main
zhangaotian 2025-08-07 17:27:21 +08:00
parent e52c59f457
commit 70e4ca39a3
97 changed files with 126 additions and 260 deletions

View File

@ -0,0 +1,62 @@
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
* copy, modify, and distribute this software in source code or binary form for use
* in connection with the web services and APIs provided by Facebook.
*
* As with any software that integrates with the Facebook platform, your use of
* this software is subject to the Facebook Developer Principles and Policies
* [http://developers.facebook.com/policy/]. This copyright notice shall be
* included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
using System.IO;
using UnityEngine;
using UnityEditor;
#if UNITY_IOS
using UnityEditor.Build.Reporting;
using UnityEditor.iOS.Xcode;
#endif
using UnityEditor.Callbacks;
namespace Facebook.Unity.PostProcess
{
/// <summary>
/// Automatically disables Bitcode on iOS builds
/// </summary>
public static class DisableBitcode
{
[PostProcessBuildAttribute(999)]
public static void OnPostProcessBuild(BuildTarget buildTarget, string pathToBuildProject)
{
#if UNITY_IOS
if (buildTarget != BuildTarget.iOS) return;
string projectPath = pathToBuildProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject pbxProject = new PBXProject();
pbxProject.ReadFromFile(projectPath);
//Disabling Bitcode on all targets
//Main
string target = pbxProject.GetUnityMainTargetGuid();
pbxProject.SetBuildProperty(target, "ENABLE_BITCODE", "NO");
//Unity Tests
target = pbxProject.TargetGuidByName(PBXProject.GetUnityTestTargetName());
pbxProject.SetBuildProperty(target, "ENABLE_BITCODE", "NO");
//Unity Framework
target = pbxProject.GetUnityFrameworkTargetGuid();
pbxProject.SetBuildProperty(target, "ENABLE_BITCODE", "NO");
pbxProject.WriteToFile(projectPath);
#endif
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 201fa01d552b84a74917c9cc8a4c297c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 990773b858e104eb1b6ff7be0f9c9fae
guid: bda855210f1f344978a21514004034a0
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,14 +1,15 @@
fileFormatVersion: 2
guid: 082cd93ddb11e4437b52ea3d121816d8
timeCreated: 1561663365
licenseType: Pro
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
@ -17,12 +18,6 @@ PluginImporter:
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Facebook: WebGL
second:
enabled: 1
settings: {}

View File

@ -2,17 +2,17 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.parse.bolts:bolts-android:1.4.0" />
<androidPackage spec="com.facebook.android:facebook-core:[18.0.0,19)" />
<androidPackage spec="com.facebook.android:facebook-applinks:[18.0.0,19)" />
<androidPackage spec="com.facebook.android:facebook-login:[18.0.0,19)" />
<androidPackage spec="com.facebook.android:facebook-share:[18.0.0,19)" />
<androidPackage spec="com.facebook.android:facebook-gamingservices:[18.0.0,19)" />
<androidPackage spec="com.facebook.android:facebook-core:[17.0.0,18)" />
<androidPackage spec="com.facebook.android:facebook-applinks:[17.0.0,18)" />
<androidPackage spec="com.facebook.android:facebook-login:[17.0.0,18)" />
<androidPackage spec="com.facebook.android:facebook-share:[17.0.0,18)" />
<androidPackage spec="com.facebook.android:facebook-gamingservices:[17.0.0,18)" />
</androidPackages>
<iosPods>
<iosPod name="FBSDKCoreKit_Basics" version="~> 18.0.0" />
<iosPod name="FBSDKCoreKit" version="~> 18.0.0" />
<iosPod name="FBSDKLoginKit" version="~> 18.0.0" />
<iosPod name="FBSDKShareKit" version="~> 18.0.0" />
<iosPod name="FBSDKGamingServicesKit" version="~> 18.0.0" />
<iosPod name="FBSDKCoreKit_Basics" version="~> 17.0.0" />
<iosPod name="FBSDKCoreKit" version="~> 17.0.0" />
<iosPod name="FBSDKLoginKit" version="~> 17.0.0" />
<iosPod name="FBSDKShareKit" version="~> 17.0.0" />
<iosPod name="FBSDKGamingServicesKit" version="~> 17.0.0" />
</iosPods>
</dependencies>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: da9b46f072216483cbeaac2f4e9d66bb
guid: 1430182b1e5d64997aeda2070b4531c3
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9b35acd5ad1cc4ccfa90dd0c76b491e5
guid: f474d2eb5ff0c41ea88db94b07e9a971
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0ff1e8485a73542f8bd713ee729f1d3f
guid: 0caa850c290704435b044d096c5c4437
DefaultImporter:
externalObjects: {}
userData:

View File

@ -5,71 +5,22 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
'': Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux: 1
Exclude Linux64: 1
Exclude LinuxUniversal: 1
Exclude OSXUniversal: 1
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
- first:
Any:
second:
enabled: 1
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: Windows
- first:
Facebook: Win
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Facebook: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: Linux
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: LinuxUniversal
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: None
settings: {}
- first:
Standalone: Win
second:
@ -82,17 +33,6 @@ PluginImporter:
enabled: 1
settings:
CPU: AnyCPU
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0a86410f5a5a04673a334c4a41f97586
guid: 847298e9708154efc911952d510b6dba
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b3c1e011a9c554f5bb77180e0bc78b27
guid: 7511989cae530409694b01d0689ab3a0
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 40613c081b2ad4b89b0e47c36f8f6583
guid: 8c084ca3602034d93b888266a68addc9
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3a4731f40b2014857bb7b166b5a84528
guid: 118a1719df3654445bf95d79c2ee1e15
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -5,88 +5,34 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
'': Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux: 0
Exclude Linux64: 0
Exclude LinuxUniversal: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 1
Exclude Win64: 0
- first:
Any:
second:
enabled: 1
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: x86_64
DefaultValueInitialized: true
OS: Windows
- first:
Facebook: Win
second:
enabled: 0
settings:
CPU: None
- first:
Facebook: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: Linux
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: x86_64
- first:
Standalone: LinuxUniversal
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: AnyCPU
settings: {}
- first:
Standalone: Win
second:
enabled: 0
settings:
CPU: None
CPU: none
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8a9057360693548d8bd1eab6b23cf7e8
guid: a81c4e892c0334b128476132960c4011
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d781a1a83968b427c9ce6593594e6006
guid: c2467336ababd4880b8864cdfd09525e
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 27559d89b2dc7451189c6617c6106c93
guid: c0074179c412c4538be77b083ada0125
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 87498102d2bf3434fbaa7609c107eeac
guid: 938b59dc6da1f431888cb2e05d85d3eb
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9ff3f4ffe94f04d1f8d1f27bed872260
guid: 503d1c1d1157d4e1fac07962d4a72953
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5389a1bf510a348cfbc5d10ba61370e3
guid: 0cf6ec435de3c4d82a13e92a46c236d9
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8e73c0c874ba242ca9f2604a0c789507
guid: 43295463941dc47b68ebc033bc3b97a5
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2b2b42fd731974fc4b3515f9af17f144
guid: ff7c662d891d4441a8527588d3080f98
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 165be5ee3743d401e9b368527984b484
guid: 60df6f13bbf1642c2b8114b11a812e70
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 663a16a8db59047929f093d6e4db4f46
guid: 839a1df6e42814ae4867349515df25d0
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 22a27f75e09ca4c1b822cdc28c8fb416
guid: c651c1681c6f348208cb85e894ccdfaa
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c1d213c80829b40bc87f2d61b296d0e2
guid: 74b1f53b4dea04c8187b202c9a532704
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c0d53100d69a84965a1c46317e58fca6
guid: 7a5cdbf95b73d40c3961ccc4ee0f320a
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ee032c2607fc34cec961ce7785bbbf54
guid: 2c674e72034d74f6db7fa52e52d25b41
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4c17125735b0a497d8b5cac123e2045f
guid: e6dca454fc2844559bcce201db4cb3cf
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0dd9597a4bea64ced81de3354e2e54e3
guid: 3c5ab29a1134642258705c127eb75e64
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -11,18 +11,6 @@ PluginImporter:
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
- first:
Any:
second:
@ -32,8 +20,7 @@ PluginImporter:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
settings: {}
- first:
iPhone: iOS
second:

View File

@ -11,18 +11,6 @@ PluginImporter:
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
- first:
Any:
second:
@ -32,8 +20,7 @@ PluginImporter:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
settings: {}
- first:
iPhone: iOS
second:

View File

@ -11,24 +11,6 @@ PluginImporter:
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 0
settings:
CPU: ARMv7
- first:
Any:
second:
@ -38,43 +20,12 @@ PluginImporter:
Editor: Editor
second:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: Win
second:
enabled: 0
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: x86_64
settings: {}
- first:
iPhone: iOS
second:
enabled: 1
settings:
AddToEmbeddedBinaries: false
CPU: AnyCPU
CompileFlags:
FrameworkDependencies:
settings: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -11,18 +11,6 @@ PluginImporter:
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
- first:
Any:
second:
@ -32,8 +20,7 @@ PluginImporter:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
settings: {}
- first:
iPhone: iOS
second:

View File

View File