deps: upgrade

Wheeeeeee
ExoPlayer -> 2.17.0
Coil -> 2.0.0-alpha09
Ktlint -> 0.44.0
This commit is contained in:
OxygenCobalt
2022-02-24 15:17:31 -07:00
parent 9171f9a3b4
commit fc4c7714a2
4 changed files with 12 additions and 19 deletions
+5 -9
View File
@@ -8,6 +8,9 @@ import sys
import subprocess
import re
# WARNING: THE EXOPLAYER VERSION MUST BE KEPT IN LOCK-STEP WITH THE FLAC EXTENSION.
# IF NOT, VERY UNFRIENDLY BUILD FAILURES AND CRASHES MAY ENSUE.
EXO_VERSION = "2.17.0"
FLAC_VERSION = "1.3.2"
FATAL="\033[1;31m"
@@ -75,9 +78,9 @@ sh("rm -rf " + exoplayer_path)
sh("rm -rf " + libs_path)
print(INFO + "info:" + NC + " cloning exoplayer...")
sh("git clone https://github.com/oxygencobalt/ExoPlayer.git " + exoplayer_path)
sh("git clone https://github.com/google/ExoPlayer.git " + exoplayer_path)
os.chdir(exoplayer_path)
sh("git checkout auxio")
sh("git checkout r" + EXO_VERSION)
print(INFO + "info:" + NC + " installing flac extension...")
flac_ext_jni_path = os.path.join("extensions", "flac", "src", "main", "jni")
@@ -87,23 +90,16 @@ sh('curl "https://ftp.osuosl.org/pub/xiph/releases/flac/flac-' + FLAC_VERSION +
sh(ndk_build_path + " APP_ABI=all -j4")
print(INFO + "info:" + NC + " assembling libraries")
extractor_aar_path = os.path.join(
exoplayer_path, "library", "extractor", "buildout",
"outputs", "aar", "library-extractor-release.aar"
)
flac_ext_aar_path = os.path.join(
exoplayer_path, "extensions", "flac", "buildout",
"outputs", "aar", "extension-flac-release.aar"
)
os.chdir(exoplayer_path)
sh("./gradlew library-extractor:bundleReleaseAar")
sh("./gradlew extension-flac:bundleReleaseAar")
os.chdir(start_path)
sh("mkdir " + libs_path)
sh("cp " + extractor_aar_path + " " + libs_path)
sh("cp " + flac_ext_aar_path + " " + libs_path)
print(OK + "success:" + NC + " completed pre-build.")