From 594e6898b10cf3625d1ed628bd7ac3a40b72ad58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Est=C3=AAv=C3=A3o?= Date: Thu, 23 Jul 2020 18:40:39 +0100 Subject: [PATCH] Merge release 1.33.0 of GB-mobile to master (#24156) * Release script: Update react-native-editor version to 1.33.0 * Update release notes. * Update version numbers for packages. * Revert "Reduce spacing between label and slider control (#23580)" (#24109) This reverts commit 2a67de0ca030b828af77f6bcc3c3732d3eea2c0a. Co-authored-by: Antonis Lilis --- packages/react-native-aztec/package.json | 2 +- .../react-native-bridge/Gutenberg.podspec | 13 +- packages/react-native-bridge/package.json | 2 +- packages/react-native-editor/CHANGELOG.md | 1 + packages/react-native-editor/ios/Podfile.lock | 8 +- packages/react-native-editor/package.json | 248 +++++++++--------- 6 files changed, 138 insertions(+), 136 deletions(-) diff --git a/packages/react-native-aztec/package.json b/packages/react-native-aztec/package.json index 8644d098ea403c..c986afeb5c03a6 100644 --- a/packages/react-native-aztec/package.json +++ b/packages/react-native-aztec/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-aztec", - "version": "0.2.0", + "version": "1.33.0", "description": "Aztec view for react-native.", "private": true, "author": "The WordPress Contributors", diff --git a/packages/react-native-bridge/Gutenberg.podspec b/packages/react-native-bridge/Gutenberg.podspec index 5a8166c50102ca..befc1e429a050d 100644 --- a/packages/react-native-bridge/Gutenberg.podspec +++ b/packages/react-native-bridge/Gutenberg.podspec @@ -1,16 +1,17 @@ -package = JSON.parse(File.read(File.join(File.expand_path('../..'), 'package.json'))) +gutenbergPackage = JSON.parse(File.read(File.join(File.expand_path('../..'), 'package.json'))) +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) # Use the same RN version that the JS tools use -react_native_version = package['devDependencies']['react-native'] +react_native_version = gutenbergPackage['devDependencies']['react-native'] # Extract the tagged version if package.json points to a tag react_native_version = react_native_version.split("#v").last if react_native_version.include? "#v" Pod::Spec.new do |s| - s.name = 'Gutenberg' - s.version = package['version'] - s.summary = 'Printing since 1440' + s.name = 'Gutenberg' + s.version = package['version'] + s.summary = 'Printing since 1440' s.homepage = package['homepage'] s.license = package['license'] - s.authors = 'Automattic' + s.authors = 'Automattic' s.platform = :ios, '11.0' s.source = { :git => 'https://github.com/WordPress/gutenberg.git' } s.source_files = 'ios/**/*.{h,m,swift}' diff --git a/packages/react-native-bridge/package.json b/packages/react-native-bridge/package.json index 240ba3c3fd3ace..63e8b6a423cc8c 100644 --- a/packages/react-native-bridge/package.json +++ b/packages/react-native-bridge/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-bridge", - "version": "1.1.0", + "version": "1.33.0", "description": "Native bridge library used to integrate the block editor into a native App.", "private": true, "author": "The WordPress Contributors", diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index f2943a2e3af79d..ce7d74123eaabb 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -15,6 +15,7 @@ For each user feature we should also add a importance categorization label to i * [***] Media editing support in Media & Text block. * [***] New block: Social Icons +* [*] Cover block placeholder is updated to allow users start the block with a background color ## 1.32.0 diff --git a/packages/react-native-editor/ios/Podfile.lock b/packages/react-native-editor/ios/Podfile.lock index dfedbebe18261f..452a91028ada5f 100644 --- a/packages/react-native-editor/ios/Podfile.lock +++ b/packages/react-native-editor/ios/Podfile.lock @@ -21,7 +21,7 @@ PODS: - DoubleConversion - glog - glog (0.3.5) - - Gutenberg (8.5.1): + - Gutenberg (1.33.0): - React (= 0.61.5) - React-CoreModules (= 0.61.5) - React-RCTImage (= 0.61.5) @@ -243,7 +243,7 @@ PODS: - React - RNSVG (9.13.6-gb): - React - - RNTAztecView (0.2.0): + - RNTAztecView (1.33.0): - React-Core - WordPress-Aztec-iOS (~> 1.19.3) - WordPress-Aztec-iOS (1.19.3) @@ -377,7 +377,7 @@ SPEC CHECKSUMS: FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75 Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 glog: 1f3da668190260b06b429bb211bfbee5cd790c28 - Gutenberg: 04a90a71ab9a5e61b9dd185270dec12dff3c2777 + Gutenberg: 26f1ba13f6edd966506ebc5dbeee727ccaaa6a68 RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1 RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320 React: b6a59ef847b2b40bb6e0180a97d0ca716969ac78 @@ -405,7 +405,7 @@ SPEC CHECKSUMS: ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd ReactNativeDarkMode: f61376360c5d983907e5c316e8e1c853a8c2f348 RNSVG: 68a534a5db06dcbdaebfd5079349191598caef7b - RNTAztecView: 30c445fb62fc5b2f43adf14bf30ce2888e7a4746 + RNTAztecView: 8826fac3758dc309c31366d54ed819d177e7cbfa WordPress-Aztec-iOS: b7ac8b30f746992e85d9668453ac87c2cdcecf4f Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index f1c9419a323e76..3510f5c3f6e28a 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -1,126 +1,126 @@ { - "name": "@wordpress/react-native-editor", - "version": "1.31.2", - "description": "Mobile WordPress gutenberg editor.", - "author": "The WordPress Contributors", - "license": "GPL-2.0-or-later", - "keywords": [ - "wordpress", - "react-native" - ], - "private": true, - "config": { - "jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js", - "scssfiles": "src/*.scss src/**/*.scss" - }, - "homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/react-native-editor/README.md", - "repository": { - "type": "git", - "url": "https://github.com/WordPress/gutenberg.git", - "directory": "packages/react-native-editor" - }, - "bugs": { - "url": "https://github.com/WordPress/gutenberg/issues" - }, - "engines": { - "node": ">=10", - "npm": ">=6.9" - }, - "main": "src/index.js", - "react-native": "src/index", - "dependencies": { - "@babel/runtime": "^7.9.2", - "@react-native-community/blur": "3.6.0", - "@react-native-community/slider": "git+https://github.com/wordpress-mobile/react-native-slider.git#5ad284d92b8d886e366445bf215be741ed53ddc6", - "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", - "@wordpress/block-library": "file:../block-library", - "@wordpress/blocks": "file:../blocks", - "@wordpress/components": "file:../components", - "@wordpress/data": "file:../data", - "@wordpress/edit-post": "file:../edit-post", - "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", - "@wordpress/react-native-aztec": "file:../react-native-aztec", - "@wordpress/react-native-bridge": "file:../react-native-bridge", - "fast-average-color": "^4.3.0", - "jed": "^1.1.1", - "jsc-android": "^241213.1.0", - "jsdom-jscore-rn": "git+https://github.com/iamcco/jsdom-jscore-rn.git#a562f3d57c27c13e5bfc8cf82d496e69a3ba2800", - "metro-react-native-babel-preset": "0.57.0", - "metro-react-native-babel-transformer": "0.56.0", - "node-fetch": "^2.6.0", - "react-native": "0.61.5", - "react-native-dark-mode": "git+https://github.com/wordpress-mobile/react-native-dark-mode.git#f09bf1480e7b34536413ab3300f29e4375edb2c6", - "react-native-get-random-values": "git+https://github.com/wordpress-mobile/react-native-get-random-values.git#f03f2c16414aff4ea76064dcd00a9e3c6efc838d", - "react-native-hr": "git+https://github.com/Riglerr/react-native-hr.git#2d01a5cf77212d100e8b99e0310cce5234f977b3", - "react-native-hsv-color-picker": "git+https://github.com/wordpress-mobile/react-native-hsv-color-picker", - "react-native-keyboard-aware-scroll-view": "git+https://github.com/wordpress-mobile/react-native-keyboard-aware-scroll-view.git#gb-v0.8.8", - "react-native-linear-gradient": "git+https://github.com/wordpress-mobile/react-native-linear-gradient.git#52bf43077171cff8714ce3e0155f3ebb7f55bc37", - "react-native-modal": "^6.5.0", - "react-native-safe-area": "^0.5.0", - "react-native-sass-transformer": "^1.1.1", - "react-native-svg": "git+https://github.com/wordpress-mobile/react-native-svg.git#a628e92990a2404e30a0086f168bd2b5b7b4ce96", - "react-native-url-polyfill": "^1.1.2", - "react-native-video": "git+https://github.com/wordpress-mobile/react-native-video.git#1b964b107863351ed744fc104d7952bbec3e2d4f" - }, - "publishConfig": { - "access": "public" - }, - "scripts": { - "start": "react-native start", - "start:reset": "npm run clean:runtime && npm run start -- --reset-cache", - "start:debug": "node --inspect-brk node_modules/.bin/react-native start", - "prern-bundle": "cd ../.. && patch-package --patch-dir packages/react-native-editor/metro-patch", - "rn-bundle": "react-native bundle", - "postrn-bundle": "cd ../.. && patch-package --reverse --patch-dir packages/react-native-editor/metro-patch", - "prebundle": "npm run i18n-cache:force", - "bundle": "npm run bundle:android && npm run bundle:ios", - "bundle:android": "mkdir -p bundle/android && npm run rn-bundle -- --platform android --dev false --entry-file index.js --assets-dest bundle/android --bundle-output bundle/android/App.js --sourcemap-output bundle/android/App.js.map", - "bundle:ios": "mkdir -p bundle/ios && npm run rn-bundle -- --platform ios --dev false --entry-file index.js --assets-dest bundle/ios --bundle-output bundle/ios/App.js --sourcemap-output bundle/ios/App.js.map", - "i18n-cache": "node i18n-cache/index.js", - "i18n-cache:force": "cross-env REFRESH_I18N_CACHE=1 node i18n-cache/index.js", - "postinstall": "npm run i18n-cache", - "android": "react-native run-android", - "prewpandroid": "rm -Rf $TMPDIR/gbmobile-wpandroidfakernroot && mkdir $TMPDIR/gbmobile-wpandroidfakernroot && ln -s $(cd \"$(dirname \"../../../../../\")\"; pwd) $TMPDIR/gbmobile-wpandroidfakernroot/android", - "wpandroid": "npm run android -- --root $TMPDIR/gbmobile-wpandroidfakernroot --variant wasabiDebug --appIdSuffix beta --appFolder WordPress --main-activity=ui.WPLaunchActivity", - "preios": "cd ios && (bundle check --path=vendor/bundle > /dev/null || bundle install) && bundle exec pod install --repo-update", - "preios:carthage": "cd ../react-native-aztec && npm run install-aztec-ios", - "preios:carthage:update": "cd ../react-native-aztec && npm run update-aztec-ios", - "preios:xcode10": "cd ../../node_modules/react-native && ./scripts/ios-install-third-party.sh && cd third-party/glog-0.3.5 && [ -f libglog.pc ] || ../../scripts/ios-configure-glog.sh", - "ios": "react-native run-ios", - "ios:fast": "react-native run-ios", - "test": "cross-env NODE_ENV=test jest --verbose --config ../../test/native/jest.config.js", - "test:debug": "cross-env NODE_ENV=test node --inspect-brk jest --runInBand --verbose --config ../../test/native/jest.config.js", - "device-tests": "cross-env NODE_ENV=test jest --forceExit --detectOpenHandles --no-cache --maxWorkers=3 --reporters=default --reporters=jest-junit --verbose --config ../../test/native/jest_ui.config.js", - "device-tests-canary": "cross-env NODE_ENV=test jest --forceExit --detectOpenHandles --no-cache --maxWorkers=2 --testNamePattern=@canary --reporters=default --reporters=jest-junit --verbose --config ../../test/native/jest_ui.config.js", - "device-tests:local": "cross-env NODE_ENV=test jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --forceExit --config ../../test/native/jest_ui.config.js", - "device-tests:debug": "cross-env NODE_ENV=test node $NODE_DEBUG_OPTION --inspect-brk node_modules/jest/bin/jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config ../../test/native/jest_ui.config.js", - "test:e2e": "npm run test:e2e:android && npm run test:e2e:ios", - "test:e2e:android": "TEST_RN_PLATFORM=android npm run device-tests", - "test:e2e:android:debug": "TEST_RN_PLATFORM=android npm run device-tests:debug", - "test:e2e:ios": "TEST_RN_PLATFORM=ios npm run device-tests", - "test:e2e:android:local": "npm run test:e2e:build-app:android && npm run test:e2e:install-app:android && TEST_RN_PLATFORM=android npm run device-tests:local", - "test:e2e:android:local:debug": "npm run test:e2e:build-app:android && npm run test:e2e:install-app:android && npm run test:e2e:android:debug", - "test:e2e:ios:local": "npm run test:e2e:bundle:ios && npm run test:e2e:build-app:ios && TEST_RN_PLATFORM=ios npm run device-tests:local", - "test:e2e:bundle:android": "mkdir -p android/app/src/main/assets && npm run rn-bundle -- --reset-cache --platform android --dev false --minify false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res", - "test:e2e:build-app:android": "npm run test:e2e:bundle:android && cd android && ./gradlew clean && ./gradlew assembleDebug", - "test:e2e:install-app:android": "cd android && ./gradlew installDebug", - "test:e2e:bundle:ios": "mkdir -p ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app && npm run rn-bundle -- --reset-cache --platform=ios --dev=false --minify false --entry-file=index.js --bundle-output=./ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app/main.jsbundle --assets-dest=./ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app", - "test:e2e:build-app:ios": "npm run ios -- --configuration Release --no-packager --simulator 'iPhone 11 (13.4)'", - "build:gutenberg": "cd gutenberg && npm ci && npm run build", - "clean": "npm run clean:build-artifacts; npm run clean:aztec; npm run clean:haste; npm run clean:jest; npm run clean:metro; npm run clean:react; npm run clean:watchman", - "clean:runtime": "npm run clean:haste; npm run clean:react; npm run clean:metro; npm run clean:jest; npm run clean:watchman; npm run clean:babel-cache", - "clean:build-artifacts": "rm -rf ./ios/build && rm -rf ./ios/Pods", - "clean:aztec": "cd ../react-native-aztec && npm run clean", - "clean:haste": "rm -rf /tmp/haste-map-react-native-packager-*", - "clean:install": "npm run clean; npm install", - "clean:jest": "jest --clearCache --config ../../test/native/jest.config.js; rm -rf $TMPDIR/jest_*", - "clean:metro": "rm -rf $TMPDIR/metro-cache-*;", - "clean:react": "rm -rf $TMPDIR/react-*", - "clean:watchman": "command -v watchman >/dev/null 2>&1 && watchman watch-del-all; true", - "clean:babel-cache": "rm -rf ../../node_modules/.cache/babel-loader/*", - "clean:i18n-cache": "rm -rf ./i18n-cache/data/*.json && rm -f ./i18n-cache/index.native.js" - } + "name": "@wordpress/react-native-editor", + "version": "1.33.0", + "description": "Mobile WordPress gutenberg editor.", + "author": "The WordPress Contributors", + "license": "GPL-2.0-or-later", + "keywords": [ + "wordpress", + "react-native" + ], + "private": true, + "config": { + "jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js", + "scssfiles": "src/*.scss src/**/*.scss" + }, + "homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/react-native-editor/README.md", + "repository": { + "type": "git", + "url": "https://github.com/WordPress/gutenberg.git", + "directory": "packages/react-native-editor" + }, + "bugs": { + "url": "https://github.com/WordPress/gutenberg/issues" + }, + "engines": { + "node": ">=10", + "npm": ">=6.9" + }, + "main": "src/index.js", + "react-native": "src/index", + "dependencies": { + "@babel/runtime": "^7.9.2", + "@react-native-community/blur": "3.6.0", + "@react-native-community/slider": "git+https://github.com/wordpress-mobile/react-native-slider.git#5ad284d92b8d886e366445bf215be741ed53ddc6", + "@wordpress/api-fetch": "file:../api-fetch", + "@wordpress/block-editor": "file:../block-editor", + "@wordpress/block-library": "file:../block-library", + "@wordpress/blocks": "file:../blocks", + "@wordpress/components": "file:../components", + "@wordpress/data": "file:../data", + "@wordpress/edit-post": "file:../edit-post", + "@wordpress/element": "file:../element", + "@wordpress/hooks": "file:../hooks", + "@wordpress/i18n": "file:../i18n", + "@wordpress/react-native-aztec": "file:../react-native-aztec", + "@wordpress/react-native-bridge": "file:../react-native-bridge", + "fast-average-color": "^4.3.0", + "jed": "^1.1.1", + "jsc-android": "^241213.1.0", + "jsdom-jscore-rn": "git+https://github.com/iamcco/jsdom-jscore-rn.git#a562f3d57c27c13e5bfc8cf82d496e69a3ba2800", + "metro-react-native-babel-preset": "0.57.0", + "metro-react-native-babel-transformer": "0.56.0", + "node-fetch": "^2.6.0", + "react-native": "0.61.5", + "react-native-dark-mode": "git+https://github.com/wordpress-mobile/react-native-dark-mode.git#f09bf1480e7b34536413ab3300f29e4375edb2c6", + "react-native-get-random-values": "git+https://github.com/wordpress-mobile/react-native-get-random-values.git#f03f2c16414aff4ea76064dcd00a9e3c6efc838d", + "react-native-hr": "git+https://github.com/Riglerr/react-native-hr.git#2d01a5cf77212d100e8b99e0310cce5234f977b3", + "react-native-hsv-color-picker": "git+https://github.com/wordpress-mobile/react-native-hsv-color-picker", + "react-native-keyboard-aware-scroll-view": "git+https://github.com/wordpress-mobile/react-native-keyboard-aware-scroll-view.git#gb-v0.8.8", + "react-native-linear-gradient": "git+https://github.com/wordpress-mobile/react-native-linear-gradient.git#52bf43077171cff8714ce3e0155f3ebb7f55bc37", + "react-native-modal": "^6.5.0", + "react-native-safe-area": "^0.5.0", + "react-native-sass-transformer": "^1.1.1", + "react-native-svg": "git+https://github.com/wordpress-mobile/react-native-svg.git#a628e92990a2404e30a0086f168bd2b5b7b4ce96", + "react-native-url-polyfill": "^1.1.2", + "react-native-video": "git+https://github.com/wordpress-mobile/react-native-video.git#1b964b107863351ed744fc104d7952bbec3e2d4f" + }, + "publishConfig": { + "access": "public" + }, + "scripts": { + "start": "react-native start", + "start:reset": "npm run clean:runtime && npm run start -- --reset-cache", + "start:debug": "node --inspect-brk node_modules/.bin/react-native start", + "prern-bundle": "cd ../.. && patch-package --patch-dir packages/react-native-editor/metro-patch", + "rn-bundle": "react-native bundle", + "postrn-bundle": "cd ../.. && patch-package --reverse --patch-dir packages/react-native-editor/metro-patch", + "prebundle": "npm run i18n-cache:force", + "bundle": "npm run bundle:android && npm run bundle:ios", + "bundle:android": "mkdir -p bundle/android && npm run rn-bundle -- --platform android --dev false --entry-file index.js --assets-dest bundle/android --bundle-output bundle/android/App.js --sourcemap-output bundle/android/App.js.map", + "bundle:ios": "mkdir -p bundle/ios && npm run rn-bundle -- --platform ios --dev false --entry-file index.js --assets-dest bundle/ios --bundle-output bundle/ios/App.js --sourcemap-output bundle/ios/App.js.map", + "i18n-cache": "node i18n-cache/index.js", + "i18n-cache:force": "cross-env REFRESH_I18N_CACHE=1 node i18n-cache/index.js", + "postinstall": "npm run i18n-cache", + "android": "react-native run-android", + "prewpandroid": "rm -Rf $TMPDIR/gbmobile-wpandroidfakernroot && mkdir $TMPDIR/gbmobile-wpandroidfakernroot && ln -s $(cd \"$(dirname \"../../../../../\")\"; pwd) $TMPDIR/gbmobile-wpandroidfakernroot/android", + "wpandroid": "npm run android -- --root $TMPDIR/gbmobile-wpandroidfakernroot --variant wasabiDebug --appIdSuffix beta --appFolder WordPress --main-activity=ui.WPLaunchActivity", + "preios": "cd ios && (bundle check --path=vendor/bundle > /dev/null || bundle install) && bundle exec pod install --repo-update", + "preios:carthage": "cd ../react-native-aztec && npm run install-aztec-ios", + "preios:carthage:update": "cd ../react-native-aztec && npm run update-aztec-ios", + "preios:xcode10": "cd ../../node_modules/react-native && ./scripts/ios-install-third-party.sh && cd third-party/glog-0.3.5 && [ -f libglog.pc ] || ../../scripts/ios-configure-glog.sh", + "ios": "react-native run-ios", + "ios:fast": "react-native run-ios", + "test": "cross-env NODE_ENV=test jest --verbose --config ../../test/native/jest.config.js", + "test:debug": "cross-env NODE_ENV=test node --inspect-brk jest --runInBand --verbose --config ../../test/native/jest.config.js", + "device-tests": "cross-env NODE_ENV=test jest --forceExit --detectOpenHandles --no-cache --maxWorkers=3 --reporters=default --reporters=jest-junit --verbose --config ../../test/native/jest_ui.config.js", + "device-tests-canary": "cross-env NODE_ENV=test jest --forceExit --detectOpenHandles --no-cache --maxWorkers=2 --testNamePattern=@canary --reporters=default --reporters=jest-junit --verbose --config ../../test/native/jest_ui.config.js", + "device-tests:local": "cross-env NODE_ENV=test jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --forceExit --config ../../test/native/jest_ui.config.js", + "device-tests:debug": "cross-env NODE_ENV=test node $NODE_DEBUG_OPTION --inspect-brk node_modules/jest/bin/jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config ../../test/native/jest_ui.config.js", + "test:e2e": "npm run test:e2e:android && npm run test:e2e:ios", + "test:e2e:android": "TEST_RN_PLATFORM=android npm run device-tests", + "test:e2e:android:debug": "TEST_RN_PLATFORM=android npm run device-tests:debug", + "test:e2e:ios": "TEST_RN_PLATFORM=ios npm run device-tests", + "test:e2e:android:local": "npm run test:e2e:build-app:android && npm run test:e2e:install-app:android && TEST_RN_PLATFORM=android npm run device-tests:local", + "test:e2e:android:local:debug": "npm run test:e2e:build-app:android && npm run test:e2e:install-app:android && npm run test:e2e:android:debug", + "test:e2e:ios:local": "npm run test:e2e:bundle:ios && npm run test:e2e:build-app:ios && TEST_RN_PLATFORM=ios npm run device-tests:local", + "test:e2e:bundle:android": "mkdir -p android/app/src/main/assets && npm run rn-bundle -- --reset-cache --platform android --dev false --minify false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res", + "test:e2e:build-app:android": "npm run test:e2e:bundle:android && cd android && ./gradlew clean && ./gradlew assembleDebug", + "test:e2e:install-app:android": "cd android && ./gradlew installDebug", + "test:e2e:bundle:ios": "mkdir -p ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app && npm run rn-bundle -- --reset-cache --platform=ios --dev=false --minify false --entry-file=index.js --bundle-output=./ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app/main.jsbundle --assets-dest=./ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app", + "test:e2e:build-app:ios": "npm run ios -- --configuration Release --no-packager --simulator 'iPhone 11 (13.4)'", + "build:gutenberg": "cd gutenberg && npm ci && npm run build", + "clean": "npm run clean:build-artifacts; npm run clean:aztec; npm run clean:haste; npm run clean:jest; npm run clean:metro; npm run clean:react; npm run clean:watchman", + "clean:runtime": "npm run clean:haste; npm run clean:react; npm run clean:metro; npm run clean:jest; npm run clean:watchman; npm run clean:babel-cache", + "clean:build-artifacts": "rm -rf ./ios/build && rm -rf ./ios/Pods", + "clean:aztec": "cd ../react-native-aztec && npm run clean", + "clean:haste": "rm -rf /tmp/haste-map-react-native-packager-*", + "clean:install": "npm run clean; npm install", + "clean:jest": "jest --clearCache --config ../../test/native/jest.config.js; rm -rf $TMPDIR/jest_*", + "clean:metro": "rm -rf $TMPDIR/metro-cache-*;", + "clean:react": "rm -rf $TMPDIR/react-*", + "clean:watchman": "command -v watchman >/dev/null 2>&1 && watchman watch-del-all; true", + "clean:babel-cache": "rm -rf ../../node_modules/.cache/babel-loader/*", + "clean:i18n-cache": "rm -rf ./i18n-cache/data/*.json && rm -f ./i18n-cache/index.native.js" + } }