【问题标题】:Is <profileable> safe in the production build?<profileable> 在生产版本中是否安全?
【发布时间】:2022-11-05 20:05:17
【问题描述】:

要使用macrobenchmark,我们需要将&lt;profileable&gt; 添加到AndroidManifest。

<profileable
    android:shell="true"
    tools:targetApi="q" />

在生产版本中包含&lt;profileable&gt; 是否安全?

【问题讨论】:

    标签: android performance android-manifest macrobenchmark


    【解决方案1】:

    为什么不将此清单节点与debug 源集合并?
    也可以将其从release 源集中删除,效果相同。
    这可能无法回答这个问题,但它使它无关紧要。

    【讨论】:

    • 是的,这是有道理的。我将在我的项目中合并清单。但是,我想知道。如果它有任何问题,我会与我的同事分享。
    • 我不太确定,尤其是它的作用,或者它是否仍然可以与debuggable="false" 一起使用...但通常将所有与调试模式相关的东西与发布版本严格分开是一个好习惯。在这种情况下,当不确定时 - 没关系。
    猜你喜欢
    • 2010-09-30
    • 2016-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-26
    相关资源
    最近更新 更多