From 9a049b6d563ef358b647c14a926f6ab1fb62d5ae Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Thu, 25 Jan 2024 18:23:22 +0100 Subject: [PATCH] [RNMobile] Remove `mediaFilesCollectionBlock` initial prop (#58140) * Remove `mediaFilesCollectionBlock` initial prop * Remove `enableMediaFilesCollectionBlocks` from Gutenberg demo app --- .../java/org/wordpress/mobile/WPAndroidGlue/GutenbergProps.kt | 3 --- packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift | 1 - .../ios/GutenbergDemo/GutenbergViewController.swift | 1 - 3 files changed, 5 deletions(-) diff --git a/packages/react-native-bridge/android/react-native-bridge/src/main/java/org/wordpress/mobile/WPAndroidGlue/GutenbergProps.kt b/packages/react-native-bridge/android/react-native-bridge/src/main/java/org/wordpress/mobile/WPAndroidGlue/GutenbergProps.kt index ec847d71bf51c..e56a9bf204e74 100644 --- a/packages/react-native-bridge/android/react-native-bridge/src/main/java/org/wordpress/mobile/WPAndroidGlue/GutenbergProps.kt +++ b/packages/react-native-bridge/android/react-native-bridge/src/main/java/org/wordpress/mobile/WPAndroidGlue/GutenbergProps.kt @@ -13,7 +13,6 @@ data class GutenbergProps @JvmOverloads constructor( val enableInstagramEmbed: Boolean, val enableLoomEmbed: Boolean, val enableSmartframeEmbed: Boolean, - val enableMediaFilesCollectionBlocks: Boolean, val enableMentions: Boolean, val enableXPosts: Boolean, val enableUnsupportedBlockEditor: Boolean, @@ -70,7 +69,6 @@ data class GutenbergProps @JvmOverloads constructor( putBoolean(PROP_CAPABILITIES_LAYOUT_GRID_BLOCK, enableLayoutGridBlock) putBoolean(PROP_CAPABILITIES_TILED_GALLERY_BLOCK, enableTiledGalleryBlock) putBoolean(PROP_CAPABILITIES_VIDEOPRESS_BLOCK, enableVideoPressBlock) - putBoolean(PROP_CAPABILITIES_MEDIAFILES_COLLECTION_BLOCK, enableMediaFilesCollectionBlocks) putBoolean(PROP_CAPABILITIES_UNSUPPORTED_BLOCK_EDITOR, enableUnsupportedBlockEditor) putBoolean(PROP_CAPABILITIES_CAN_ENABLE_UNSUPPORTED_BLOCK_EDITOR, canEnableUnsupportedBlockEditor) putBoolean(PROP_CAPABILITIES_IS_AUDIO_BLOCK_MEDIA_UPLOAD_ENABLED, isAudioBlockMediaUploadEnabled) @@ -118,7 +116,6 @@ data class GutenbergProps @JvmOverloads constructor( const val PROP_CAPABILITIES_INSTAGRAM_EMBED_BLOCK = "instagramEmbed" const val PROP_CAPABILITIES_LOOM_EMBED_BLOCK = "loomEmbed" const val PROP_CAPABILITIES_SMARTFRAME_EMBED_BLOCK = "smartframeEmbed" - const val PROP_CAPABILITIES_MEDIAFILES_COLLECTION_BLOCK = "mediaFilesCollectionBlock" const val PROP_CAPABILITIES_MENTIONS = "mentions" const val PROP_CAPABILITIES_XPOSTS = "xposts" const val PROP_CAPABILITIES_UNSUPPORTED_BLOCK_EDITOR = "unsupportedBlockEditor" diff --git a/packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift b/packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift index 8890cd4de0f7e..71d1e11836c6f 100644 --- a/packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift +++ b/packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift @@ -30,7 +30,6 @@ public enum Capabilities: String { case layoutGridBlock case tiledGalleryBlock case videoPressBlock - case mediaFilesCollectionBlock case mentions case xposts case unsupportedBlockEditor diff --git a/packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift b/packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift index 0c04308125df7..6e7d8fb3cdf54 100644 --- a/packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift +++ b/packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift @@ -419,7 +419,6 @@ extension GutenbergViewController: GutenbergBridgeDataSource { .xposts: true, .unsupportedBlockEditor: unsupportedBlockEnabled, .canEnableUnsupportedBlockEditor: unsupportedBlockCanBeActivated, - .mediaFilesCollectionBlock: true, .tiledGalleryBlock: true, .videoPressBlock: true, .isAudioBlockMediaUploadEnabled: true,