【问题标题】:DexGuard/Proguard obfuscate annotation valuesDexGuard/Proguard 混淆注释值
【发布时间】:2017-04-01 01:32:35
【问题描述】:

我使用 Dagger2。我有下一个代码:

@Provides
@Named("Server API")
String getApiUrl(){}

以及消费代码:

public class Client {
   @Inject
   Client(@Named("Server API") url){}
}

Dexguard/Proguard 会混淆注释中的字符串值吗?

【问题讨论】:

    标签: annotations proguard dexguard


    【解决方案1】:

    注释中的字符串值不能被 DexGuard 混淆。

    【讨论】:

    • 要在类中隐藏这些信息,您可以尝试使用类加密,使用 DexGuard 的 -encryptclasses 指令。
    猜你喜欢
    • 2019-03-19
    • 1970-01-01
    • 2014-08-02
    • 2015-06-14
    • 1970-01-01
    • 1970-01-01
    • 2019-07-20
    • 2013-09-30
    • 1970-01-01
    相关资源
    最近更新 更多