pull in/rely on exoplayer locally

This commit is contained in:
austinried 2021-09-07 12:20:52 +09:00
parent 2097a9f7fd
commit 721a42f60f
5 changed files with 19 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "submodules/ExoPlayer"]
path = submodules/ExoPlayer
url = https://github.com/google/ExoPlayer.git

View File

@ -220,6 +220,14 @@ dependencies {
} else {
implementation jscFlavor
}
implementation(project(":react-native-track-player")) {
exclude group:'com.google.android.exoplayer'
}
implementation project(':exoplayer-library-core')
compileOnly project(':exoplayer-library-dash')
compileOnly project(':exoplayer-library-hls')
compileOnly project(':exoplayer-library-smoothstreaming')
}
// Run this once to be able to run the application with BUCK

View File

@ -30,3 +30,7 @@ FLIPPER_VERSION=0.75.1
# react-native-async-storage next
AsyncStorage_useNextStorage=true
AsyncStorage_kotlinVersion=1.4.21
# required to override exoplayer used by react-native-track-player, resolves "abstract method" error
# see: https://github.com/google/ExoPlayer/issues/6801#issuecomment-574089568
android.enableDexingArtifactTransform=false

View File

@ -7,3 +7,6 @@ include ':react-native-fs'
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
gradle.ext.exoplayerRoot = '../submodules/ExoPlayer'
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
apply from: file("$gradle.ext.exoplayerRoot/core_settings.gradle")

1
submodules/ExoPlayer Submodule

@ -0,0 +1 @@
Subproject commit 7d3f54a375fac04a746ca76a8f2e1ad32c8b45b2