Apple and Google both announced new features to help developers comply.