【问题标题】:Proguard/Dexguard dontobfuscate Specific image folder in React NativeProguard/Dexguard dontobfuscate React Native 中的特定图像文件夹
【发布时间】:2021-02-05 20:30:07
【问题描述】:

我有一个使用 Dexguard 的 react 本机应用程序。当我进行应用程序的发布构建时,没有加载任何图像。我把图片保存在这个文件夹里

ProjectRoot > src>assets>图片

我在这个文件夹中有我的安卓代码,

ProjectRoot > 安卓 > 应用程序>

看起来 Dexguard 正在混淆图像文件夹,我如何告诉 dexguard 不要这样做, 我尝试添加,

-keepresourcefiles images/**

-keepresourcefiles src/assets/images/**

但这没有任何效果。应该怎么做呢?

【问题讨论】:

    标签: react-native-android proguard dexguard


    【解决方案1】:

    不是限制性规则,但这对我有用:

    -keepresourcefiles res/**
    -keepresources **
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-24
      • 2018-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-18
      相关资源
      最近更新 更多