Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.wordpress.gutenberg.EditorConfiguration
* Eliminates duplication between GutenbergKitEditorFragment and GutenbergKitWarmupHelper.
*/
object EditorConfigurationBuilder {
private const val JETPACK_ASSET_LOADER_DOMAIN = "android-app-assets.jetpack.com"
/**
* Builds an EditorConfiguration from the provided settings map.
*
Expand Down Expand Up @@ -45,6 +46,9 @@ object EditorConfigurationBuilder {
// Editor asset caching configuration
configureEditorAssetCaching(settings, siteURL, siteApiNamespace)

// Custom asset loader domain for CORS requests
setAssetLoaderDomain(JETPACK_ASSET_LOADER_DOMAIN)

// Cookies
setCookies(settings.getSetting<Map<String, String>>("cookies") ?: emptyMap())

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ google-play-services-auth = '20.4.1'
google-services = '4.4.3'
gravatar = '2.5.0'
greenrobot-eventbus = '3.3.1'
gutenberg-kit = 'v0.8.1-alpha.1'
gutenberg-kit = '181-686ebf77fc3c7608ee9b674dc444cf26a141313a'
gutenberg-mobile = 'v1.121.0'
indexos-media-for-mobile = '43a9026f0973a2f0a74fa813132f6a16f7499c3a'
jackson-databind = '2.12.7.1'
Expand Down