[英]Does Flutter is Instant App available?
I'm very new to Flutter and I have to know before learning if Flutter works with Instant App.我是 Flutter 的新手,在学习 Flutter 是否适用于 Instant App 之前我必须知道。 Thanks.
谢谢。
Instant apps is currently unavailable on Flutter. Instant 应用程序目前在 Flutter 上不可用。 There is not really a way to split the functionality, but Flutter also makes your app bigger as you can see in this discussion: https://groups.google.com/d/msg/flutter-dev/JpoMCJsPF-4/lzbUdLigAQAJ
并没有真正拆分功能的方法,但 Flutter 也使您的应用程序变得更大,您可以在本次讨论中看到: https ://groups.google.com/d/msg/flutter-dev/JpoMCJsPF-4/lzbUdLigAQAJ
"A trivial Java app does not ship with any graphical engine or widget, everything is provided by the Android Runtime, even most of the standard Java libraries. A Flutter app has to ship with pretty much everything: engine, widgets, standard libraries, etc..." “一个简单的 Java 应用程序不附带任何图形引擎或小部件,一切都由 Android 运行时提供,甚至是大多数标准 Java 库。Flutter 应用程序必须附带几乎所有东西:引擎、小部件、标准库等……”
I am not completely sure about how much bigger (this example states about 7MB install size), but as Instant Apps have to be below 4MB I don't think Instant Apps will come to Flutter any time soon if ever.我不完全确定到底有多大(这个例子说明安装大小约为 7MB),但由于 Instant Apps 必须低于 4MB,我认为 Instant Apps 不会很快出现在 Flutter 中。
This year google released Google Play Instant , which basically is a program to test games and application without need to install them on actual device (like Android instant apps).今年谷歌发布了Google Play Instant ,它基本上是一个测试游戏和应用程序的程序,无需在实际设备上安装它们(如 Android 即时应用程序)。 Right now it looks like you have to apply in order get access to the program, but soon should be available for more applications.
现在看来您必须申请才能访问该程序,但很快就会有更多应用程序可用。 You can apply here if you want.
如果你愿意,你可以在这里申请。
This program does not have 4MB limitation any more, but 10MB for the build file size.该程序不再有 4MB 的限制,但构建文件大小为 10MB。 I guess this is something which could help Flutter applications, because usually they have bigger file size.
我想这对 Flutter 应用程序有帮助,因为它们通常有更大的文件大小。
In conclusion I would say:最后我想说:
As long as you have android build file (.apk or.aab) and it's under the upload limitations for Google play store, you can ship it in Google play store as Instant version of your application.只要您有 android 构建文件(.apk 或 .aab)并且它在 Google Play 商店的上传限制之下,您就可以将它作为应用程序的即时版本发布到 Google Play 商店。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.