fix(sample): boot failure on emulator (#4016)

* fix: disable coreLibraryDesugaringEnabled by default
This commit is contained in:
Olivier Bouillet
2024-07-18 22:22:58 +02:00
committed by GitHub
parent 9f382163d8
commit ffbc977ff9
2 changed files with 4 additions and 10 deletions

View File

@@ -83,8 +83,10 @@ android {
namespace "com.videoplayer" namespace "com.videoplayer"
compileOptions { compileOptions {
// These options are necessary to be able to build fro source // These options are necessary to be able to build from source
coreLibraryDesugaringEnabled true // coreLibraryDesugaringEnabled is mandatory to be able to build exoplayer from source
// uncomment this line if you want to build from source
// coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11
} }

View File

@@ -26,7 +26,6 @@ import Video, {
type OnPlaybackRateChangeData, type OnPlaybackRateChangeData,
type OnVideoTracksData, type OnVideoTracksData,
type ReactVideoSource, type ReactVideoSource,
type TextTracks,
type VideoTrack, type VideoTrack,
type SelectedTrack, type SelectedTrack,
type SelectedVideoTrack, type SelectedVideoTrack,
@@ -37,13 +36,6 @@ import {type AdditionalSourceInfo} from './types';
import {bufferConfig, srcList, textTracksSelectionBy} from './constants'; import {bufferConfig, srcList, textTracksSelectionBy} from './constants';
import {Overlay, toast} from './components'; import {Overlay, toast} from './components';
type AdditionnalSourceInfo = {
textTracks: TextTracks;
adTagUrl: string;
description: string;
noView: boolean;
};
type Props = NonNullable<unknown>; type Props = NonNullable<unknown>;
const VideoPlayer: FC<Props> = ({}) => { const VideoPlayer: FC<Props> = ({}) => {