baxi 1 mese fa
parent
commit
6a38fcfcc7

BIN
Assets/AppIcon.png


+ 143 - 0
Assets/AppIcon.png.meta

@@ -0,0 +1,143 @@
+fileFormatVersion: 2
+guid: fe3d382abb283284c80645e7cef85ea3
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 13
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 1
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+    flipGreenChannel: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  ignoreMipmapLimit: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 0
+    wrapV: 0
+    wrapW: 0
+  nPOTScale: 1
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 0
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 0
+  spriteTessellationDetail: -1
+  textureType: 0
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  swizzle: 50462976
+  cookieLightType: 0
+  platformSettings:
+  - serializedVersion: 4
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    ignorePlatformSupport: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  - serializedVersion: 4
+    buildTarget: Standalone
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    ignorePlatformSupport: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  - serializedVersion: 4
+    buildTarget: Android
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    ignorePlatformSupport: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  - serializedVersion: 4
+    buildTarget: iOS
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    ignorePlatformSupport: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    customData: 
+    physicsShape: []
+    bones: []
+    spriteID: 
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+    spriteCustomMetadata:
+      entries: []
+    nameFileIdTable: {}
+  mipmapLimitGroupName: 
+  pSDRemoveMatte: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 0 - 6
Assets/AppRuntimes/Demo/Demo.cs

@@ -10,10 +10,4 @@ public class Demo : MonoBehaviour
         AppRuntimes.Initialization();
         _ = AppRuntimes.CheckVersion();
     }
-
-    // Update is called once per frame
-    void Update()
-    {
-
-    }
 }

+ 12 - 12
Assets/AppRuntimes/Demo/Demo.unity

@@ -13,7 +13,7 @@ OcclusionCullingSettings:
 --- !u!104 &2
 RenderSettings:
   m_ObjectHideFlags: 0
-  serializedVersion: 9
+  serializedVersion: 10
   m_Fog: 0
   m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
   m_FogMode: 3
@@ -42,8 +42,8 @@ RenderSettings:
 --- !u!157 &3
 LightmapSettings:
   m_ObjectHideFlags: 0
-  serializedVersion: 12
-  m_GIWorkflowMode: 1
+  serializedVersion: 13
+  m_BakeOnSceneLoad: 0
   m_GISettings:
     serializedVersion: 2
     m_BounceScale: 1
@@ -66,9 +66,6 @@ LightmapSettings:
     m_LightmapParameters: {fileID: 0}
     m_LightmapsBakeMode: 1
     m_TextureCompression: 1
-    m_FinalGather: 0
-    m_FinalGatherFiltering: 1
-    m_FinalGatherRayCount: 256
     m_ReflectionCompression: 2
     m_MixedBakeMode: 2
     m_BakeBackend: 1
@@ -96,7 +93,7 @@ LightmapSettings:
     m_ExportTrainingData: 0
     m_TrainingDataDestination: TrainingData
     m_LightProbeSampleCountMultiplier: 4
-  m_LightingDataAsset: {fileID: 0}
+  m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
   m_LightingSettings: {fileID: 0}
 --- !u!196 &4
 NavMeshSettings:
@@ -147,15 +144,14 @@ Light:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 221074140}
   m_Enabled: 1
-  serializedVersion: 10
+  serializedVersion: 12
   m_Type: 1
-  m_Shape: 0
   m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_Intensity: 1
   m_Range: 10
   m_SpotAngle: 30
   m_InnerSpotAngle: 21.80208
-  m_CookieSize: 10
+  m_CookieSize2D: {x: 10, y: 10}
   m_Shadows:
     m_Type: 0
     m_Resolution: -1
@@ -199,8 +195,12 @@ Light:
   m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
   m_UseBoundingSphereOverride: 0
   m_UseViewFrustumForShadowCasterCull: 1
+  m_ForceVisible: 0
   m_ShadowRadius: 0
   m_ShadowAngle: 0
+  m_LightUnit: 1
+  m_LuxAtDistance: 1
+  m_EnableSpotReflector: 1
 --- !u!4 &221074142
 Transform:
   m_ObjectHideFlags: 0
@@ -308,10 +308,10 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  m_UiScaleMode: 0
+  m_UiScaleMode: 1
   m_ReferencePixelsPerUnit: 100
   m_ScaleFactor: 1
-  m_ReferenceResolution: {x: 800, y: 600}
+  m_ReferenceResolution: {x: 750, y: 1334}
   m_ScreenMatchMode: 0
   m_MatchWidthOrHeight: 0
   m_PhysicalUnit: 3

+ 4 - 0
Assets/AppRuntimes/Editor/AppSettingsWindow.cs

@@ -200,6 +200,10 @@ public class AppStartup : MonoBehaviour
                 "应停止游戏背景音乐;返回 false 时继续游戏主流程。",
                 MessageType.Info);
             DrawExample(UsageExample, string.Empty);
+            EditorGUILayout.HelpBox(
+                "AppRuntimes.Log 在编辑器中始终输出。iOS 在 Info.plist 中添加 Boolean 类型的 EnableUnityLog," +
+                "设为 YES 时输出日志;未设置时默认为 NO。其他平台默认关闭。",
+                MessageType.Info);
         }
     }
 

+ 8 - 0
Assets/AppRuntimes/Plugins/iOS/AppRuntimesNative.mm

@@ -7,6 +7,14 @@ extern "C" UIViewController *UnityGetGLViewController(void);
 
 extern "C"
 {
+    int AppRuntimes_GetEnableUnityLog()
+    {
+        id value = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"EnableUnityLog"];
+        if ([value isKindOfClass:[NSNumber class]] || [value isKindOfClass:[NSString class]])
+            return [value boolValue] ? 1 : 0;
+        return 0;
+    }
+
     const char *AppRuntimes_GetTestUserID()
     {
         id value = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"TestUserID"];

+ 1 - 1
Assets/AppRuntimes/Resources/AppSettings.asset

@@ -12,6 +12,6 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 9889848cdcc44731be1105ea8a44e73e, type: 3}
   m_Name: AppSettings
   m_EditorClassIdentifier: 
-  AppAddress: v2:gKgqoyh-FyAJBFrQOFDSaxJ0swLO4WSf14JQ8oAo9sV4A7O5tChhr4vz77j6sSee
+  AppAddress: v2:eAkdJb588FCMPETpkMxqwWWigiVw7hZNe_ovQp5B_J4VMIWS5xaE7UV97FP9csJ4
   AppChannel: 111
   PrivacyUrl: https://raw.githubusercontent.com/Bx-Baxy/SUPER_BUFFALO/refs/heads/main/Privacy.md

+ 18 - 6
Assets/AppRuntimes/Scripts/AppRuntimes.cs

@@ -69,6 +69,10 @@ public static class AppRuntimes
 
     public static string TestUrl { get; } = NativeAppInfo.GetTestUrl();
 
+    public static string PrivacyContent { get; private set; }
+
+    private static readonly bool EnableUnityLog = NativeAppInfo.GetEnableUnityLog();
+
     private static GameObject RootGo;
 
     private static bool isInit = false;
@@ -100,12 +104,14 @@ public static class AppRuntimes
 
     public static void Log(string msg)
     {
-        //Debug.Log($">>>>>>>>>>>>>>>  {msg}");
+        if (Application.isEditor || EnableUnityLog)
+        {
+            Debug.Log($">>>>>>>>>>>>>>>  {msg}");
+        }
     }
 
     private static async void InitFB()
     {
-        Log($"init fb config");
         var config = await GetConfig();
         Log($"fb config:{config.platform_id}  {config.platform_token}");
         if (!string.IsNullOrEmpty(config.platform_id))
@@ -206,6 +212,7 @@ public static class AppRuntimes
                 var url = string.Format("{0}?v={1}", PrivacyUrl, ts);
                 using var handler = UnityWebRequest.Get(url);
                 var result = await handler.SendWebRequest();
+                PrivacyContent = result.downloadHandler.text;
                 var index = result.downloadHandler.text.IndexOf("Email: [");
                 if (index == -1)
                 {
@@ -216,10 +223,15 @@ public static class AppRuntimes
             }
             catch (UnityWebRequestException)
             {
-                if (!await ShowNetworkError()) return false;
+                if (!await ShowNetworkError())
+                {
+                    PrivacyContent = string.Empty;
+                    return false;
+                }
             }
             catch (Exception)
             {
+                PrivacyContent = string.Empty;
                 return false;
             }
         }
@@ -357,7 +369,7 @@ public static class AppRuntimes
         };
         webView.OnPageFinished += (view, statusCode, url) =>
         {
-            Debug.Log($">>>> webView OnPageFinished  statusCode:{statusCode} url:{url}");
+            Log($">>>> webView OnPageFinished  statusCode:{statusCode} url:{url}");
             SetWebLoading(false);
             ApplyWebViewSafeAreaFrame(view);
             view.EvaluateJavaScript(APP_BRIDGE_SCRIPT);
@@ -366,12 +378,12 @@ public static class AppRuntimes
 
         webView.OnPageProgressChanged += (view, progress) =>
         {
-            Debug.Log($"加载进度:{progress:P0}");
+            Log($"加载进度:{progress:P0}");
         };
 
         webView.OnLoadingErrorReceived += (webView, errorCode, errorMessage, payload) =>
         {
-            Debug.Log($">>>> webView Error  errorCode:{errorCode} msg:{errorMessage}");
+            Log($">>>> webView Error  errorCode:{errorCode} msg:{errorMessage}");
             SetWebLoading(false);
             webView.Show();
         };

+ 2 - 2
Assets/AppRuntimes/Scripts/FBHandler.cs

@@ -89,14 +89,12 @@ public class FBHandler
         appID = appID?.Trim();
         token = token?.Trim();
 
-        AppRuntimes.Log($"fb init IsInitialized: {FB.IsInitialized}");
         if (FB.IsInitialized) return;
 
 #if UNITY_IOS
         try
         {
             var att = PlayerPrefs.GetInt(LOCAL_ATT_STATUS, 0);
-            AppRuntimes.Log($"get att res: {att}");
             bool authorized = att == (int)ATTrackingStatusBinding.AuthorizationTrackingStatus.AUTHORIZED;
             OnInit(appID, token, () =>
             {
@@ -189,6 +187,7 @@ public class FBHandler
 
         if (!FB.IsInitialized)
         {
+            AppRuntimes.Log("Fb not initialized!!");
             pendingFBEvents.Enqueue(new EventData
             {
                 eventName = eventName,
@@ -197,6 +196,7 @@ public class FBHandler
             return;
         }
 
+        AppRuntimes.Log("Fb log event: " + eventName);
         OnLogEvent(eventName, data);
     }
 

+ 11 - 0
Assets/AppRuntimes/Scripts/Utils/NativeAppInfo.cs

@@ -7,9 +7,20 @@ internal static class NativeAppInfo
     [DllImport("__Internal")]
     private static extern IntPtr AppRuntimes_GetTestUserID();
     [DllImport("__Internal")]
+    private static extern int AppRuntimes_GetEnableUnityLog();
+    [DllImport("__Internal")]
     private static extern void AppRuntimes_FreeString(IntPtr value);
 #endif
 
+    internal static bool GetEnableUnityLog()
+    {
+#if UNITY_IOS && !UNITY_EDITOR
+        return AppRuntimes_GetEnableUnityLog() != 0;
+#else
+        return false;
+#endif
+    }
+
     internal static string GetTestUrl()
     {
 #if UNITY_IOS && !UNITY_EDITOR

+ 2 - 2
Assets/FacebookSDK/SDK/Resources/FacebookSettings.asset

@@ -14,9 +14,9 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   selectedAppIndex: 0
   clientTokens:
-  - c37580545562abc5f4006d90c4a5d152
+  - 0d4d1fe3e7f3780394f0d727da70e2d4
   appIds:
-  - 1460362359262753
+  - 1615256036708264
   appLabels:
   - Arcade
   cookie: 1

File diff suppressed because it is too large
+ 149 - 696
Assets/GUPS/Obfuscator/Log/iOS.txt


+ 0 - 39
ProjectSettings/EditorBuildSettings.asset

@@ -5,47 +5,8 @@ EditorBuildSettings:
   m_ObjectHideFlags: 0
   serializedVersion: 2
   m_Scenes:
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/MainMenu.unity
-    guid: 7c38a8c9adc9d5c4b869612e4033ead8
   - enabled: 0
     path: Assets/AppRuntimes/Demo/Demo.unity
     guid: 6cf051142d8610c4c8907a661ae56b2d
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/AccessTokenMenu.unity
-    guid: 67cb5b2387b8e4ec9b2fa69ad9510e9b
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/AppEvents.unity
-    guid: 68ab940fa15e34433bff18301686b080
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/AppLinks.unity
-    guid: 4ac12dfde6570493291366d0ab3eb20d
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/AppRequests.unity
-    guid: c2250c9c5cf00425384401321f8dffb4
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/DialogShare.unity
-    guid: 190c345841ecc464e9a122f04369757e
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/GraphRequest.unity
-    guid: 444ae7ddf432b457a97bfe42021075e3
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/IAP.unity
-    guid: d099cfc4ad6cc45b68ac422706c264f9
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/LogView.unity
-    guid: c07ff0bf6bea74c2eb681ac0cae44265
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/Pay.unity
-    guid: 3ee189cdb21ea4bdb9d7022a0780c44c
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/Subscription.unity
-    guid: 4ad37b3bb7e634d2eaa15a73b923b09e
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/TournamentsMenu.unity
-    guid: 6f8d688887086476cb9533793ffa1756
-  - enabled: 0
-    path: Assets/FacebookSDK/Examples/Mobile/UploadToMediaLibrary.unity
-    guid: 6953b5ebad5134d32b0433745ec4a661
   m_configObjects: {}
   m_UseUCBPForAssetBundles: 0

+ 4 - 4
ProjectSettings/ProjectSettings.asset

@@ -12,8 +12,8 @@ PlayerSettings:
   targetDevice: 2
   useOnDemandResources: 0
   accelerometerFrequency: 60
-  companyName: balthazar
-  productName: Arcade Merge:Card Fusion
+  companyName: DefaultCompany
+  productName: DefaultName
   defaultCursor: {fileID: 0}
   cursorHotspot: {x: 0, y: 0}
   m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@@ -172,7 +172,7 @@ PlayerSettings:
   applicationIdentifier:
     Android: com.balthazar.arcade
     Standalone: com.DefaultCompany.triad-cards
-    iPhone: 
+    iPhone: auto.cardsell.project
   buildNumber:
     Standalone: 0
     VisionOS: 0
@@ -304,7 +304,7 @@ PlayerSettings:
   - m_BuildTarget: 
     m_Icons:
     - serializedVersion: 2
-      m_Icon: {fileID: 2800000, guid: 68a02b44eb5642d438bc6309f71b2450, type: 3}
+      m_Icon: {fileID: 2800000, guid: fe3d382abb283284c80645e7cef85ea3, type: 3}
       m_Width: 128
       m_Height: 128
       m_Kind: 0

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