Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Android react.gradle VmCleanup when packaging as library (#33179)
Summary: When packaging a react app as an android library with the enableVmCleanup flag not set to false, an error occurs since the "package${targetName}" task can not be found. This PR adds a simple null check, similar to what is being done for the sTask and mTask just below it to prevent the error. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Fixed] - Fixes android build error when compiling as library Pull Request resolved: #33179 Test Plan: Compile project as library (com.android.library), and should not trigger and error with these changes. Would also like to have this fix cherry-pick'd to release 0.67 after merging. Reviewed By: ShikaSD Differential Revision: D34475934 Pulled By: cortinico fbshipit-source-id: ce6ce43960c4b388c4b1da49a9a6e21fd3bf8e16
- Loading branch information