
[英]How to disable the copy & past text functionality for ANDROID as well as IOS which is coming after long press on screen in Phonegap application
[英]How to disable android archive functionality on flutter application?
所以我需要禁用此存档功能,但我不知道从哪里禁用。
我在build.gradle
中尝试过这个,但它没有用。
bundle {
storeArchive.enable = false
}
请先检查您的 AGP 版本。 如果它低于 7.2(flutter 默认使用 4.1),您必须使用此处描述的不同方法 — https://android-developers.googleblog.com/2022/03/freeing-up-60-of-storage-for-应用程序.html
正如它在那里提到的:
对于较旧的 Bundletool 和 AGP 版本,您可以通过在资源中包含一个退出文件来选择退出:res/xml/com_android_vending_archive_opt_out.xml。
<?xml version="1.0" encoding="utf-8"?>
<optOut />
如果您使用的是 AGP 7.2 或更新版本并且想要选择退出生成存档的 APK,您可以修改项目的 build.gradle 文件:
android {
bundle {
storeArchive {
enable = false
}
}
}
https://android-developers.googleblog.com/2022/03/freeing-up-60-of-storage-for-apps.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.