Adds a warning when installRelease is run in React Native. This indicates that the user ran react-native run-android --variant=release, whereas a user should run ./gradlew assembleRelease or ./gradlew bundleRelease to generate an artifact for which sourcemaps should be uploaded. This warning is only logged when a task named 'installRelease' is created in the project and JS sourcemap upload is enabled.
Testing
Ran ./gradlew assembleRelease and react-native run-android to confirm no message was received, and that the warning was only logged for react-native run-android --variant=release
Goal
Adds a warning when installRelease is run in React Native. This indicates that the user ran
react-native run-android --variant=release
, whereas a user should run./gradlew assembleRelease
or./gradlew bundleRelease
to generate an artifact for which sourcemaps should be uploaded. This warning is only logged when a task named 'installRelease' is created in the project and JS sourcemap upload is enabled.Testing
Ran
./gradlew assembleRelease
andreact-native run-android
to confirm no message was received, and that the warning was only logged forreact-native run-android --variant=release