fix android & ios builds

This commit is contained in:
lml committed 2026-03-17 18:06:55 +08:00
1 parent 8194542de9
commit cf309df28e
8 files changed
+66 -16

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"type": "dart",
"request": "launch",
"program": "lib/main.dart"
},
{
"name": "caption_trans",
"request": "launch",
"type": "dart"
},
{
"name": "caption_trans (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "caption_trans (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
+1 -1
View File
@@ -24,7 +24,7 @@ android {
applicationId = "com.example.caption_trans"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
minSdk = 26
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
-2
View File
@@ -20,7 +20,5 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>13.0</string>
</dict>
</plist>
+1 -4
View File
@@ -48,9 +48,6 @@ PODS:
- SwiftyGif (5.4.5)
- whisper_ggml_plus (1.3.1):
- Flutter
- whisper_ggml_plus/no-arc (= 1.3.1)
- whisper_ggml_plus/no-arc (1.3.1):
- Flutter
DEPENDENCIES:
- ffmpeg_kit_flutter_new_min (from `.symlinks/plugins/ffmpeg_kit_flutter_new_min/ios`)
@@ -87,7 +84,7 @@ SPEC CHECKSUMS:
SDWebImage: 16309af6d214ba3f77a7c6f6fdda888cb313a50a
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
whisper_ggml_plus: a01d7b6bf1208c76137032b9d6c91b1d202038e4
whisper_ggml_plus: 03dbc05ca07acd625beec982db80b41dae2fe005
PODFILE CHECKSUM: aa138be8409ad2ab7f70f36aee65b237099b922e
+5 -2
View File
@@ -2,12 +2,15 @@ import Flutter
import UIKit
@main
@objc class AppDelegate: FlutterAppDelegate {
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
}
}
+25 -4
View File
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
@@ -24,6 +26,29 @@
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneClassName</key>
<string>UIWindowScene</string>
<key>UISceneConfigurationName</key>
<string>flutter</string>
<key>UISceneDelegateClassName</key>
<string>FlutterSceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
@@ -41,9 +66,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
+1 -1
View File
@@ -20,7 +20,7 @@ void main() async {
// Register FFmpeg converter for automatic video/audio format conversion.
// This uses the ffmpeg_kit library internally (no subprocess),
// so it works within the macOS sandbox.
if (Platform.isMacOS) {
if (Platform.isMacOS || Platform.isAndroid || Platform.isIOS) {
FFmpegMacOsConverter.register();
} else if (Platform.isWindows) {
FFmpegWindowsConverter.register();
+2 -2
View File
@@ -880,10 +880,10 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "649e41882878f2d04d3b087d907161fdb7a2681b"
resolved-ref: "4f15d7bb073d5d2b8f3954e3c091debfd2d60ba1"
url: "https://github.com/cddqssc/whisper_ggml_plus.git"
source: git
version: "1.4.1"
version: "1.4.2"
win32:
dependency: transitive
description: