ios 1 жил өмнө
parent
commit
5193b97890

BIN
GameClient/Assets/.DS_Store


+ 2 - 0
GameClient/Assets/Game/HotUpdate/Platform/QDAppStoreManager.cs

@@ -8,6 +8,8 @@ namespace GFGGame
         public static void Init()
         {
             QDManager.isInited = true;
+
+            IAPManager.Instance.InitializePurchasing();
         }
 
         public static void Pay(int buyID, int count, string orderID, long Price)

+ 3 - 4
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/AppTrackingTransparency.cs → GameClient/Assets/Game/Launcher/Platform/AppTrackingTransparency.cs

@@ -1,7 +1,6 @@
-#if UNITY_IOS
-namespace GFGGame.IOS
+namespace GFGGame.Launcher
 {
-    public class AppTrackingTransparency
+    public static class AppTrackingTransparency
     {
 
         [System.Runtime.InteropServices.DllImport("__Internal")]
@@ -13,4 +12,4 @@ namespace GFGGame.IOS
         }
     }
 }
-#endif
+

+ 0 - 0
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/AppTrackingTransparency.cs.meta → GameClient/Assets/Game/Launcher/Platform/AppTrackingTransparency.cs.meta


+ 10 - 1
GameClient/Assets/Game/Launcher/Platform/QDAppStoreManagerInit.cs

@@ -8,12 +8,21 @@ namespace GFGGame.Launcher
     {
         public static void InitPlatform()
         {
+            AppTrackingTransparency.RequestTrackingAuthorization();
             UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
         }
 
         public static void UpdateApp()
         {
-            
+            if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
+            {
+                LauncherConfig.updateAppPrompt = "需要安装新的安装包。";
+            }
+            Alert.Show(LauncherConfig.updateAppPrompt)
+                    .SetLeftButton(true, "前往更新", (data) =>
+                    {
+                        Application.OpenURL("");
+                    });
         }
     }
 }

+ 3 - 0
GameClient/Assets/Game/Launcher/Platform/QDManagerInit.cs

@@ -24,6 +24,9 @@ namespace GFGGame.Launcher
         {
             switch(LauncherConfig.ChannelId)
             {
+                case (int)ChannelID.AppStore:
+                    QDAppStoreManagerInit.UpdateApp();
+                    break;
                 default:
                     if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
                     {

BIN
GameClient/Assets/Plugins/.DS_Store


BIN
GameClient/Assets/Plugins/iOS/.DS_Store


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


+ 1 - 1
GameClient/Assets/Plugins/iOS/AppTrackingTransparency/NativeGallery.mm.meta → GameClient/Assets/Plugins/iOS/AppTrackingTransparency/AppTrackingTransparency.mm.meta

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