Skip to content
Merged
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
4 changes: 2 additions & 2 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ android {
buildConfigField "boolean", "ENABLE_SITE_MONITORING", "false"
buildConfigField "boolean", "SYNC_PUBLISHING", "false"
buildConfigField "boolean", "ENABLE_IN_APP_UPDATES", "false"
buildConfigField "boolean", "ENABLE_NEW_GUTENBERG", "false"
buildConfigField "boolean", "ENABLE_NEW_GUTENBERG_THEME_STYLES", "false"
buildConfigField "boolean", "ENABLE_GUTENBERG_KIT", "false"
Copy link
Member Author

Choose a reason for hiding this comment

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

The term "new" is problematic, as it provides little context and can become outdated/incorrect in the future. I replaced it with a more meaningful name.

buildConfigField "boolean", "ENABLE_GUTENBERG_KIT_THEME_STYLES", "false"

manifestPlaceholders = [magicLinkScheme:"wordpress"]
}
Expand Down
Copy link
Member Author

Choose a reason for hiding this comment

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

Long term, we might also consider how this implementation could be simplified, creating clear and useful separation between Aztec, Gutenberg Mobile, and GutenbergKit.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ object EditPostActivityConstants{
const val STATE_KEY_UNDO = "stateKeyUndo"
const val STATE_KEY_REDO = "stateKeyRedo"
const val STATE_KEY_IS_VOICE_CONTENT_SET = "stateKeyIsVoiceContentSet"
const val STATE_KEY_IS_NEW_GUTENBERG = "stateKeyIsNewGutenberg"
const val STATE_KEY_IS_GUTENBERG_KIT = "stateKeyIsGutenbergKit"
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class PostEditorAnalyticsSession implements Serializable {

public enum Editor {
GUTENBERG,
GUTENBERG_KIT,
CLASSIC,
HTML,
WP_STORIES_CREATOR
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.wordpress.android.util.config

import org.wordpress.android.BuildConfig
import org.wordpress.android.annotation.Feature
import javax.inject.Inject

private const val GUTENBERG_KIT_FEATURE_REMOTE_FIELD = "experimental_block_editor"

@Feature(GUTENBERG_KIT_FEATURE_REMOTE_FIELD, false)
class GutenbergKitFeatureConfig @Inject constructor(
appConfig: AppConfig
) : FeatureConfig(
appConfig,
BuildConfig.ENABLE_GUTENBERG_KIT,
GUTENBERG_KIT_FEATURE_REMOTE_FIELD
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.wordpress.android.util.config

import org.wordpress.android.BuildConfig
import org.wordpress.android.annotation.Feature
import javax.inject.Inject

private const val GUTENBERG_KIT_THEME_STYLES_FEATURE_REMOTE_FIELD = "experimental_block_editor_theme_styles"

@Feature(GUTENBERG_KIT_THEME_STYLES_FEATURE_REMOTE_FIELD, false)
class GutenbergKitThemeStylesFeatureConfig @Inject constructor(
appConfig: AppConfig
) : FeatureConfig(
appConfig,
BuildConfig.ENABLE_GUTENBERG_KIT_THEME_STYLES,
GUTENBERG_KIT_THEME_STYLES_FEATURE_REMOTE_FIELD
)

This file was deleted.

This file was deleted.

Loading