Skip to content

Commit

Permalink
update min sdk version in build.gradle when api level is explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Dec 21, 2021
1 parent 4b7b8dc commit 64a6792
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ if [[ -n ${DISPLAY_HELP} ]]; then
exit 0
fi

# SET API LEVEL IN build.gradle
${SED_INLINE} "s/minSdkVersion .*/minSdkVersion ${API}/g" "${BASEDIR}"/android/ffmpeg-kit-android-lib/build.gradle 1>>"${BASEDIR}"/build.log 2>&1
${SED_INLINE} "s/versionCode ..0/versionCode ${API}0/g" "${BASEDIR}"/android/ffmpeg-kit-android-lib/build.gradle 1>>"${BASEDIR}"/build.log 2>&1

echo -e "\nBuilding ffmpeg-kit ${BUILD_TYPE_ID}library for Android\n"
echo -e -n "INFO: Building ffmpeg-kit ${BUILD_VERSION} ${BUILD_TYPE_ID}library for Android: " 1>>"${BASEDIR}"/build.log 2>&1
echo -e "$(date)\n" 1>>"${BASEDIR}"/build.log 2>&1
Expand Down
1 change: 1 addition & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/libs/
/obj/
/ffmpeg-kit-android-lib/build/
*.tmp
4 changes: 2 additions & 2 deletions scripts/function-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source "${BASEDIR}/scripts/function.sh"

prepare_inline_sed

enable_default_android_architectures() {
ENABLED_ARCHITECTURES[ARCH_ARM_V7A]=1
ENABLED_ARCHITECTURES[ARCH_ARM_V7A_NEON]=1
Expand Down Expand Up @@ -1033,8 +1035,6 @@ set_toolchain_paths() {
if [ ! -f "${ZLIB_PACKAGE_CONFIG_PATH}" ]; then
create_zlib_system_package_config 1>>"${BASEDIR}"/build.log 2>&1
fi

prepare_inline_sed
}

build_android_lts_support() {
Expand Down
4 changes: 2 additions & 2 deletions scripts/function-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source "${BASEDIR}/scripts/function-apple.sh"

prepare_inline_sed

enable_default_ios_architectures() {
ENABLED_ARCHITECTURES[ARCH_ARMV7]=1
ENABLED_ARCHITECTURES[ARCH_ARMV7S]=1
Expand Down Expand Up @@ -479,8 +481,6 @@ set_toolchain_paths() {
if [ ! -f "${LIB_UUID_PACKAGE_CONFIG_PATH}" ]; then
create_libuuid_system_package_config
fi

prepare_inline_sed
}

initialize_prebuilt_ios_folders() {
Expand Down
4 changes: 2 additions & 2 deletions scripts/function-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source "${BASEDIR}/scripts/function-apple.sh"

prepare_inline_sed

enable_default_macos_architectures() {
ENABLED_ARCHITECTURES[ARCH_ARM64]=1
ENABLED_ARCHITECTURES[ARCH_X86_64]=1
Expand Down Expand Up @@ -375,8 +377,6 @@ set_toolchain_paths() {
if [ ! -f "${LIB_UUID_PACKAGE_CONFIG_PATH}" ]; then
create_libuuid_system_package_config
fi

prepare_inline_sed
}

initialize_prebuilt_macos_folders() {
Expand Down
4 changes: 2 additions & 2 deletions scripts/function-tvos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source "${BASEDIR}/scripts/function-apple.sh"

prepare_inline_sed

enable_default_tvos_architectures() {
ENABLED_ARCHITECTURES[ARCH_ARM64]=1
ENABLED_ARCHITECTURES[ARCH_X86_64]=1
Expand Down Expand Up @@ -426,8 +428,6 @@ set_toolchain_paths() {
if [ ! -f "${LIB_UUID_PACKAGE_CONFIG_PATH}" ]; then
create_libuuid_system_package_config
fi

prepare_inline_sed
}

initialize_prebuilt_tvos_folders() {
Expand Down

0 comments on commit 64a6792

Please sign in to comment.