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

Created on 24 Nov 2019  路  7Comments  路  Source: zmxv/react-native-sound

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.

question

Most helpful comment

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

All 7 comments

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

Unfortunately no

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

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.

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zkeyword picture zkeyword  路  19Comments

oxilor picture oxilor  路  11Comments

paulmelnikow picture paulmelnikow  路  18Comments

joshbalfour picture joshbalfour  路  17Comments

badpenguin picture badpenguin  路  21Comments