Developer donates apartment to charity