google / gson

A Java serialization/deserialization library to convert Java Objects into JSON and back
Apache License 2.0
23.23k stars 4.27k forks source link

Remove `examples/android-proguard-example` #2718

Open Marcono1234 opened 1 month ago

Marcono1234 commented 1 month ago

Problem solved by the feature

This repository currently contains an Android sample project in examples/android-proguard-example. The README and Troubleshooting Guide currently refer to it, and as seen by https://github.com/google/gson/discussions/2715#discussioncomment-10119789 users are still looking at it often.

The problem is that this sample project is quite old, and might not represent current best practices:

It also contains little configuration or code which is Android specific; the most important part is probably proguard.cfg. GsonProguardExampleActivity.java just performs basic conversion from and to JSON and displays the result as text; it does not use SharedPreferences, Room, or communicate with a REST API or anything similar.

Side note: After creating a new empty project in Android Studio, adding the files from the example and making some small adjustments the project still works though.

Feature description

Alternatives / workarounds

An alternative would be to fix the issues above, or even set up a new sample Android project following the current best practices. However, the risk is that this becomes outdated again in the next years.

Alternatively could also just do nothing (or maybe only fix some of the issues), but the question is then how much value examples/android-proguard-example in its current form provides to users.