Use separate manifests containing GCM permissions for debug / release; add gradle wrapper; add custom GCM broadcast receiver that points to right package.