Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crashing when minifyEnabled set true #83

Open
hariuppi opened this issue Oct 31, 2023 · 1 comment
Open

app crashing when minifyEnabled set true #83

hariuppi opened this issue Oct 31, 2023 · 1 comment

Comments

@hariuppi
Copy link

hariuppi commented Oct 31, 2023

this what I get when open the app
using latest mediasoup client version io.github.haiyangwu:mediasoup-client:3.4.0
and target and compiled sdk 33

#1 pc 00000000006e7760 /data/app/_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/lib/arm64/libmediasoupclient_so.so (BuildId: 7cf57eac3cd8ab34de7eaa79328e54cee64ea06e)
2023-10-31 20:33:25.904 24985-24985 DEBUG pid-24985 A #2 pc 00000000006e76f8 /data/app/
_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/lib/arm64/libmediasoupclient_so.so (BuildId: 7cf57eac3cd8ab34de7eaa79328e54cee64ea06e)
2023-10-31 20:33:25.904 24985-24985 DEBUG pid-24985 A #3 pc 0000000000a8a730 /data/app/_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/lib/arm64/libmediasoupclient_so.so (BuildId: 7cf57eac3cd8ab34de7eaa79328e54cee64ea06e)
2023-10-31 20:33:25.904 24985-24985 DEBUG pid-24985 A #4 pc 0000000000a87768 /data/app/
_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/lib/arm64/libmediasoupclient_so.so (BuildId: 7cf57eac3cd8ab34de7eaa79328e54cee64ea06e)
2023-10-31 20:33:25.904 24985-24985 DEBUG pid-24985 A #5 pc 0000000000521988 /data/app/_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/lib/arm64/libmediasoupclient_so.so (JNI_OnLoad+24) (BuildId: 7cf57eac3cd8ab34de7eaa79328e54cee64ea06e)
2023-10-31 20:33:25.904 24985-24985 DEBUG pid-24985 A #13 pc 0000000000c059fc /data/app/
_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/oat/arm64/base.vdex (org.mediasoup.droid.MediasoupClient.+4)
2023-10-31 20:33:25.904 24985-24985 DEBUG pid-24985 A #20 pc 0000000000ad8bfc /data/app/~~_kl2aYjO--6P9r5PyBpVfA==/com.tvisha.troopimpremise-1Etuk-R6ut3cc6h343UIWA==/oat/arm64/base.vdex

when set the minifyEnabled true and shrinkResources true
the crash exactly when initializing the MediasoupClient.initialize(applicationContext) this line.

@hariuppi
Copy link
Author

hariuppi commented Nov 9, 2023

fixed when set the minifyEnabled true
by adding these two lines in proguard-rules.pro
-keep class org.mediasoup.droid.** { ; }
-keep class org.webrtc.
* {*;}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant