Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit e243e86

Browse files
authored
Merge pull request #834 from arthenica/development
patch native v6.0 releases
2 parents 775348f + d6be56d commit e243e86

File tree

7 files changed

+34
-3
lines changed

7 files changed

+34
-3
lines changed

.github/workflows/android-build-scripts.yml

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
with:
4242
distribution: 'adopt'
4343
java-version: '17'
44+
- name: prerequisites
45+
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
4446
- name: set up android ndk
4547
run: |
4648
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
@@ -70,6 +72,8 @@ jobs:
7072
with:
7173
distribution: 'adopt'
7274
java-version: '17'
75+
- name: prerequisites
76+
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
7377
- name: set up android ndk
7478
run: |
7579
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
@@ -157,6 +161,8 @@ jobs:
157161
with:
158162
distribution: 'adopt'
159163
java-version: '17'
164+
- name: prerequisites
165+
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
160166
- name: set up android ndk
161167
run: |
162168
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip

android/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ All libraries created by `android.sh` can be found under the `prebuilt` director
7777
}
7878

7979
dependencies {
80-
implementation 'com.arthenica:ffmpeg-kit-full:6.0-1'
80+
implementation 'com.arthenica:ffmpeg-kit-full:6.0-2'
8181
}
8282
```
8383

android/ffmpeg-kit-android-lib/build.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ android {
4949
}
5050
}
5151

52+
task javadoc(type: Javadoc) {
53+
title = 'FFmpegKit'
54+
destinationDir = file("${projectDir}/../../docs/android/javadoc")
55+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
56+
source = android.sourceSets.main.java.srcDirs
57+
configurations.implementation.setCanBeResolved(true)
58+
classpath += configurations.implementation
59+
}
60+
5261
dependencies {
5362
api 'com.arthenica:smart-exception-java:0.2.1'
5463
testImplementation "androidx.test.ext:junit:1.1.5"

android/ffmpeg-kit-android-lib/src/main/java/com/arthenica/ffmpegkit/NativeLoader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class NativeLoader {
3636

3737
static final String[] FFMPEG_LIBRARIES = {"avutil", "swscale", "swresample", "avcodec", "avformat", "avfilter", "avdevice"};
3838

39-
static final String[] LIBRARIES_LINKED_WITH_CXX = {"chromaprint", "openh264", "rubberband", "snappy", "srt", "tesseract", "x265", "zimg"};
39+
static final String[] LIBRARIES_LINKED_WITH_CXX = {"chromaprint", "openh264", "rubberband", "snappy", "srt", "tesseract", "x265", "zimg", "libilbc"};
4040

4141
static boolean isTestModeDisabled() {
4242
return (System.getProperty("enable.ffmpeg.kit.test.mode") == null);

scripts/function-android.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ build_application_mk() {
7070
local LTS_BUILD_FLAG="-DFFMPEG_KIT_LTS "
7171
fi
7272

73-
if [[ ${ENABLED_LIBRARIES[$LIBRARY_X265]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_TESSERACT]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_OPENH264]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_SNAPPY]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_RUBBERBAND]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_ZIMG]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_SRT]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_CHROMAPRINT]} -eq 1 ]] || [[ -n ${CUSTOM_LIBRARY_USES_CPP} ]]; then
73+
if [[ ${ENABLED_LIBRARIES[$LIBRARY_X265]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_TESSERACT]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_OPENH264]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_SNAPPY]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_RUBBERBAND]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_ZIMG]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_SRT]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_CHROMAPRINT]} -eq 1 ]] || [[ ${ENABLED_LIBRARIES[$LIBRARY_LIBILBC]} -eq 1 ]] || [[ -n ${CUSTOM_LIBRARY_USES_CPP} ]]; then
7474
local APP_STL="c++_shared"
7575
else
7676
local APP_STL="none"

tools/android/build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ android {
4040
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
4141
}
4242
}
43+
44+
45+
publishing {
46+
singleVariant('release') {
47+
withJavadocJar()
48+
withSourcesJar()
49+
}
50+
}
4351
}
4452

4553
task javadoc(type: Javadoc) {

tools/android/build.lts.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ android {
4040
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
4141
}
4242
}
43+
44+
45+
publishing {
46+
singleVariant('release') {
47+
withJavadocJar()
48+
withSourcesJar()
49+
}
50+
}
4351
}
4452

4553
task javadoc(type: Javadoc) {

0 commit comments

Comments
 (0)