deps: use aar
Bundle our custom ExoPlayer components into aar instead of directly depending on the project. This just makes things far better regarding ease of use and reproducible builds.
This commit is contained in:
+11
-5
@@ -54,8 +54,6 @@ afterEvaluate {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
|
||||
// Kotlin
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
@@ -94,9 +92,7 @@ dependencies {
|
||||
|
||||
// --- THIRD PARTY ---
|
||||
|
||||
// ExoPlayer
|
||||
implementation project(':exoplayer-library-core')
|
||||
implementation project(':exoplayer-extension-flac')
|
||||
// Exoplayer
|
||||
|
||||
// Image loading
|
||||
implementation 'io.coil-kt:coil:2.0.0-alpha06'
|
||||
@@ -108,6 +104,16 @@ dependencies {
|
||||
|
||||
// Lint
|
||||
ktlint 'com.pinterest:ktlint:0.43.2'
|
||||
|
||||
// WARNING: THE EXOPLAYER VERSION MUST BE KEPT IN LOCK-STEP WITH THE CUSTOM EXTRACTOR AND FLAC
|
||||
// EXTENSION BLOBS. IF NOT, VERY UNFRIENDLY BUILD FAILURES AND CRASHES MAY ENSUE.
|
||||
def exoplayer_version = "2.16.1"
|
||||
implementation("com.google.android.exoplayer:exoplayer-core:$exoplayer_version") {
|
||||
exclude group: "com.google.android.exoplayer", module: "exoplayer-extractor"
|
||||
}
|
||||
|
||||
implementation fileTree(dir: "libs", include: ["extension-*.aar"])
|
||||
implementation fileTree(dir: "libs", include: ["library-*.aar"])
|
||||
}
|
||||
|
||||
task ktlint(type: JavaExec, group: "verification") {
|
||||
|
||||
Reference in New Issue
Block a user