From 687218bdc132dde16f471c31f83c285ffea3f75a Mon Sep 17 00:00:00 2001 From: cuong mac mini m2 Date: Thu, 16 Apr 2026 16:13:40 +0700 Subject: [PATCH] prepare --- .python-version | 1 + .vscode/launch.json | 64 ++++++++++++++++++++++++++++++++++ Package.swift | 2 +- Plugins/BuildFFmpeg/main.swift | 2 +- 4 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 .python-version create mode 100644 .vscode/launch.json diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..c8cfe39 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.10 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..940fac3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,64 @@ +{ + "configurations": [ + { + "type": "swift", + "request": "launch", + "args": [], + "cwd": "${workspaceFolder:FFmpegKit56}", + "name": "Debug ffmpeg", + "target": "ffmpeg", + "configuration": "debug", + "preLaunchTask": "swift: Build Debug ffmpeg" + }, + { + "type": "swift", + "request": "launch", + "args": [], + "cwd": "${workspaceFolder:FFmpegKit56}", + "name": "Release ffmpeg", + "target": "ffmpeg", + "configuration": "release", + "preLaunchTask": "swift: Build Release ffmpeg" + }, + { + "type": "swift", + "request": "launch", + "args": [], + "cwd": "${workspaceFolder:FFmpegKit56}", + "name": "Debug ffplay", + "target": "ffplay", + "configuration": "debug", + "preLaunchTask": "swift: Build Debug ffplay" + }, + { + "type": "swift", + "request": "launch", + "args": [], + "cwd": "${workspaceFolder:FFmpegKit56}", + "name": "Release ffplay", + "target": "ffplay", + "configuration": "release", + "preLaunchTask": "swift: Build Release ffplay" + }, + { + "type": "swift", + "request": "launch", + "args": [], + "cwd": "${workspaceFolder:FFmpegKit56}", + "name": "Debug ffprobe", + "target": "ffprobe", + "configuration": "debug", + "preLaunchTask": "swift: Build Debug ffprobe" + }, + { + "type": "swift", + "request": "launch", + "args": [], + "cwd": "${workspaceFolder:FFmpegKit56}", + "name": "Release ffprobe", + "target": "ffprobe", + "configuration": "release", + "preLaunchTask": "swift: Build Release ffprobe" + } + ] +} \ No newline at end of file diff --git a/Package.swift b/Package.swift index 2ec7ab3..4319c2e 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "FFmpegKit", defaultLocalization: "en", - platforms: [.macOS(.v10_15), .macCatalyst(.v14), .iOS(.v13), .tvOS(.v13), + platforms: [.macOS(.v10_15), .macCatalyst(.v14), .iOS(.v16), .tvOS(.v13), .visionOS(.v1)], products: [ .library( diff --git a/Plugins/BuildFFmpeg/main.swift b/Plugins/BuildFFmpeg/main.swift index 565a292..13944e1 100644 --- a/Plugins/BuildFFmpeg/main.swift +++ b/Plugins/BuildFFmpeg/main.swift @@ -747,7 +747,7 @@ enum PlatformType: String, CaseIterable { var minVersion: String { switch self { case .ios, .isimulator: - return "13.0" + return "16.0" case .tvos, .tvsimulator: return "13.0" case .macos: