Skip to content

Commit

Permalink
Merge pull request #2493 from wordpress-mobile/release/1.33.0
Browse files Browse the repository at this point in the history
Release 1.33.0
  • Loading branch information
SergioEstevao authored Jul 23, 2020
2 parents d6c6172 + 413bbf5 commit 5d3172c
Show file tree
Hide file tree
Showing 20 changed files with 1,006 additions and 760 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ jobs:
macos:
xcode: "11.2.1"
steps:
- run:
name: Install watchman
command: brew unlink python@2 && brew install watchman
- checkout
- checkout-submodules
- npm-install
Expand Down
15 changes: 8 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE/release_pull_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ Release for Gutenberg Mobile v1.XX.Y

## Release Submission Checklist

- [ ] Release number was bumped
- [ ] Aztec dependencies are pointing to a stable release
- iOS: 'grep WordPressAztec-iOS RNTAztecView.podspec'
- Android: 'grep aztecVersion react-native-aztec/android/build.gradle'
- [ ] Gutenberg 'Podfile' and 'Podfile.lock' inside './ios/' are updated to the release number
- [ ] Bundle package of the release is updated
- [ ] Check if `RELEASE-NOTES.txt` is updated with all the changes that made it to the release
- [ ] Release number was bumped in `package.json` and `gutenberg/packages/react-native-editor/package.json`.
- [ ] Aztec dependencies are pointing to a stable release.
- iOS: 'grep WordPressAztec-iOS RNTAztecView.podspec'.
- iOS: Aztec dependencies match in `RNTAztecView.podspec` and `gutenberg/packages/react-native-aztec/RNTAztecView.podspec`.
- Android: 'grep aztecVersion react-native-aztec/android/build.gradle'.
- [ ] Gutenberg 'Podfile' and 'Podfile.lock' inside 'gutenberg/package/react-native-editor/ios/' are updated to the release number.
- [ ] Bundle package of the release is updated.
- [ ] Check if `RELEASE-NOTES.txt` and `gutenberg/packages/react-native-editor/RELEASE-NOTES.txt` are updated with all the changes that made it to the release.

6 changes: 6 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.33.0
------
* [***] 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
------
* [***] Adds Copy, Cut, Paste, and Duplicate functionality to blocks
Expand Down
2 changes: 1 addition & 1 deletion RNTAztecView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Pod::Spec.new do |s|
s.xcconfig = {'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
s.dependency 'React-Core'
s.dependency 'WordPress-Aztec-iOS', '~> 1.19.2'
s.dependency 'WordPress-Aztec-iOS', '~> 1.19.3'

end
38 changes: 25 additions & 13 deletions bin/release_automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ if [[ ! "$CURRENT_BRANCH" =~ "^develop$|^main$|^release/.*" ]]; then
fi

# Confirm branch is clean
[ -z "$(git status --porcelain)" ] || { git status; printf "\nUncommitted changes found. Aborting release script...\n"; exit 1; }

[[ -z "$(git status --porcelain)" ]] || { git status; printf "\nUncommitted changes found. Aborting release script...\n"; exit 1; }

# Ask for new version number
CURRENT_VERSION_NUMBER=$(./node_modules/.bin/json -f package.json version)
Expand All @@ -42,28 +41,41 @@ cd gutenberg
git switch -c "$GB_RELEASE_BRANCH" || { echo "Error: could not create '$GB_RELEASE_BRANCH' branch."; exit 1; }
cd ..

# Set version number in package.json
npx json -I -f package.json -e "this.version='$VERSION_NUMBER'" || { echo "Error: could not update version in package.json"; exit 1; }

# Set version number in react-native-editor package.json
npx json -I -f gutenberg/packages/react-native-editor/package.json -e "this.version='$VERSION_NUMBER'" || { echo "Error: could not update version in react-native-editor package.json"; exit 1; }
# Set version numbers
for file in 'package.json' 'package-lock.json' 'gutenberg/packages/react-native-editor/package.json'; do
npx json -I -f "$file" -e "this.version='$VERSION_NUMBER'" || { echo "Error: could not update version in ${file}"; exit 1; }
done

# Commit react-native-editor package changes
# Commit react-native-editor version update
cd gutenberg
git commit -a -m "Update react-native-editor version to: $VERSION_NUMBER" || { echo "Error: failed to commit changes"; exit 1; }
git add 'packages/react-native-editor/package.json'
git commit -m "Release script: Update react-native-editor version to $VERSION_NUMBER" || { echo "Error: failed to commit changes"; exit 1; }
cd ..

# Commit package version update changes
git commit -a -m "Update gb mobile version to: $VERSION_NUMBER" || { echo "Error: failed to commit changes"; exit 1; }
# Commit gutenberg-mobile version updates
git add 'package.json' 'package-lock.json'
git commit -m "Release script: Update gb mobile version to $VERSION_NUMBER" || { echo "Error: failed to commit changes"; exit 1; }


# Make sure podfile is updated
npm run core preios
PRE_IOS_COMMAND="npm run core preios"
eval "$PRE_IOS_COMMAND"

# If preios results in changes, commit them
cd gutenberg
if [[ ! -z "$(git status --porcelain)" ]]; then
git commit -a -m "Release script: Update with changes from '$PRE_IOS_COMMAND'" || { echo "Error: failed to commit changes from '$PRE_IOS_COMMAND'"; exit 1; }
else
echo "There were no changes from '$PRE_IOS_COMMAND' to be committed."
fi
cd ..


# Update the bundles
npm run bundle || { printf "\nError: 'npm bundle' failed.\nIf there is an error stating something like \"Command 'bundle' unrecognized.\" above, perhaps try running 'rm -rf node_modules gutenberg/node_modules && npm install'.\n"; exit 1; }

# Commit bundle changes
git commit -a -m "Update bundle for: $VERSION_NUMBER" || { echo "Error: failed to commit changes"; exit 1; }
git commit -a -m "Release script: Update bundle for: $VERSION_NUMBER" || { echo "Error: failed to commit changes"; exit 1; }

# Verify before publishing a PR
read -p "This script will now create a PR on Github. Would you like to proceed? (y/n) " -n 1
Expand Down
711 changes: 381 additions & 330 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "core/social-link",
"category": "widgets",
"parent": [
"core/social-links"
],
"attributes": {
"url": {
"type": "string"
},
"service": {
"type": "string"
},
"label": {
"type": "string"
}
},
"supports": {
"reusable": false,
"html": false,
"lightBlockWrapper": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "core/social-links",
"category": "widgets",
"supports": {
"align": [
"left",
"center",
"right"
],
"lightBlockWrapper": true,
"anchor": true
}
}
24 changes: 22 additions & 2 deletions bundle/android/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<string name="gutenberg_native_alt_text" tools:ignore="UnusedResources">Alt Text</string>
<string name="gutenberg_native_an_unknown_error_occurred_please_try_again" tools:ignore="UnusedResources">An unknown error occurred. Please try again.</string>
<string name="gutenberg_native_annotations_sidebar" tools:ignore="UnusedResources">Annotations Sidebar</string>
<string name="gutenberg_native_base" tools:ignore="UnusedResources">Base</string>
<!-- translators: displayed right after the block is copied. -->
<string name="gutenberg_native_block_copied" tools:ignore="UnusedResources">Block copied</string>
<!-- translators: displayed right after the block is cut. -->
Expand All @@ -39,25 +40,34 @@
<string name="gutenberg_native_block_duplicated" tools:ignore="UnusedResources">Block duplicated</string>
<!-- translators: displayed right after the block is pasted. -->
<string name="gutenberg_native_block_pasted" tools:ignore="UnusedResources">Block pasted</string>
<!-- translators: displayed right after the block is removed. -->
<string name="gutenberg_native_block_removed" tools:ignore="UnusedResources">Block removed</string>
<string name="gutenberg_native_block_settings" tools:ignore="UnusedResources">Block settings</string>
<!-- translators: title for "Blog" page template -->
<string name="gutenberg_native_blog" tools:ignore="UnusedResources">Blog</string>
<string name="gutenberg_native_child_blocks" tools:ignore="UnusedResources">Child Blocks</string>
<string name="gutenberg_native_choose_from_device" tools:ignore="UnusedResources">Choose from device</string>
<string name="gutenberg_native_choose_image" tools:ignore="UnusedResources">Choose image</string>
<string name="gutenberg_native_choose_image_or_video" tools:ignore="UnusedResources">Choose image or video</string>
<string name="gutenberg_native_choose_video" tools:ignore="UnusedResources">Choose video</string>
<!-- translators: sample content for "Contact" page template -->
<string name="gutenberg_native_city_10100" tools:ignore="UnusedResources">City, 10100</string>
<string name="gutenberg_native_columns_settings" tools:ignore="UnusedResources">Columns Settings</string>
<string name="gutenberg_native_content" tools:ignore="UnusedResources">Content…</string>
<string name="gutenberg_native_convert_to_blocks" tools:ignore="UnusedResources">Convert to blocks</string>
<string name="gutenberg_native_coordinated_universal_time" tools:ignore="UnusedResources">Coordinated Universal Time</string>
<string name="gutenberg_native_copied_block" tools:ignore="UnusedResources">Copied block</string>
<string name="gutenberg_native_copy_block" tools:ignore="UnusedResources">Copy block</string>
<!-- translators: %s: current cell value. -->
<string name="gutenberg_native_current_value_is_s" tools:ignore="UnusedResources">Current value is %s</string>
<string name="gutenberg_native_customize" tools:ignore="UnusedResources">CUSTOMIZE</string>
<string name="gutenberg_native_customize_gradient" tools:ignore="UnusedResources">Customize Gradient</string>
<string name="gutenberg_native_cut_block" tools:ignore="UnusedResources">Cut block</string>
<string name="gutenberg_native_delete_site_logo" tools:ignore="UnusedResources">Delete Site Logo</string>
<string name="gutenberg_native_description" tools:ignore="UnusedResources">description</string>
<string name="gutenberg_native_dismiss" tools:ignore="UnusedResources">Dismiss</string>
<!-- translators: sample content for "About" page template -->
<string name="gutenberg_native_don_t_cry_because_it_s_over_smile_because_it_happened" tools:ignore="UnusedResources">Don’t cry because it’s over, smile because it happened.</string>
<string name="gutenberg_native_double_tap_and_hold_to_edit" tools:ignore="UnusedResources">Double tap and hold to edit</string>
<string name="gutenberg_native_double_tap_to_add_a_block" tools:ignore="UnusedResources">Double tap to add a block</string>
<!-- translators: accessibility text (hint for focusing a slider) -->
<string name="gutenberg_native_double_tap_to_change_the_value_using_slider" tools:ignore="UnusedResources">Double tap to change the value using slider</string>
Expand Down Expand Up @@ -85,7 +95,6 @@
<string name="gutenberg_native_dr_seuss" tools:ignore="UnusedResources">Dr. Seuss</string>
<string name="gutenberg_native_duplicate_block" tools:ignore="UnusedResources">Duplicate block</string>
<string name="gutenberg_native_edit_block_in_web_browser" tools:ignore="UnusedResources">Edit block in web browser</string>
<string name="gutenberg_native_edit_media" tools:ignore="UnusedResources">Edit media</string>
<string name="gutenberg_native_edit_video" tools:ignore="UnusedResources">Edit video</string>
<!-- translators: sample content for "Team" page template -->
<string name="gutenberg_native_email_me_a_href_mailto_mail_example_com_mail_example_com_a" tools:ignore="UnusedResources">Email me: &lt;a href=\"mailto:[email protected]\"&gt;[email protected]&lt;/a&gt;</string>
Expand All @@ -106,6 +115,7 @@ translators: sample content for "Team" page template -->
<string name="gutenberg_native_hide_keyboard" tools:ignore="UnusedResources">Hide keyboard</string>
<!-- translators: accessibility text. %s: image caption. -->
<string name="gutenberg_native_image_caption_s" tools:ignore="UnusedResources">Image caption. %s</string>
<string name="gutenberg_native_image_width" tools:ignore="UnusedResources">Image width</string>
<string name="gutenberg_native_insert_mention" tools:ignore="UnusedResources">Insert mention</string>
<!-- translators: sample content for "Services" page template -->
<string name="gutenberg_native_inspiration" tools:ignore="UnusedResources">Inspiration</string>
Expand All @@ -125,6 +135,7 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_link_inserted" tools:ignore="UnusedResources">Link inserted</string>
<string name="gutenberg_native_link_text" tools:ignore="UnusedResources">Link text</string>
<string name="gutenberg_native_link_to" tools:ignore="UnusedResources">Link To</string>
<string name="gutenberg_native_media_preview" tools:ignore="UnusedResources">Media preview</string>
<string name="gutenberg_native_move_block_down" tools:ignore="UnusedResources">Move block down</string>
<!-- translators: accessibility text. %1: current block position (number). %2: next block position (number) -->
<string name="gutenberg_native_move_block_down_from_row_1_s_to_row_2_s" tools:ignore="UnusedResources">Move block down from row %1$s to row %2$s</string>
Expand Down Expand Up @@ -155,6 +166,7 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_open_block_actions_menu" tools:ignore="UnusedResources">Open Block Actions Menu</string>
<string name="gutenberg_native_open_link_in_a_browser" tools:ignore="UnusedResources">Open link in a browser</string>
<string name="gutenberg_native_open_settings" tools:ignore="UnusedResources">Open Settings</string>
<string name="gutenberg_native_open_the_block_list_view" tools:ignore="UnusedResources">Open the block list view.</string>
<!-- translators: accessibility text. %s: Page break text. -->
<string name="gutenberg_native_page_break_block_s" tools:ignore="UnusedResources">Page break block. %s</string>
<string name="gutenberg_native_paste_block" tools:ignore="UnusedResources">Paste block</string>
Expand All @@ -175,6 +187,8 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_remove_block" tools:ignore="UnusedResources">Remove block</string>
<string name="gutenberg_native_remove_image" tools:ignore="UnusedResources">Remove Image</string>
<string name="gutenberg_native_replace_current_block" tools:ignore="UnusedResources">Replace Current Block</string>
<string name="gutenberg_native_replace_image_or_video" tools:ignore="UnusedResources">Replace image or video</string>
<string name="gutenberg_native_replace_video" tools:ignore="UnusedResources">Replace video</string>
<string name="gutenberg_native_reset_block" tools:ignore="UnusedResources">Reset Block</string>
<!-- translators: accessibility text for the media block empty state. %s: media type -->
<string name="gutenberg_native_s_block_empty" tools:ignore="UnusedResources">%s block. Empty</string>
Expand All @@ -193,10 +207,15 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_select_a_color" tools:ignore="UnusedResources">Select a color</string>
<!-- translators: title for "Services" page template -->
<string name="gutenberg_native_services" tools:ignore="UnusedResources">Services</string>
<string name="gutenberg_native_show_a_site_logo" tools:ignore="UnusedResources">Show a site logo</string>
<string name="gutenberg_native_show_post_content" tools:ignore="UnusedResources">Show post content</string>
<!-- translators: Checkbox toggle label -->
<string name="gutenberg_native_show_section" tools:ignore="UnusedResources">Show section</string>
<string name="gutenberg_native_sidebar_title_plugin" tools:ignore="UnusedResources">Sidebar title plugin</string>
<string name="gutenberg_native_site_icon" tools:ignore="UnusedResources">Site Icon</string>
<string name="gutenberg_native_site_logo" tools:ignore="UnusedResources">Site Logo</string>
<string name="gutenberg_native_site_logo_settings" tools:ignore="UnusedResources">Site Logo Settings</string>
<string name="gutenberg_native_site_tagline" tools:ignore="UnusedResources">Site Tagline</string>
<string name="gutenberg_native_size" tools:ignore="UnusedResources">Size</string>
<string name="gutenberg_native_start_writing" tools:ignore="UnusedResources">Start writing…</string>
<!-- translators: sample content for "Services" page template -->
Expand All @@ -218,6 +237,7 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_translate" tools:ignore="UnusedResources">Translate</string>
<string name="gutenberg_native_try_a_starter_layout" tools:ignore="UnusedResources">Try a starter layout</string>
<string name="gutenberg_native_ungroup" tools:ignore="UnusedResources">Ungroup</string>
<string name="gutenberg_native_upload_an_image_or_pick_one_from_your_media_library_to_be_your_si" tools:ignore="UnusedResources">Upload an image, or pick one from your media library, to be your site logo</string>
<!-- translators: sample content for "Contact" page template -->
<string name="gutenberg_native_usa" tools:ignore="UnusedResources">USA</string>
<!-- translators: accessibility text. %s: video caption. -->
Expand Down
Loading

0 comments on commit 5d3172c

Please sign in to comment.