It does still need to level up with high friendship, but making curry also gives your Pokémon exp which is gained once you leave camp. It is possible to reach the friendship threshold from the curry, leave camp and level up from the exp, then immediately evolve there.