diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java b/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java index 1604569719e9..57a55e277eaa 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java @@ -2488,6 +2488,7 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() { false, false, false, + false, true, false, !isFreeWPCom, @@ -2506,6 +2507,7 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() { SiteUtils.supportsLayoutGridFeature(mSite), SiteUtils.supportsTiledGalleryFeature(mSite), SiteUtils.supportsVideoPressFeature(mSite), + SiteUtils.supportsVideoPressV5Feature(mSite), SiteUtils.supportsEmbedVariationFeature(mSite, SiteUtils.WP_FACEBOOK_EMBED_JETPACK_VERSION), SiteUtils.supportsEmbedVariationFeature(mSite, SiteUtils.WP_INSTAGRAM_EMBED_JETPACK_VERSION), SiteUtils.supportsEmbedVariationFeature(mSite, SiteUtils.WP_LOOM_EMBED_JETPACK_VERSION), diff --git a/WordPress/src/main/java/org/wordpress/android/util/SiteUtils.java b/WordPress/src/main/java/org/wordpress/android/util/SiteUtils.java index 416d19eb0cc4..bb7d81142596 100644 --- a/WordPress/src/main/java/org/wordpress/android/util/SiteUtils.java +++ b/WordPress/src/main/java/org/wordpress/android/util/SiteUtils.java @@ -340,6 +340,10 @@ public static boolean supportsVideoPressFeature(SiteModel site) { return site != null && site.isWPCom(); } + public static boolean supportsVideoPressV5Feature(SiteModel site) { + return site != null && site.isWPCom() || site.isWPComAtomic(); + } + public static boolean supportsEmbedVariationFeature(SiteModel site, String minimalJetpackVersion) { return site != null && (site.isWPCom() || checkMinimalJetpackVersion(site, minimalJetpackVersion)); } diff --git a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergPropsBuilder.kt b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergPropsBuilder.kt index 53ad2c0c9aae..27bce5ff0990 100644 --- a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergPropsBuilder.kt +++ b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergPropsBuilder.kt @@ -14,6 +14,7 @@ data class GutenbergPropsBuilder( private val enableLayoutGridBlock: Boolean, private val enableTiledGalleryBlock: Boolean, private val enableVideoPressBlock: Boolean, + private val enableVideoPressV5Support: Boolean, private val enableFacebookEmbed: Boolean, private val enableInstagramEmbed: Boolean, private val enableLoomEmbed: Boolean, @@ -38,6 +39,7 @@ data class GutenbergPropsBuilder( enableLayoutGridBlock = enableLayoutGridBlock, enableTiledGalleryBlock = enableTiledGalleryBlock, enableVideoPressBlock = enableVideoPressBlock, + enableVideoPressV5Support = enableVideoPressV5Support, enableFacebookEmbed = enableFacebookEmbed, enableInstagramEmbed = enableInstagramEmbed, enableLoomEmbed = enableLoomEmbed,