appwrite / sdk-for-android

[READ-ONLY] Official Appwrite Android SDK 💚 🤖
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
98 stars 21 forks source link

🚀 Feature: Add proguard/R8 rules #34

Open JoyMajumdar2001 opened 1 year ago

JoyMajumdar2001 commented 1 year ago

🔖 Feature description

Add proguard/R8 rules

🎤 Pitch

Add proguard/R8 rules for minify & shrinkResources

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

christyjacob4 commented 1 year ago

@JoyMajumdar2001 this is a welcome change. Are you interested in taking up this issue ?

prateekcode commented 2 months ago

@christyjacob4 Is this problem resolved? Because of this I'm getting issue in Account class. Or is there any idea to keep appwrite module outside of minifyenabled? Since my project will use isMinifyEnabled = true.

thawri1 commented 1 month ago

I had the same issue and got this error only on the release build: b2.a: Invalid query method: W at y1.b$c.b(SourceFile:149) W at j5.e$a.run(SourceFile:52)

fixed by adding this line to proguard-rules file: -keep class io.appwrite.* { ; }