mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
Disable crunchPngs check
This commit is contained in:
@@ -38,12 +38,12 @@ async function runReactNativeBundleCommand(
|
|||||||
config,
|
config,
|
||||||
) {
|
) {
|
||||||
let gradleConfig = {};
|
let gradleConfig = {};
|
||||||
if (platform === 'android') {
|
// if (platform === 'android') {
|
||||||
gradleConfig = await checkGradleConfig();
|
// gradleConfig = await checkGradleConfig();
|
||||||
if (gradleConfig.crunchPngs !== false) {
|
// if (gradleConfig.crunchPngs !== false) {
|
||||||
throw new Error('请先禁用android的crunchPngs优化,具体请参考 https://pushy.reactnative.cn/docs/getting-started.html#%E7%A6%81%E7%94%A8android%E7%9A%84crunch%E4%BC%98%E5%8C%96')
|
// throw new Error('请先禁用android的crunchPngs优化,具体请参考 https://pushy.reactnative.cn/docs/getting-started.html#%E7%A6%81%E7%94%A8android%E7%9A%84crunch%E4%BC%98%E5%8C%96')
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
let reactNativeBundleArgs = [];
|
let reactNativeBundleArgs = [];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user