gpt4 book ai didi

android - -keep class 在 ProGuard 中做什么

转载 作者:塔克拉玛干 更新时间:2023-11-02 18:59:44 25 4
gpt4 key购买 nike

我知道 keep class 就是假设 keep class。

  1. 但是假设我在特定类上保留类,它不会混淆所述类吗?

    -保留类 com.myproject.activities.**

  2. keep classkeep public class

    有什么区别

最佳答案

我知道现在回答为时已晚,但这可能对某些人有帮助。来自关于 -keep

的 Guard Square 文档

-keep Specifies classes and class members (fields and methods) to be preserved as entry points to your code. For example, in order to keep an application, you can specify the main class along with its main method. In order to process a library, you should specify all publicly accessible elements.

您可以查看以下链接以了解有关 ProGuard 规范的更多详细信息。 https://www.guardsquare.com/en/proguard/manual/usage

http://omgitsmgp.com/2013/09/09/a-conservative-guide-to-proguard-for-android/

关于android - -keep class 在 ProGuard 中做什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36553253/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com