On Windows/macOS/Linux, it's automatic. On Android, it's impossible, since last time I checked, each update requires you to uninstall and reinstall the game entirely, which deletes your save data.
... why is it required to uninstall first, anyway?