File tree Expand file tree Collapse file tree 9 files changed +30
-19
lines changed
androidTest/java/cloudinary/android/ui
main/java/com/cloudinary/android/cldvideoplayer Expand file tree Collapse file tree 9 files changed +30
-19
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77
88 defaultConfig {
99 minSdkVersion 19
10- targetSdkVersion 31
10+ targetSdkVersion 33
1111 versionCode 1
1212 versionName " 1.0"
1313 multiDexEnabled true
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77
88 defaultConfig {
99 minSdkVersion 19
10- targetSdkVersion 31
10+ targetSdkVersion 33
1111 versionCode 1
1212 versionName " 1.0"
1313 multiDexEnabled true
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77 defaultConfig {
88 minSdkVersion 19
9- targetSdkVersion 31
9+ targetSdkVersion 33
1010 versionCode 1
1111 versionName " 1.0"
1212 multiDexEnabled true
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77 defaultConfig {
88 minSdkVersion 19
9- targetSdkVersion 30
9+ targetSdkVersion 33
1010 versionCode 1
1111 versionName " 1.0"
1212 multiDexEnabled true
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77 defaultConfig {
88 minSdkVersion 19
9- targetSdkVersion 31
9+ targetSdkVersion 33
1010 versionCode 1
1111 versionName " 1.0"
1212 android. compileOptions. sourceCompatibility 1.8
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77 defaultConfig {
88 applicationId " com.cloudinary.android.sample"
99 minSdkVersion 19
10- targetSdkVersion 31
10+ targetSdkVersion 33
1111 versionCode 1
1212 versionName " 1.0"
1313 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 31
4+ compileSdkVersion 33
55 buildToolsVersion " 30.0.2"
66
77
88 defaultConfig {
99 minSdkVersion 19
10- targetSdkVersion 31
10+ targetSdkVersion 33
1111 versionCode 1
1212 versionName " 1.0"
1313 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
@@ -35,7 +35,10 @@ dependencies {
3535 implementation project(' :core' )
3636 implementation project(' :preprocess' )
3737
38- implementation ' com.google.android.exoplayer:exoplayer:2.16.0'
38+ implementation ' androidx.media3:media3-exoplayer:1.1.1'
39+ implementation ' androidx.media3:media3-exoplayer-dash:1.1.1'
40+ implementation ' androidx.media3:media3-exoplayer-hls:1.1.1'
41+ implementation ' androidx.media3:media3-ui:1.1.1'
3942
4043 implementation ' androidx.appcompat:appcompat:1.3.0'
4144 implementation ' com.google.android.material:material:1.4.0'
Original file line number Diff line number Diff line change 1- package cloudinary .android .sample ;
1+ package cloudinary .android .ui ;
22
33import android .content .Context ;
44import android .os .Handler ;
99import androidx .test .runner .AndroidJUnit4 ;
1010
1111import com .cloudinary .Transformation ;
12+ import com .cloudinary .android .MediaManager ;
1213import com .cloudinary .android .cldvideoplayer .CldVideoPlayer ;
13- import com .google .android .exoplayer2 .ExoPlayer ;
1414
1515import org .junit .Before ;
16+ import org .junit .BeforeClass ;
1617import org .junit .Test ;
1718import org .junit .runner .RunWith ;
1819
@@ -27,6 +28,12 @@ public class CldVideoPlayerInstrumentedTest {
2728
2829 private Context context ;
2930
31+ @ BeforeClass
32+ public synchronized static void initLibrary () {
33+ MediaManager .init (InstrumentationRegistry .getInstrumentation ().getTargetContext ());
34+ MediaManager .get ().getCloudinary ().config .cloudName = "demo" ;
35+ }
36+
3037 @ Before
3138 public void setUp () {
3239 context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
Original file line number Diff line number Diff line change 33import android .content .Context ;
44import android .util .Log ;
55
6+ import androidx .media3 .common .MediaItem ;
7+ import androidx .media3 .exoplayer .ExoPlayer ;
8+
69import com .cloudinary .Cloudinary ;
710import com .cloudinary .Transformation ;
811import com .cloudinary .android .MediaManager ;
9- import com .google .android .exoplayer2 .ExoPlayer ;
10- import com .google .android .exoplayer2 .MediaItem ;
1112
1213import java .net .URL ;
1314
You can’t perform that action at this time.
0 commit comments