gujjwal00 / avnc

VNC Client for Android
GNU General Public License v3.0
660 stars 59 forks source link

Feature: import/export settings #153

Closed babaric-dev closed 1 year ago

babaric-dev commented 1 year ago

We can import and export VNC servers. Why not app settings?

gujjwal00 commented 1 year ago

Before AVNC was released, I did try to include settings in import/export. But the SharedPreferences API was very limiting for this task. Its not really designed for bulk get/set, and required manual handling of different values and types. There is no version handling built-in, so ensuring some forward/backward compatibility requires extra work. Compared to this, server database is well modeled, version based, and well supported by serialization library.

That was the original reason. Now some settings are more complex. We have stuff like Servers => Lock saved servers, which involves user verification. There are couple of transient settings not exposed via UI. So adding import/export is even less desirable now.