Dude, if you didn't think about it beforehand, then only you are to blame. For such purposes, there is a nondisclosure agreement
just to avoid the possible distribution of confidential information. If you haven't taken care of this, then now it will be a lesson for you. Of course, the developer also didn't do very well, but at least he had the right to do so.