It all depends....
I have seen & heard different stories and instructions about dry-fire for years and years now. As an example, I personally own firearms where the instruction booklets say it's not a problem ( my ruger GP100 ) and then others that tell you NOT to in very clear language ( beretta 92FS ), and have rifles and shotguns where the issue isn't even addressed in the booklets that came with them. Overall, I think the best advice i ever got was from a gunsmith that had been in the business for years. He told me that he'd keep it to a minimum with centerfire, and never with a rimfire, and i've followed that advice for decades now. Obviously some dry-firing is necessary and cannot be avoided. Other than that, i'd say it's a case of lesser = better. It's always worked for me.