File tree Expand file tree Collapse file tree 4 files changed +19
-13
lines changed
src/main/java/com/audiowaveform Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
88 }
99
1010 dependencies {
11- classpath " com.android.tools.build:gradle:7.2.1 "
11+ classpath " com.android.tools.build:gradle:8.1.0 "
1212 // noinspection DifferentKotlinGradleVersion
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1414 }
@@ -71,8 +71,12 @@ android {
7171 }
7272
7373 compileOptions {
74- sourceCompatibility JavaVersion . VERSION_1_8
75- targetCompatibility JavaVersion . VERSION_1_8
74+ sourceCompatibility JavaVersion . VERSION_11
75+ targetCompatibility JavaVersion . VERSION_11
76+ }
77+
78+ kotlinOptions {
79+ jvmTarget = " 11"
7680 }
7781}
7882
@@ -93,6 +97,7 @@ dependencies {
9397 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
9498
9599
96- // Android Audio Playback Dependency
97- implementation " com.google.android.exoplayer:exoplayer:2.17.1"
100+ // Android Audio Media3 Dependency
101+ implementation ' androidx.media3:media3-exoplayer:1.3.1'
102+ implementation ' androidx.media3:media3-common:1.3.1'
98103}
Original file line number Diff line number Diff line change 1- AudioWaveform_kotlinVersion =1.7.0
1+ AudioWaveform_kotlinVersion =1.6.10
22AudioWaveform_minSdkVersion =21
3- AudioWaveform_targetSdkVersion =31
4- AudioWaveform_compileSdkVersion =31
3+ AudioWaveform_targetSdkVersion =34
4+ AudioWaveform_compileSdkVersion =34
55AudioWaveform_ndkversion =21.4.7075529
6+ android.suppressUnsupportedCompileSdk =34
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ import com.facebook.react.bridge.ReactApplicationContext
88import com.facebook.react.bridge.WritableMap
99import com.facebook.react.common.JavascriptException
1010import com.facebook.react.modules.core.DeviceEventManagerModule
11- import com.google.android.exoplayer2 .ExoPlayer
12- import com.google.android.exoplayer2 .MediaItem
13- import com.google.android.exoplayer2 .Player
11+ import androidx.media3.exoplayer .ExoPlayer
12+ import androidx.media3.common .MediaItem
13+ import androidx.media3.common .Player
1414
1515class AudioPlayer (
1616 context : ReactApplicationContext ,
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ buildscript {
44 ext {
55 buildToolsVersion = " 33.0.0"
66 minSdkVersion = 21
7- compileSdkVersion = 33
8- targetSdkVersion = 33
7+ compileSdkVersion = 34
8+ targetSdkVersion = 34
99
1010 // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
1111 ndkVersion = " 23.1.7779620"
You can’t perform that action at this time.
0 commit comments