Perovskite battery packaging