Drop attachment ceilings to 1 MiB and bump release version

This commit is contained in:
jack
2025-10-14 22:25:29 +02:00
parent 0714b09a89
commit e09de446fc
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
MARKETING_VERSION = 1.4.4
MARKETING_VERSION = 1.5.0
CURRENT_PROJECT_VERSION = 1
IPHONEOS_DEPLOYMENT_TARGET = 16.0
+3 -3
View File
@@ -3,11 +3,11 @@ import Foundation
/// Centralized thresholds for Bluetooth file transfers to keep payload sizes sane on constrained radios.
enum FileTransferLimits {
/// Absolute ceiling enforced for any file payload (voice, image, other).
static let maxPayloadBytes: Int = 8 * 1024 * 1024 // 8 MiB
static let maxPayloadBytes: Int = 1 * 1024 * 1024 // 1 MiB
/// Voice notes stay small for low-latency relays.
static let maxVoiceNoteBytes: Int = 2 * 1024 * 1024 // 2 MiB
static let maxVoiceNoteBytes: Int = 1 * 1024 * 1024 // 1 MiB
/// Compressed images after downscaling should comfortably fit under this budget.
static let maxImageBytes: Int = 4 * 1024 * 1024 // 4 MiB
static let maxImageBytes: Int = 1 * 1024 * 1024 // 1 MiB
static func isValidPayload(_ size: Int) -> Bool {
size <= maxPayloadBytes