Merge pull request #834 from arthenica/development
patch native v6.0 releases
This commit is contained in:
commit
e243e86e3b
6
.github/workflows/android-build-scripts.yml
vendored
6
.github/workflows/android-build-scripts.yml
vendored
|
@ -41,6 +41,8 @@ jobs:
|
|||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '17'
|
||||
- name: prerequisites
|
||||
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
|
||||
- name: set up android ndk
|
||||
run: |
|
||||
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
||||
|
@ -70,6 +72,8 @@ jobs:
|
|||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '17'
|
||||
- name: prerequisites
|
||||
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
|
||||
- name: set up android ndk
|
||||
run: |
|
||||
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
||||
|
@ -157,6 +161,8 @@ jobs:
|
|||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '17'
|
||||
- name: prerequisites
|
||||
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
|
||||
- name: set up android ndk
|
||||
run: |
|
||||
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
||||
|
|
|
@ -77,7 +77,7 @@ All libraries created by `android.sh` can be found under the `prebuilt` director
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.arthenica:ffmpeg-kit-full:6.0-1'
|
||||
implementation 'com.arthenica:ffmpeg-kit-full:6.0-2'
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -49,6 +49,15 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
task javadoc(type: Javadoc) {
|
||||
title = 'FFmpegKit'
|
||||
destinationDir = file("${projectDir}/../../docs/android/javadoc")
|
||||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
||||
source = android.sourceSets.main.java.srcDirs
|
||||
configurations.implementation.setCanBeResolved(true)
|
||||
classpath += configurations.implementation
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api 'com.arthenica:smart-exception-java:0.2.1'
|
||||
testImplementation "androidx.test.ext:junit:1.1.5"
|
||||
|
|
|
@ -36,7 +36,7 @@ public class NativeLoader {
|
|||
|
||||
static final String[] FFMPEG_LIBRARIES = {"avutil", "swscale", "swresample", "avcodec", "avformat", "avfilter", "avdevice"};
|
||||
|
||||
static final String[] LIBRARIES_LINKED_WITH_CXX = {"chromaprint", "openh264", "rubberband", "snappy", "srt", "tesseract", "x265", "zimg"};
|
||||
static final String[] LIBRARIES_LINKED_WITH_CXX = {"chromaprint", "openh264", "rubberband", "snappy", "srt", "tesseract", "x265", "zimg", "libilbc"};
|
||||
|
||||
static boolean isTestModeDisabled() {
|
||||
return (System.getProperty("enable.ffmpeg.kit.test.mode") == null);
|
||||
|
|
|
@ -70,7 +70,7 @@ build_application_mk() {
|
|||
local LTS_BUILD_FLAG="-DFFMPEG_KIT_LTS "
|
||||
fi
|
||||
|
||||
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
|
||||
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
|
||||
local APP_STL="c++_shared"
|
||||
else
|
||||
local APP_STL="none"
|
||||
|
|
|
@ -40,6 +40,14 @@ android {
|
|||
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
publishing {
|
||||
singleVariant('release') {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task javadoc(type: Javadoc) {
|
||||
|
|
|
@ -40,6 +40,14 @@ android {
|
|||
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
publishing {
|
||||
singleVariant('release') {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task javadoc(type: Javadoc) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user