Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
F
ffmpeg_kit_flutter
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
ffmpeg_kit_flutter
Commits
4868d4e9
提交
4868d4e9
authored
7月 14, 2025
作者:
caoyongfeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
android 依赖完善
上级
5e7406f0
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
25 行删除
+30
-25
build.gradle
flutter/flutter/android/build.gradle
+15
-16
build.gradle.kts
flutter/flutter/android/ffmpeg_aar/build.gradle.kts
+3
-0
ffmpeg-kit-https-5.1.aar
flutter/flutter/android/ffmpeg_aar/ffmpeg-kit-https-5.1.aar
+0
-0
settings.gradle
flutter/flutter/android/settings.gradle
+12
-9
没有找到文件。
flutter/flutter/android/build.gradle
浏览文件 @
4868d4e9
buildscript
{
repositories
{
google
()
...
...
@@ -14,19 +12,19 @@ buildscript {
// 应用本地依赖配置
apply
from:
'local-dependencies.gradle'
// 配置Gradle解决AAR-in-AAR问题
allprojects
{
configurations
.
all
{
// 允许本地AAR作为库文件
resolutionStrategy
.
dependencySubstitution
.
all
{
DependencySubstitution
dependency
->
if
(
dependency
.
requested
instanceof
ModuleComponentSelector
)
{
def
module
=
dependency
.
requested
as
ModuleComponentSelector
if
(
module
.
group
==
'com.arthenica'
&&
module
.
module
==
'ffmpeg-kit-https'
)
{
dependency
.
useTarget
(
files
(
rootProject
.
ext
.
ffmpegDependency
).
singleFile
)
}
}
}
}
}
//
allprojects {
//
configurations.all {
//
// 允许本地AAR作为库文件
//
resolutionStrategy.dependencySubstitution.all { DependencySubstitution dependency ->
//
if (dependency.requested instanceof ModuleComponentSelector) {
//
def module = dependency.requested as ModuleComponentSelector
//
if (module.group == 'com.arthenica' && module.module == 'ffmpeg-kit-https') {
//
dependency.useTarget(files(rootProject.ext.ffmpegDependency).singleFile)
//
}
//
}
//
}
//
}
//
}
apply
plugin:
'com.android.library'
apply
plugin:
'kotlin-android'
...
...
@@ -63,12 +61,13 @@ repositories {
dependencies
{
implementation
'androidx.annotation:annotation:1.2.0'
implementation
project
(
':ffmpeg_aar'
)
// implementation 'com.arthenica:ffmpeg-kit-https:4.5.1-1'
// implementation files('libs/ffmpeg-kit-https-5.1.aar')
// api(project(":cabinet_aar"))
// api project(':android_aar')
}
apply
from:
'dependency-resolution.gradle'
//
apply from: 'dependency-resolution.gradle'
flutter/flutter/android/ffmpeg_aar/build.gradle.kts
0 → 100644
浏览文件 @
4868d4e9
configurations.maybeCreate("default")
artifacts.add("default", file("ffmpeg-kit-https-5.1.aar"))
\ No newline at end of file
flutter/flutter/android/ffmpeg_aar/ffmpeg-kit-https-5.1.aar
0 → 100644
浏览文件 @
4868d4e9
File added
flutter/flutter/android/settings.gradle
浏览文件 @
4868d4e9
rootProject
.
name
=
'ffmpeg-kit-flutter-android'
// 覆盖插件对FFmpeg的依赖配置
gradle
.
projectsEvaluated
{
project
(
':ffmpeg_kit_flutter'
).
afterEvaluate
{
it
.
configurations
.
implementation
.
dependencies
.
removeAll
{
it
.
group
==
'com.arthenica'
&&
it
.
name
==
'ffmpeg-kit-https'
}
}
}
\ No newline at end of file
//// 覆盖插件对FFmpeg的依赖配置
//gradle.projectsEvaluated {
// project(':ffmpeg_kit_flutter').afterEvaluate {
// it.configurations.implementation.dependencies.removeAll {
// it.group == 'com.arthenica' && it.name == 'ffmpeg-kit-https'
// }
// }
//}
include
':ffmpeg_aar'
// 添加新模块
project
(
':ffmpeg_aar'
).
projectDir
=
new
File
(
'mylibrary'
)
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论