build: Integrate GutenbergKit PostTypeDetails API changes#22784
Merged
dcalhoun merged 2 commits intojkmassel/gutenbergkit-settings-refactorfrom Apr 9, 2026
Merged
Conversation
Update GutenbergKit to version 446-e44fddffa326f38a3551a5bde9529b060e667a2c and migrate from String-based postType to PostTypeDetails, which encapsulates REST API namespace and base path for different post types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Project dependencies changeslist! Upgraded Dependencies
org.wordpress.gutenbergkit:android:v0.15.2, (changed from v0.15.1)tree +--- project :libs:editor
-| \--- org.wordpress.gutenbergkit:android:v0.15.1
+| \--- org.wordpress.gutenbergkit:android:v0.15.2
-\--- org.wordpress.gutenbergkit:android:v0.15.1 (*)
+\--- org.wordpress.gutenbergkit:android:v0.15.2 (*) |
dcalhoun
commented
Apr 9, 2026
4 tasks
Contributor
|
|
jkmassel
approved these changes
Apr 9, 2026
3713c83
into
jkmassel/gutenbergkit-settings-refactor
24 of 27 checks passed
Contributor
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## jkmassel/gutenbergkit-settings-refactor #22784 +/- ##
========================================================================
Coverage 37.40% 37.40%
========================================================================
Files 2320 2320
Lines 123658 123661 +3
Branches 16795 16795
========================================================================
+ Hits 46258 46260 +2
- Misses 73689 73690 +1
Partials 3711 3711 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jkmassel
added a commit
that referenced
this pull request
Apr 9, 2026
* Upgrade GutenbergKit from v0.11.1 to v0.15.0 Adapt to breaking API changes in GutenbergKit v0.15.0: - GutenbergView.createForEditor() removed: use GutenbergView constructor with configuration, dependencies, coroutineScope, and context parameters - gutenbergView.start(config) removed: EditorConfiguration must be provided at construction time - EditorConfiguration moved from org.wordpress.gutenberg to org.wordpress.gutenberg.model - EditorConfiguration.Builder() replaced with EditorConfiguration.builder(siteURL, siteApiRoot, postType) - setPostId(Int?) changed to setPostId(UInt?) - GutenbergView.warmup() removed: warmup helper is now a no-op The fragment's two-phase flow (create view now, start with editor settings later) is replaced by providing the full EditorConfiguration at fragment/view construction time. * feat: Implement LatestContentProvider for WebView recovery (#22774) * feat: Send GutenbergKit the latest content when requested Allow GutenbergKit to retrieve the latest content persisted in the host app as needed. This is important for allowing GutenbergKit to display the latest content after the WebView reloads or re-initializes from memory pressure or backgrounding. * feat: Set GutenbergKit post status * build: Update GutenbergKit version Integrate an unrelated content loss fix that is necessary for testing this branch's focus on content preservation. * build: Update GutenbergKit version to v0.15.1 * build: Integrate GutenbergKit PostTypeDetails API changes (#22784) * build: Integrate GutenbergKit PostTypeDetails API changes Update GutenbergKit to version 446-e44fddffa326f38a3551a5bde9529b060e667a2c and migrate from String-based postType to PostTypeDetails, which encapsulates REST API namespace and base path for different post types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * build: Update GutenbergKit to v0.15.2 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * build: Restore comments removed during GutenbergKit v0.15.0 upgrade Re-add section-organizing and explanatory comments that were accidentally dropped in the API migration. Only comments whose described code still exists are restored. * build: Restore KDoc on EditorConfigurationBuilder.build() Re-add the method documentation that was removed during the GutenbergKit v0.15.0 upgrade, minus the stale @param editorSettings that no longer exists. * fix: Delegate getContent() to getTitleAndContent() in GutenbergKit editor getContent() was returning an empty string after the v0.15.0 upgrade. Delegate to getTitleAndContent() and return the content portion so callers get the actual editor content. --------- Co-authored-by: David Calhoun <github@davidcalhoun.me> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Note
This builds atop of and targets #22764.
v0.15.2postTypefromStringtoPostTypeDetailsacrossGutenbergKitSettingsBuilder,EditorConfigurationBuilder, and testsTest plan
@mentioncorrectly appends the selected name without clearing existing block content