Skip to content

Commit 8d6e897

Browse files
committed
fix: 修复没有回调 onError问题 (#56)
修复没有回调 onError 问题 Related to #56
1 parent 6691da7 commit 8d6e897

File tree

15 files changed

+16
-18
lines changed

15 files changed

+16
-18
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ android {
5959
}
6060

6161
dependencies {
62-
implementation fileTree(dir: 'libs', include: ['*.jar'])
62+
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
6363
implementation deps.appCompat
6464
implementation deps.constraintLayout
6565
testImplementation deps.junit
@@ -68,6 +68,6 @@ dependencies {
6868
implementation deps.recyclerview
6969
implementation deps.coroutines
7070

71-
// implementation "com.coder:ffmpeg:2.0.0"
72-
implementation project(path: ':ffmpeg')
71+
// implementation "com.github.AnJoiner.FFmpegCommand:ffmpeg:1.3.4"
72+
implementation project(path: ':ffmpeg-lite')
7373
}

app/libs/crashreport-4.1.9.3.aar

677 KB
Binary file not shown.

app/src/main/java/com/coder/ffmpegcommand/BaseApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.coder.ffmpegcommand
22

33
import android.app.Application
4-
import com.coder.ffmpeg.jni.FFmpegCommand
4+
import com.tencent.bugly.crashreport.CrashReport
55

66
/**
77
* @author: AnJoiner
@@ -11,7 +11,7 @@ class BaseApplication : Application() {
1111
override fun onCreate() {
1212
super.onCreate()
1313
instance = this
14-
FFmpegCommand.setDebug(true)
14+
CrashReport.initCrashReport(this, "7160846efd", false)
1515
}
1616

1717
companion object {

app/src/main/java/com/coder/ffmpegcommand/ui/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MainActivity : AppCompatActivity(), View.OnClickListener {
2424
}
2525

2626
private fun initUI() {
27-
FFmpegConfig.setDebug(true)
27+
FFmpegConfig.setDebug(false)
2828
binding.abiText.text = String.format("当前使用cpu-abi:%s", Build.CPU_ABI)
2929
}
3030

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ ext {
1717
coroutinesVersion = '1.4.1'
1818

1919
// bugly 版本
20-
buglyReportVersion = '3.3.1'
21-
buglyNativeVersion = '3.7.500'
20+
buglyReportVersion = '4.1.9.3'
2221

2322
// 测试依赖版本
2423
junitVersion = '4.13.2'
@@ -38,8 +37,7 @@ subprojects {
3837
coroutines: "org.jetbrains.kotlinx:kotlinx-coroutines-core:$rootProject.ext.coroutinesVersion",
3938

4039
// bugly 依赖
41-
buglyReport: "com.tencent.bugly:crashreport:$rootProject.ext.buglyReportVersion",
42-
buglyNative: "com.tencent.bugly:nativecrashreport:$rootProject.ext.buglyNativeVersion",
40+
buglyReport: "om.tencent.bugly:crashreport:$rootProject.ext.buglyReportVersion",
4341

4442
// 测试依赖
4543
junit: "junit:junit:$rootProject.ext.junitVersion",

ffmpeg-lite/config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ ext {
55
publishing {
66
publications {
77
release(MavenPublication) {
8-
groupId = 'com.coder' // 对于 JitPack 应该是 com.github.yourusername
8+
groupId = 'com.github.AnJoiner.FFmpegCommand'
99
artifactId = project.name
10-
version = '1.3.3'
10+
version = '1.3.4'
1111

1212
// 指定要发布的 artifact
1313
from project.components.release

0 commit comments

Comments
 (0)