I would finish the master thesis first. Publishing a half finished app doesn't make sense for me. The whole thing rather sounds like some kind of procrastination. Successfully finishing university with a good degree on the other hand is a sure shot and something you can build on later in any case.