Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master to develop post release v1.20.0 #1770

Merged
merged 40 commits into from
Jan 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d3fab35
Let's not escape strings in android strings.xml with double quotes as…
Tug Nov 28, 2019
6013ce1
Add back line break
Tug Nov 29, 2019
b1bf800
Merge remote-tracking branch 'origin/develop' into update/simplify-an…
Tug Dec 2, 2019
682a10c
Merge remote-tracking branch 'origin/develop' into update/simplify-an…
Tug Dec 18, 2019
9af1651
Merge remote-tracking branch 'origin/develop' into update/simplify-an…
Tug Dec 20, 2019
bfcd739
Update Aztec version to contain the content watcher
planarvoid Dec 20, 2019
ff2669c
Increase gutenberg version
planarvoid Dec 20, 2019
b406e72
Merge remote-tracking branch 'origin/develop' into update/simplify-an…
Tug Dec 20, 2019
60fee91
Merge remote-tracking branch 'origin/develop' into update/simplify-an…
Tug Dec 20, 2019
da41861
Target aztec release
planarvoid Jan 2, 2020
e6cfebc
Update package.json and JS bundle for 1.20.0 release
Tug Jan 7, 2020
63576ba
Fixes after navigation for release 1.20.0 (#1754)
lukewalczak Jan 7, 2020
4163a5e
[FIX] Rich Text loop when autocompleting text on iOS (#1702)
dratwas Jan 7, 2020
3c3d7b3
Update release notes
Tug Jan 8, 2020
006154a
Update bundles
Tug Jan 8, 2020
5a3cbc7
Correct displaying photo during upload (#1758)
lukewalczak Jan 9, 2020
35b7fce
Merge remote-tracking branch 'origin/release/1.20.0' into update/simp…
Tug Jan 9, 2020
cea513c
Revert changes on bundle/
Tug Jan 9, 2020
1aa50ea
Merge pull request #1637 from wordpress-mobile/update/simplify-androi…
Tug Jan 9, 2020
cfab4cd
Update bundles
Tug Jan 9, 2020
3ee93dd
Merge pull request #1710 from wordpress-mobile/feature/add_content_wa…
malinajirka Jan 10, 2020
af49400
Merge remote-tracking branch 'origin/master' into release/1.20.0
Tug Jan 10, 2020
184d0eb
Update bundles
Tug Jan 10, 2020
9114524
Revert "Upgrade the Video lib to fix #1705"
hypest Jan 10, 2020
3863c86
Revert "Revert "Upgrade the Video lib to fix #1705""
hypest Jan 10, 2020
162a462
Bump the react-native-video hash
hypest Jan 10, 2020
5b727a7
Fix crash once adding a Group block (#1755)
lukewalczak Jan 10, 2020
39f9f34
Bump the react-native-video hash
hypest Jan 10, 2020
706b981
Merge pull request #1768 from wordpress-mobile/issue/1761-video-overf…
hypest Jan 10, 2020
feb339e
Update sourcemaps in bundle (no code change it seems)
Tug Jan 10, 2020
22e2701
Stepper component is actually not used yet, updating release notes
Tug Jan 10, 2020
13c9a41
Update release notes to remove fix for a feature that is behind dev flag
Tug Jan 10, 2020
aaa43ff
Merge pull request #1752 from wordpress-mobile/release/1.20.0
Tug Jan 10, 2020
92f1baf
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Jan 13, 2020
5f99aa6
Point gutenberg ref to latest update of rnmobile/release-v1.20.0-to-m…
Tug Jan 13, 2020
0e05a8d
Adds missing DOMParser implementation
koke Jan 13, 2020
198aa29
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Jan 14, 2020
0d437cf
Update gutenberg ref
mchowning Jan 14, 2020
497d84e
Update gutenberg ref
Tug Jan 14, 2020
3a71bb4
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Jan 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
1.20.0
------
* Fix bug where image placeholders would sometimes not be shown
* Fix crash on undo
* Style fixes on the navigation UI
* [iOS] Fix focus issue

1.19.0
------
Expand Down
16 changes: 12 additions & 4 deletions bin/po2android.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ const indent = ' ';
* @return {string} Escaped string to be copied into the XML <string></string> node
*/
function escapeResourceXML( unsafeXMLValue ) {
// Let's first replace XML special characters that JSON.stringify does not escape: <, > and &
// Then let's use JSON.stringify to handle pre and post spaces as well as escaping ", \, \t and \n
return JSON.stringify( unsafeXMLValue.replace( /[<>&]/g, function( character ) {
// See: https://tekeye.uk/android/examples/android-string-resources-gotchas
// Let's replace XML special characters <, >, &, ", ', \, \t and \n
// Note that this does not support android:textstyle attributes (<b></b>...)
return unsafeXMLValue.replace( /(\r?\n|\r|\t|<|>|&|'|"|\\)/gm, function( character ) {
switch ( character ) {
case '<': return '&lt;';
case '>': return '&gt;';
case '&': return '&amp;';
case '\'': return '\\\'';
case '"': return '\\\"';
case '\r':
case '\n':
case '\r\n': return '\\n';
case '\t': return '\\t';
case '\\': return '\\\\';
}
} ) );
} );
}

/**
Expand Down
1,725 changes: 868 additions & 857 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.

167 changes: 84 additions & 83 deletions bundle/android/strings.xml

Large diffs are not rendered by default.

1,739 changes: 875 additions & 864 deletions bundle/ios/App.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/GutenbergNativeTranslations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Foundation
private func dummy() {
_ = NSLocalizedString("'%s' isn't yet supported on WordPress for Android", comment: "translators: %s: Name of the block")
_ = NSLocalizedString("'%s' isn't yet supported on WordPress for iOS", comment: "")
_ = NSLocalizedString("%1$s. Current value is %2$s", comment: "translators: accessibility text. Inform about current value. %1$s: Control label %2$s: Current value.")
_ = NSLocalizedString("%s Block", comment: "translators: accessibility text. %s: block name.")
_ = NSLocalizedString("%s block. Empty", comment: "translators: accessibility text for the media block empty state. %s: media type")
_ = NSLocalizedString("%s block. This block has invalid content", comment: "translators: accessibility text for blocks with invalid content. %d: localized block title")
Expand Down Expand Up @@ -81,6 +82,5 @@ private func dummy() {
_ = NSLocalizedString("Title:", comment: "")
_ = NSLocalizedString("Translate", comment: "")
_ = NSLocalizedString("Ungroup", comment: "")
_ = NSLocalizedString("Unsupported", comment: "")
_ = NSLocalizedString("We are working hard to add more blocks with each release. In the meantime, you can also edit this post on the web.", comment: "")
_ = NSLocalizedString("WordPress Media Library", comment: "")
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenberg-mobile",
"version": "1.19.0",
"version": "1.20.0",
"private": true,
"config": {
"jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js",
Expand Down Expand Up @@ -85,7 +85,9 @@
"pregenstrings": "test -f gutenberg.pot || yarn makepot:gutenberg",
"genstrings": "yarn genstrings:android && yarn genstrings:ios",
"genstrings:android": "yarn makepot:android && ./bin/po2android.js gutenberg-android.pot bundle/android/strings.xml",
"genstrings:android:check": "xmllint --noout bundle/android/strings.xml",
"genstrings:ios": "yarn makepot:ios && ./bin/po2swift.js gutenberg-ios.pot bundle/ios/GutenbergNativeTranslations.swift",
"postgenstrings:android": "yarn genstrings:android:check",
"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": "yarn android --root $TMPDIR/gbmobile-wpandroidfakernroot --variant wasabiDebug --appIdSuffix beta --appFolder WordPress --main-activity=ui.WPLaunchActivity",
Expand Down Expand Up @@ -167,7 +169,7 @@
"react-native-recyclerview-list": "git+https://github.com/wordpress-mobile/react-native-recyclerview-list.git#eadaa2f62d2f488d4dc80f9148e52b62047297ab",
"react-native-safe-area": "^0.5.0",
"react-native-svg": "git+https://github.com/wordpress-mobile/react-native-svg.git#d466eb06a38e6f553f08666f0ca784d47fd6f724",
"react-native-video": "git+https://github.com/wordpress-mobile/react-native-video.git#6c75579a95a6ddb3762b6e11ef004c2cd0bed537",
"react-native-video": "git+https://github.com/wordpress-mobile/react-native-video.git#ad64098edc4ce1cd0ad783cb1843df634d997fdb",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-multi": "^0.1.12",
Expand Down
2 changes: 1 addition & 1 deletion react-native-aztec/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
wordpressUtilsVersion = '1.22'
espressoVersion = '3.0.1'

aztecVersion = 'v1.3.36'
aztecVersion = 'v1.3.37'
}

repositories {
Expand Down
3 changes: 2 additions & 1 deletion react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ extension RCTAztecView: UITextViewDelegate {
}

func textViewDidEndEditing(_ textView: UITextView) {
onBlur?([:])
let text = packForRN(cleanHTML(), withName: "text")
onBlur?(text)
}
}
2 changes: 1 addition & 1 deletion react-native-aztec/src/AztecView.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class AztecView extends React.Component {

_onPress = (event) => {
if ( ! this.isFocused() ) {
this.focus(event); // Call to move the focus in RN way (TextInputState)
this.focus(); // Call to move the focus in RN way (TextInputState)
this._onFocus(event); // Check if there are listeners set on the focus event
}
}
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11016,9 +11016,9 @@ react-native-sass-transformer@^1.1.1:
version "9.3.3-gb"
resolved "git+https://github.com/wordpress-mobile/react-native-svg.git#d466eb06a38e6f553f08666f0ca784d47fd6f724"

"react-native-video@git+https://github.com/wordpress-mobile/react-native-video.git#6c75579a95a6ddb3762b6e11ef004c2cd0bed537":
"react-native-video@git+https://github.com/wordpress-mobile/react-native-video.git#ad64098edc4ce1cd0ad783cb1843df634d997fdb":
version "4.4.1"
resolved "git+https://github.com/wordpress-mobile/react-native-video.git#6c75579a95a6ddb3762b6e11ef004c2cd0bed537"
resolved "git+https://github.com/wordpress-mobile/react-native-video.git#ad64098edc4ce1cd0ad783cb1843df634d997fdb"
dependencies:
keymirror "^0.1.1"
prop-types "^15.5.10"
Expand Down