nextcloud / news-android

📱🗞️ Android client for the Nextcloud news/feed reader app
https://play.google.com/store/apps/details?id=de.luhmer.owncloudnewsreader
GNU Affero General Public License v3.0
698 stars 258 forks source link

cleanup proguard gson rules #1436

Closed David-Development closed 5 months ago

David-Development commented 5 months ago

Follow up from: https://github.com/nextcloud/news-android/pull/1435 - sounds like we don't need the GSON rules anymore. I've removed them and tested the debug build without the GSON rules and it seemed to work just fine (we don't use @SerializedName because we do the deserialization mostly manually)

Added default ProGuard / R8 rules (@​Marcono1234, #2397, #2420; @​sgjesse, #2448; @​sfreilich) If you are using ProGuard or R8 (for example for Android projects) you might not need any special Gson configuration anymore if your classes have a no-args constructor and use @SerializedName for their fields.