iOS是否提供Android的多个“apk”支持?

时间:2023-01-18 10:19:08

I'm creating a multiplayer game with a popular engine which ports the game to Android and iOS.

我正在创建一个带有流行引擎的多人游戏,将游戏移植到Android和iOS。

There are 5 different aspect ratios on these companies devices so I'm creating 5 different packs of UI (graphics) with different sizes.

这些公司设备有5种不同的宽高比,因此我创建了5种不同大小的UI(图形)包。

It would be so stupid to download/store all of the graphics (16:9, 4:3...) on a for example 5:3 device so I found this: https://developer.android.com/google/play/publishing/multiple-apks.html

在例如5:3设备上下载/存储所有图形(16:9,4:3 ......)是如此愚蠢,所以我发现了这个:https://developer.android.com/google/播放/出版/多apks.html

I can publish 5 versions of the app depending on the screen resolution and user automagically gets correct.

我可以根据屏幕分辨率发布5个版本的应用程序,用户自动获得正确。

Does iOS provide a similar thing? I can't find anything saying so.

iOS提供类似的东西吗?我找不到任何说法。

Thank you very much!

非常感谢你!

1 个解决方案

#1


2  

As of iOS 9 Apple supports App Thinning. You can now use slicing to have certain resources only be downloaded for specific devices. Here is the official documentation on App Thinning. Sounds like for your case you would want Slicing.

从iOS 9开始,Apple支持App Thinning。您现在可以使用切片来仅为特定设备下载某些资源。以下是App Thinning的官方文档。听起来像你的情况,你会想要切片。

Few important things to mention. Depending on the game engine you are using this might not be supported. Also unlike Google Play you are still only uploading one bundle to iTunes connect. Apple takes care of slicing the resources and takes care of App Thinning behind the scenes after you set it up.

几个重要的事情要提。根据您使用的游戏引擎,可能不支持此功能。与Google Play不同的是,您仍然只能将一个捆绑包上传到iTunes连接。 Apple负责切片资源,并在设置完成后在后台处理App Thinning。

EDIT of course you could also use on demand resources or something to send the resources at run time. You could also set something like this up on your own if your game engine doesn't support App Thinning. Just download the resources from some server at runtime. There are many different options and it all depends on the game engine you are using and how you want to set it up.

编辑当然你也可以使用随需应变资源或其他东西在运行时发送资源。如果你的游戏引擎不支持App Thinning,你也可以自己设置这样的东西。只需在运行时从某个服务器下载资源。有许多不同的选项,这取决于您使用的游戏引擎以及您希望如何设置它。

#1


2  

As of iOS 9 Apple supports App Thinning. You can now use slicing to have certain resources only be downloaded for specific devices. Here is the official documentation on App Thinning. Sounds like for your case you would want Slicing.

从iOS 9开始,Apple支持App Thinning。您现在可以使用切片来仅为特定设备下载某些资源。以下是App Thinning的官方文档。听起来像你的情况,你会想要切片。

Few important things to mention. Depending on the game engine you are using this might not be supported. Also unlike Google Play you are still only uploading one bundle to iTunes connect. Apple takes care of slicing the resources and takes care of App Thinning behind the scenes after you set it up.

几个重要的事情要提。根据您使用的游戏引擎,可能不支持此功能。与Google Play不同的是,您仍然只能将一个捆绑包上传到iTunes连接。 Apple负责切片资源,并在设置完成后在后台处理App Thinning。

EDIT of course you could also use on demand resources or something to send the resources at run time. You could also set something like this up on your own if your game engine doesn't support App Thinning. Just download the resources from some server at runtime. There are many different options and it all depends on the game engine you are using and how you want to set it up.

编辑当然你也可以使用随需应变资源或其他东西在运行时发送资源。如果你的游戏引擎不支持App Thinning,你也可以自己设置这样的东西。只需在运行时从某个服务器下载资源。有许多不同的选项,这取决于您使用的游戏引擎以及您希望如何设置它。