In computer there will be a "saves" folder at the game location if I'm not wrong. You just need to copy the folder to the new version of the game if i'm not wrong! (I play on android lol don't mind me)
At mobile, inside your Android folder (you'll need to dig into your file browser a bit to find it) there's local saves of all your games and apps! You just need to copy the "saves" folder into the new version after you install it! But if you just download and install the new version, unless that appears something as "unable to install the newer version" or whatever like that, you won't lose your game files!
I hope that it helped!