zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 748 forks source link

react-native-sound do not work when i set enableProguardInReleaseBuilds = true , What commands do I need to enter in proguard-rules.pro? #633

Open ali226281 opened 4 years ago

ali226281 commented 4 years ago

Hi everybody react-native-sound do not work when I set enableProguardInReleaseBuilds = true. What commands do I need to enter in proguard-rules.pro until my problem is resolved.

juancjara commented 4 years ago

@ali226281 did you find any solution? I'm having the same issue

ali226281 commented 4 years ago

Unfortunately no

juancjara commented 4 years ago

@ali226281 thanks for the quick reply, one question did you change to another library or just native code?

wilau2 commented 4 years ago

I will be trying out this comment from another ticket in the project: https://github.com/zmxv/react-native-sound/issues/601#issuecomment-514550097

I will keep you guys up to date if it fixes this issue.

wilau2 commented 4 years ago

image Stumble upon this as well, seems like the raw folder is stripped by default.

wilau2 commented 4 years ago

add

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
    tools:keep="@raw/*"
    />

in app/src/main/res/raw/keep.xml

yaronlevi commented 3 years ago

It cost us a day of deep investigation. Thank you!