feat: file imports
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
"logged_stories": "Logged Stories",
|
||||
"friend_tracker": "Friend Tracker",
|
||||
"edit_rule": "Edit Rule",
|
||||
"file_imports": "File Imports",
|
||||
"social": "Social",
|
||||
"manage_scope": "Manage Scope",
|
||||
"messaging_preview": "Preview",
|
||||
@@ -131,6 +132,14 @@
|
||||
"message_parse_failed": "Failed to parse message",
|
||||
"unknown_sender": "Unknown Sender",
|
||||
"download_attachment_failed_toast": "Failed to download attachment"
|
||||
},
|
||||
"file_imports": {
|
||||
"import_file_button": "Import File",
|
||||
"file_not_found": "File not found",
|
||||
"file_import_failed": "Failed to import file: {error}",
|
||||
"file_imported": "File imported successfully",
|
||||
"file_delete_failed": "Failed to delete file",
|
||||
"no_files_hint": "Here you can import files for use in Snapchat. Press the button below to import a file."
|
||||
}
|
||||
},
|
||||
"dialogs": {
|
||||
@@ -153,6 +162,10 @@
|
||||
"messaging_action": {
|
||||
"title": "Choose content types to process",
|
||||
"select_all_button": "Select All"
|
||||
},
|
||||
"file_imports": {
|
||||
"no_files_settings_hint": "No files found. Make sure you have imported the required files in the File Imports section",
|
||||
"settings_select_file_hint": "Select an imported file"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -12,7 +12,8 @@ enum class FileHandleScope(
|
||||
val key: String
|
||||
) {
|
||||
INTERNAL("internal"),
|
||||
LOCALE("locale");
|
||||
LOCALE("locale"),
|
||||
USER_IMPORT("user_import");
|
||||
|
||||
companion object {
|
||||
fun fromValue(name: String): FileHandleScope? = entries.find { it.key == name }
|
||||
|
||||
@@ -12,24 +12,26 @@ data class PropertyPair<T>(
|
||||
}
|
||||
|
||||
enum class FeatureNotice(
|
||||
val id: Int,
|
||||
val key: String
|
||||
) {
|
||||
UNSTABLE(0b0001, "unstable"),
|
||||
BAN_RISK(0b0010, "ban_risk"),
|
||||
INTERNAL_BEHAVIOR(0b0100, "internal_behavior"),
|
||||
REQUIRE_NATIVE_HOOKS(0b1000, "require_native_hooks"),
|
||||
UNSTABLE("unstable"),
|
||||
BAN_RISK("ban_risk"),
|
||||
INTERNAL_BEHAVIOR("internal_behavior"),
|
||||
REQUIRE_NATIVE_HOOKS("require_native_hooks");
|
||||
|
||||
val id get() = 1 shl ordinal
|
||||
}
|
||||
|
||||
enum class ConfigFlag(
|
||||
val id: Int
|
||||
) {
|
||||
NO_TRANSLATE(0b000001),
|
||||
HIDDEN(0b000010),
|
||||
FOLDER(0b000100),
|
||||
NO_DISABLE_KEY(0b001000),
|
||||
REQUIRE_RESTART(0b010000),
|
||||
REQUIRE_CLEAN_CACHE(0b100000)
|
||||
enum class ConfigFlag {
|
||||
NO_TRANSLATE,
|
||||
HIDDEN,
|
||||
FOLDER,
|
||||
USER_IMPORT,
|
||||
NO_DISABLE_KEY,
|
||||
REQUIRE_RESTART,
|
||||
REQUIRE_CLEAN_CACHE;
|
||||
|
||||
val id = 1 shl ordinal
|
||||
}
|
||||
|
||||
class ConfigParams(
|
||||
|
||||
Reference in New Issue
Block a user