Refactor voice support and add Greek localization

- Updated voice support to only include iOS, removing MacOS support.
- Added Greek (el) to the list of supported locales in LocalePreferences.
- Enhanced localization strings for Greek language.
- Modified Podfile to exclude C source files from the macOS build of codec2_flutter, as voice messages are iOS-only.
This commit is contained in:
Janez T
2026-02-28 19:39:20 +01:00
parent f78d56ccb1
commit 1597d66439
7 changed files with 6135 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ class _MessagesTabState extends State<MessagesTab> {
bool _isRecording = false;
bool _isSendingVoice = false;
static const int _maxVoicePackets = 10;
bool get _voiceSupported => Platform.isIOS || Platform.isMacOS;
bool get _voiceSupported => Platform.isIOS;
StreamSubscription<Int16List>? _voiceStreamSub;
String? _currentVoiceSessionId;
final List<Int16List> _recordedChunks = [];