From 0a30f207dfa66ddc771721c896ef772bdff79d3d Mon Sep 17 00:00:00 2001 From: Axel Vencatareddy Date: Wed, 16 Nov 2022 20:11:29 +0100 Subject: [PATCH] [ANDROID] Remove multidex usage as it is not mandatory --- android/build.gradle | 3 --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 145bb36b..fdd257bf 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -16,7 +16,6 @@ android { defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 21) targetSdkVersion safeExtGet('targetSdkVersion', 28) - multiDexEnabled true versionCode 1 versionName "1.0" } @@ -37,8 +36,6 @@ dependencies { exclude group: 'com.android.support' } - implementation 'androidx.multidex:multidex:2.0.1' - // All support libs must use the same version implementation "androidx.annotation:annotation:1.1.0" implementation "androidx.core:core:1.1.0" diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 1c4f7595..6079aa99 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -18,7 +18,6 @@ import android.widget.FrameLayout; import android.widget.ImageButton; import androidx.activity.OnBackPressedCallback; -import androidx.multidex.MultiDex; import com.brentvatne.react.R; import com.brentvatne.receiver.AudioBecomingNoisyReceiver; @@ -295,8 +294,6 @@ class ReactExoplayerView extends FrameLayout implements CookieHandler.setDefault(DEFAULT_COOKIE_MANAGER); } - MultiDex.install(getContext()); - LayoutParams layoutParams = new LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);