Skip to content

Add "Autosave" bridge methods and enable local auto-save of posts#1351

Merged
daniloercoli merged 13 commits intodevelopfrom
add/autosave-monitor
Sep 19, 2019
Merged

Add "Autosave" bridge methods and enable local auto-save of posts#1351
daniloercoli merged 13 commits intodevelopfrom
add/autosave-monitor

Conversation

@daniloercoli
Copy link
Copy Markdown
Contributor

@daniloercoli daniloercoli commented Sep 4, 2019

Fixes wordpress-mobile/WordPress-Android#10415

This PR adds the required bridge methods to Android that are used to link the GB side with the native side, and enable auto-save triggered from the GB side.

To tests this PR, follow the instruction on the following wp-android PR: wordpress-mobile/WordPress-Android#10483

cc @etoledom Once the approach is validated we should add the iOS code before merging this PR.

Edit:
WPiOS PR: wordpress-mobile/WordPress-iOS#12489
gutenberg PR: WordPress/gutenberg#17329

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

…rg-mobile into add/autosave-monitor

* 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile: (56 commits)
  Update gutenberg ref
  Update gutenberg ref
  Update gutenberg ref
  Update gutenberg ref
  Add support for group component (#1335)
  Update gutenberg hash
  fix error generating app name on sauce
  Bump eslint-utils from 1.3.1 to 1.4.2
  Update gutenberg ref
  Update release notes
  Update gutenberg ref to rnmobile/master HEAD
  disable paste tests
  MediaUpload and MediaPlaceholder unify props (#1310)
  Update gutenberg ref (#1340)
  Update gutenberg ref
  disable list tests and enable paste tests
  enable list tests
  enable list end tests
  enable block insertion tests
  enable heading tests
  ...

# Conflicts:
#	gutenberg
Copy link
Copy Markdown
Contributor

@mkevins mkevins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this on Pixel 3a, and it fixes the issue as described.

Looks good! Nice work @daniloercoli ! 🎉

@mkevins
Copy link
Copy Markdown
Contributor

mkevins commented Sep 5, 2019

Just adding: gb companion PR link: WordPress/gutenberg#17329

Copy link
Copy Markdown
Contributor

@marecar3 marecar3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @daniloercoli !
Working as expected!

@etoledom
Copy link
Copy Markdown
Contributor

etoledom commented Sep 6, 2019

Added the iOS side: 4b9881f

I also created the WPiOS side PR: wordpress-mobile/WordPress-iOS#12489

In what version we want to ship this?
If it's WP apps v13.3, I think we should target our latest frozen branch? (1.12.0)
I'm a bit confused with the release dates.

If that's not the case, we won't be able to merge the WPiOS PR until its own next code freeze, since these changes has breaking changes.

@koke
Copy link
Copy Markdown
Member

koke commented Sep 6, 2019

Don't forget to generate new bundles before merging this, I went to test the iOS PR and I kept wondering why it wasn't working 😅

@daniloercoli
Copy link
Copy Markdown
Contributor Author

If that's not the case, we won't be able to merge the WPiOS PR until its own next code freeze, since these changes has breaking changes.

I think we should not touch the frozen branch. So for both iOS and Android we need to wait until next code freeze.

…rg-mobile into add/autosave-monitor

* 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile:
  [iOS]Fix: Oddly formatted text hangs Gutenberg (#1352)
  Remove redundant bg color within button appender (#1348)
  Update bundles
  Update package.json version to 1.12.0

# Conflicts:
#	bundle/android/App.js
#	bundle/android/App.js.map
#	bundle/ios/App.js
#	bundle/ios/App.js.map
@daniloercoli daniloercoli merged commit 6c602b2 into develop Sep 19, 2019
@daniloercoli daniloercoli deleted the add/autosave-monitor branch September 19, 2019 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local auto-save doesn't work in Gutenberg

5 participants