From 908e30f9b8d950fa1423a10d4b08135b6cc4d43a Mon Sep 17 00:00:00 2001 From: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:33:29 +0100 Subject: [PATCH] fix(android): add explicitly dependancy to androidx.activity (#3410) --- android/build.gradle | 6 ++++-- android/gradle.properties | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 1cdf92d0..a17296a1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -143,7 +143,8 @@ repositories { def media3_version = safeExtGet('media3Version') def kotlin_version = safeExtGet('kotlinVersion') -def androidxCode_version = safeExtGet('androidxCoreVersion') +def androidxCore_version = safeExtGet('androidxCoreVersion') +def androidxActivity_version = safeExtGet('androidxActivityVersion') dependencies { // For < 0.71, this will be from the local maven repo @@ -151,7 +152,8 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" - implementation "androidx.core:core:$androidxCode_version" + implementation "androidx.core:core:$androidxCore_version" + implementation "androidx.activity:activity-ktx:$androidxActivity_version" // For media playback using ExoPlayer implementation "androidx.media3:media3-exoplayer:$media3_version" diff --git a/android/gradle.properties b/android/gradle.properties index 3610915c..151fee68 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -7,3 +7,4 @@ RNVideo_buildToolsVersion=30.0.2 RNVideo_media3Version=1.1.1 RNVideo_RNVUseExoplayerIMA=false RNVideo_androidxCoreVersion=1.9.0 +RNVideo_androidxActivityVersion=1.7.0