mieszko4 / react-native-zoom-us

MIT License
122 stars 115 forks source link

error when add shrinkResources = true in build.gradle #318

Open nguptaesaral opened 6 months ago

nguptaesaral commented 6 months ago

Hi, after adding this lib my project size increased from 58MB to 670MB. to reduce the size, i followed the instruction as given in README.md

but now i am not able to build the release apk. it is throwing the following error

`Execution failed for task ':app:shrinkReleaseRes'.

A failure occurred while executing com.android.build.gradle.internal.transforms.ShrinkProtoResourcesAction ParseError at [row,col]:[1,1] Message: Content is not allowed in prolog.`

i am using "react-native": "0.72.4", "react-native-zoom-us": "^6.18.0"

viettranbhtech commented 5 months ago

I got the same issue, "react-native": "0.71.10", "react-native-zoom-us": "^6.18.1"

mieszko4 commented 3 months ago

Looks like we need to update the guide on shrinking - https://github.com/mieszko4/react-native-zoom-us/blob/e2fe546f2ffe1992cb6ed4bc779897e28a436718/docs/SIZE-REDUCTION-TIPS.md