feat: cof experiments
This commit is contained in:
@@ -973,10 +973,6 @@
|
||||
"name": "Convert Message Locally",
|
||||
"description": "Converts snaps to chat external media locally. This appears in chat download context menu"
|
||||
},
|
||||
"new_chat_action_menu": {
|
||||
"name": "New Chat Action Menu",
|
||||
"description": "Use the new chat action menu drawer"
|
||||
},
|
||||
"media_file_picker": {
|
||||
"name": "Media File Picker",
|
||||
"description": "Allows you to pick any video/audio file from the gallery"
|
||||
@@ -999,6 +995,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"cof_experiments": {
|
||||
"name": "COF Experiments",
|
||||
"description": "Enables unreleased/beta Snapchat features"
|
||||
},
|
||||
"edit_message": {
|
||||
"name": "Edit Messages",
|
||||
"description": "Allows you to edit messages in conversations"
|
||||
|
||||
@@ -8,6 +8,15 @@ import me.rhunk.snapenhance.common.config.ConfigFlag
|
||||
import me.rhunk.snapenhance.common.config.FeatureNotice
|
||||
|
||||
class Experimental : ConfigContainer() {
|
||||
companion object {
|
||||
val cofExperimentList = listOf(
|
||||
"android_action_menu_v2",
|
||||
"android_action_menu_adjust_message_position",
|
||||
"chat_emoji_reactions_sending_enabled",
|
||||
"chat_text_message_plugin",
|
||||
)
|
||||
}
|
||||
|
||||
class ComposerHooksConfig: ConfigContainer(hasGlobalState = true) {
|
||||
val showFirstCreatedUsername = boolean("show_first_created_username")
|
||||
val bypassCameraRollLimit = boolean("bypass_camera_roll_limit")
|
||||
@@ -42,12 +51,12 @@ class Experimental : ConfigContainer() {
|
||||
val nativeHooks = container("native_hooks", NativeHooks()) { icon = Icons.Default.Memory; requireRestart() }
|
||||
val spoof = container("spoof", Spoof()) { icon = Icons.Default.Fingerprint ; addNotices(FeatureNotice.BAN_RISK); requireRestart() }
|
||||
val convertMessageLocally = boolean("convert_message_locally") { requireRestart() }
|
||||
val newChatActionMenu = boolean("new_chat_action_menu") { requireRestart() }
|
||||
val mediaFilePicker = boolean("media_file_picker") { requireRestart(); addNotices(FeatureNotice.UNSTABLE) }
|
||||
val storyLogger = boolean("story_logger") { requireRestart(); addNotices(FeatureNotice.UNSTABLE); }
|
||||
val callRecorder = boolean("call_recorder") { requireRestart(); addNotices(FeatureNotice.UNSTABLE); }
|
||||
val accountSwitcher = container("account_switcher", AccountSwitcherConfig()) { requireRestart(); addNotices(FeatureNotice.UNSTABLE) }
|
||||
val editMessage = boolean("edit_message") { requireRestart(); addNotices(FeatureNotice.BAN_RISK) }
|
||||
val editMessage = boolean("edit_message") { requireRestart() }
|
||||
val cofExperiments = multiple("cof_experiments", *cofExperimentList.toTypedArray()) { requireRestart(); addFlags(ConfigFlag.NO_TRANSLATE); addNotices(FeatureNotice.UNSTABLE) }
|
||||
val appLock = container("app_lock", AppLockConfig()) { requireRestart(); addNotices(FeatureNotice.UNSTABLE) }
|
||||
val infiniteStoryBoost = boolean("infinite_story_boost")
|
||||
val meoPasscodeBypass = boolean("meo_passcode_bypass")
|
||||
|
||||
Reference in New Issue
Block a user