Compare commits

...

5 Commits

Author SHA1 Message Date
rustdesk
63e22b7685 fix build error with latest xcode 2024-12-09 18:49:02 +08:00
21pages
a02d2bb4ac
fix ios audio output (#10235)
Signed-off-by: 21pages <sunboeasy@gmail.com>
2024-12-09 15:41:49 +08:00
solokot
0f7d78c263
Update ru.rs (#10233) 2024-12-09 15:11:09 +08:00
XLion
0e321bd845
Update tw.rs (#10231) 2024-12-09 12:30:50 +08:00
Mr-Update
875b738222
Update de.rs (#10228) 2024-12-09 12:30:32 +08:00
10 changed files with 20 additions and 10 deletions

View File

@ -2,4 +2,6 @@
# https://docs.flutter.dev/deployment/ios # https://docs.flutter.dev/deployment/ios
# flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info # flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info
# no obfuscate, because no easy to check errors # no obfuscate, because no easy to check errors
cd $(dirname $(dirname $(which flutter)))
git apply ~/rustdesk/.github/patches/flutter_3.24.4_dropdown_menu_enableFilter.diff
flutter build ipa --release flutter build ipa --release

View File

@ -133,7 +133,7 @@ SPEC CHECKSUMS:
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812 url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579 video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579
wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47 wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47

View File

@ -1,7 +1,7 @@
import UIKit import UIKit
import Flutter import Flutter
@UIApplicationMain @main
@objc class AppDelegate: FlutterAppDelegate { @objc class AppDelegate: FlutterAppDelegate {
override func application( override func application(
_ application: UIApplication, _ application: UIApplication,

View File

@ -1,2 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd $(dirname $(dirname $(which flutter)))
git apply ~/rustdesk/.github/patches/flutter_3.24.4_dropdown_menu_enableFilter.diff
cargo build --features flutter,hwcodec --release --target aarch64-apple-ios --lib cargo build --features flutter,hwcodec --release --target aarch64-apple-ios --lib

View File

@ -1364,13 +1364,13 @@ packages:
source: hosted source: hosted
version: "6.2.2" version: "6.2.2"
url_launcher_ios: url_launcher_ios:
dependency: transitive dependency: "direct main"
description: description:
name: url_launcher_ios name: url_launcher_ios
sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.2.4" version: "6.3.2"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:

View File

@ -36,6 +36,7 @@ dependencies:
#firebase_analytics: ^9.1.5 #firebase_analytics: ^9.1.5
package_info_plus: ^4.2.0 package_info_plus: ^4.2.0
url_launcher: ^6.2.1 url_launcher: ^6.2.1
url_launcher_ios: ^6.3.2
toggle_switch: ^2.1.0 toggle_switch: ^2.1.0
dash_chat_2: dash_chat_2:
git: git:

View File

@ -1002,8 +1002,13 @@ impl AudioHandler {
let sample_format = config.sample_format(); let sample_format = config.sample_format();
log::info!("Default output format: {:?}", config); log::info!("Default output format: {:?}", config);
log::info!("Remote input format: {:?}", format0); log::info!("Remote input format: {:?}", format0);
#[allow(unused_mut)]
let mut config: StreamConfig = config.into(); let mut config: StreamConfig = config.into();
config.buffer_size = cpal::BufferSize::Fixed(64); #[cfg(not(target_os = "ios"))]
{
// this makes ios audio output not work
config.buffer_size = cpal::BufferSize::Fixed(64);
}
self.sample_rate = (format0.sample_rate, config.sample_rate.0); self.sample_rate = (format0.sample_rate, config.sample_rate.0);
let mut build_output_stream = |config: StreamConfig| match sample_format { let mut build_output_stream = |config: StreamConfig| match sample_format {

View File

@ -654,7 +654,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Upload files", "Dateien hochladen"), ("Upload files", "Dateien hochladen"),
("Clipboard is synchronized", "Zwischenablage ist synchronisiert"), ("Clipboard is synchronized", "Zwischenablage ist synchronisiert"),
("Update client clipboard", "Client-Zwischenablage aktualisieren"), ("Update client clipboard", "Client-Zwischenablage aktualisieren"),
("Untagged", ""), ("Untagged", "Unmarkiert"),
("new-version-of-{}-tip", ""), ("new-version-of-{}-tip", "Es ist eine neue Version von {} verfügbar"),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -655,6 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Clipboard is synchronized", "Буфер обмена синхронизирован"), ("Clipboard is synchronized", "Буфер обмена синхронизирован"),
("Update client clipboard", "Обновить буфер обмена клиента"), ("Update client clipboard", "Обновить буфер обмена клиента"),
("Untagged", "Без метки"), ("Untagged", "Без метки"),
("new-version-of-{}-tip", ""), ("new-version-of-{}-tip", "Доступна новая версия {}"),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -655,6 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Clipboard is synchronized", "剪貼簿已同步"), ("Clipboard is synchronized", "剪貼簿已同步"),
("Update client clipboard", "更新客戶端的剪貼簿"), ("Update client clipboard", "更新客戶端的剪貼簿"),
("Untagged", "無標籤"), ("Untagged", "無標籤"),
("new-version-of-{}-tip", ""), ("new-version-of-{}-tip", "有新版本的 {} 可用"),
].iter().cloned().collect(); ].iter().cloned().collect();
} }