gpt4 book ai didi

android - Google Play 结算 > 在设备上验证购买 > 使用 ProGuard 混淆

转载 作者:行者123 更新时间:2023-11-29 18:36:15 24 4
gpt4 key购买 nike

我想知道文档是否将使用 ProGuard 的含义错误(相反)?

enter image description here

来源:https://developer.android.com/google/play/billing/billing_library_overview

但我的理解是:我不能将这一行添加到 ProGuard 配置文件中,有没有人也注意到这一点?或者确认一下?

 -keep class com.android.vending.billing.**

最佳答案

文档是正确的。我同意你的看法,如果你混淆了你的代码,那么你必须添加这样的 ProGuard 规则以保留 vending.billing 类,这可能看起来令人困惑。

为了阐明其含义,如果您在项目中使用混淆,那么为了不破坏计费库,则必须将此类条目添加到 ProGuard 规则中

这是必需的,因为虽然 com.android.vending.billing 不是计费库的一部分,因为它属于 Google Play 服务,但它是通过 AIDL 访问的,混淆项目可能会删除/重命名自动售货引用。

关于android - Google Play 结算 > 在设备上验证购买 > 使用 ProGuard 混淆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54211740/

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