ios 1 year ago
parent
commit
5c05517390

BIN
.DS_Store


BIN
GameClient/.DS_Store


BIN
GameClient/Assets/.DS_Store


+ 3 - 3
GameClient/Assets/Game/HotUpdate/Platform/QDAppStore.cs → GameClient/Assets/Game/HotUpdate/Platform/QDAppStoreManager.cs

@@ -3,11 +3,11 @@ using UnityEngine;
 
 namespace GFGGame
 {
-    public class QDAppStore
+    public class QDAppStoreManager
     {
-        public static void InitPlatform()
+        public static void Init()
         {
-            IAPManager.Instance.InitializePurchasing();
+            QDManager.isInited = true;
         }
 
         public static void Pay(int buyID, int count, string orderID, long Price)

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Platform/QDAppStore.cs.meta → GameClient/Assets/Game/HotUpdate/Platform/QDAppStoreManager.cs.meta

@@ -1,5 +1,5 @@
 fileFormatVersion: 2
-guid: ba29f86a3c2294edaa395886b9409279
+guid: 1a015a0d06b914c1e98228514871d2fb
 MonoImporter:
   externalObjects: {}
   serializedVersion: 2

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Platform/QDManager.cs

@@ -9,6 +9,9 @@
         {
             switch(LauncherConfig.ChannelId)
             {
+                case (int)ChannelID.AppStore:
+                    QDAppStoreManager.Init();
+                    break;
                 default:
                     
                     break;
@@ -20,9 +23,6 @@
             ViewManager.Show<ModalStatusView>("正在初始化...");
             switch (LauncherConfig.ChannelId)
             {
-                case (int)ChannelID.AppStore:
-                    QDAppStore.InitPlatform();
-                    break;
                 default:
                     EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_INITED, true);
                     break;
@@ -60,7 +60,7 @@
             switch (LauncherConfig.ChannelId)
             {
                 case (int)ChannelID.AppStore:
-                    QDAppStore.OnEnterGame();
+                    QDAppStoreManager.OnEnterGame();
                     break;
                 default:
 
@@ -84,7 +84,7 @@
             switch (LauncherConfig.ChannelId)
             {
                 case (int)ChannelID.AppStore:
-                    QDAppStore.Pay(buyID, count, orderID, Price);
+                    QDAppStoreManager.Pay(buyID, count, orderID, Price);
                     break;
                 default:
 

+ 1 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/IOSRechargeSProxy.cs

@@ -10,7 +10,7 @@ namespace GFGGame
             {
                 OrderId = OrderId,
                 TransactionId = TransactionId,
-                EnvironmentType = LauncherConfig.serverStatus == 2?0:1
+                EnvironmentType = GameConfig.tsServer > 0?0:1
             });
             if(response != null)
             {

+ 19 - 0
GameClient/Assets/Game/Launcher/Platform/QDAppStoreManagerInit.cs

@@ -0,0 +1,19 @@
+using UnityEngine;
+using UniFramework.Event;
+
+namespace GFGGame.Launcher
+{
+
+    public static class QDAppStoreManagerInit
+    {
+        public static void InitPlatform()
+        {
+            UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
+        }
+
+        public static void UpdateApp()
+        {
+            
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/Launcher/Platform/QDAppStoreManagerInit.cs.meta

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

+ 5 - 2
GameClient/Assets/Game/Launcher/Platform/QDManagerInit.cs

@@ -11,6 +11,9 @@ namespace GFGGame.Launcher
         {
             switch (LauncherConfig.ChannelId)
             {
+                case (int)ChannelID.AppStore:
+                    QDAppStoreManagerInit.InitPlatform();
+                    break;
                 default:
                     UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
                     break;
@@ -24,10 +27,10 @@ namespace GFGGame.Launcher
                 default:
                     if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
                     {
-                        LauncherConfig.updateAppPrompt = "需要安装新的安装包,请联系研发获取。";
+                        LauncherConfig.updateAppPrompt = "锟斤拷要锟斤拷装锟铰的帮拷装锟斤拷锟斤拷锟斤拷锟斤拷系锟叫凤拷锟斤拷取锟斤拷";
                     }
                     Alert.Show(LauncherConfig.updateAppPrompt)
-                            .SetLeftButton(true, "知道了", (data) =>
+                            .SetLeftButton(true, "知锟斤拷锟斤拷", (data) =>
                             {
 
                                 Application.Quit();

BIN
GameClient/Assets/Plugins/.DS_Store


BIN
GameClient/Assets/Plugins/NativeGallery/.DS_Store


BIN
GameClient/Assets/Plugins/iOS/.DS_Store


+ 8 - 0
GameClient/Assets/Plugins/iOS/AppTrackingTransparency.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 06d1a042613c7409098ffd4e5fa993f9
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 16 - 0
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/AppTrackingTransparency.cs

@@ -0,0 +1,16 @@
+#if UNITY_IOS
+namespace GFGGame.IOS
+{
+    public class AppTrackingTransparency
+    {
+
+        [System.Runtime.InteropServices.DllImport("__Internal")]
+        private static extern void RequestTrackingAuthorizationI();
+
+        public static void RequestTrackingAuthorization()
+        {
+            RequestTrackingAuthorization();
+        }
+    }
+}
+#endif

+ 11 - 0
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/AppTrackingTransparency.cs.meta

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

+ 7 - 0
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/NativeGallery.mm

@@ -0,0 +1,7 @@
+#import <AppTrackingTransparency/AppTrackingTransparency.h>
+
+extern "C" void RequestTrackingAuthorizationI() {
+    [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
+        // 处理授权状态
+    }];
+}

+ 33 - 0
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/NativeGallery.mm.meta

@@ -0,0 +1,33 @@
+fileFormatVersion: 2
+guid: 9bec1a00d69d34491888971e1ff3d689
+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: 0
+      settings:
+        DefaultValueInitialized: true
+  - first:
+      iPhone: iOS
+    second:
+      enabled: 1
+      settings:
+        AddToEmbeddedBinaries: false
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: