File tree 7 files changed +14
-17
lines changed
androidTest/java/com/dailymotion/android/player/sampleapp
java/com/sampleapp/dailymotion
7 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 1
1
/.idea
2
2
dailymotion-player-sdk-android.iml
3
-
3
+ / .kinta
4
4
/local.properties
5
5
/build
6
6
/* /build
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ buildscript {
7
7
maven { url ' http://repo1.maven.org/maven2' }
8
8
}
9
9
dependencies {
10
- classpath ' com.android.tools.build:gradle:3.6.1 '
10
+ classpath ' com.android.tools.build:gradle:4.1.2 '
11
11
classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
12
12
classpath ' com.github.dcendents:android-maven-gradle-plugin:2.0'
13
13
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
Original file line number Diff line number Diff line change 1
- # Tue Jan 22 16:56:03 CET 2019
1
+ # Mon Feb 01 14:48:02 CET 2021
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.2.1 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -all.zip
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.dailymotion.android.player.sampleapp
2
2
3
3
import androidx.test.ext.junit.runners.AndroidJUnit4
4
4
import androidx.test.rule.ActivityTestRule
5
+ import com.sampleapp.dailymotion.SampleActivity
5
6
import kotlinx.android.synthetic.main.new_screen_sample.*
6
7
import org.junit.Assert
7
8
import org.junit.Rule
@@ -19,13 +20,13 @@ class LoadPauseTest {
19
20
val activity = testRule.activity
20
21
21
22
activity.runOnUiThread {
22
- activity.playerWebview .load(" x26hv6c" )
23
- activity.playerWebview .pause()
23
+ activity.playerWebView .load(" x26hv6c" )
24
+ activity.playerWebView .pause()
24
25
}
25
26
Thread .sleep(10000 )
26
27
activity.runOnUiThread {
27
- if (activity.playerWebview .position >= 1000 ) {
28
- Assert .fail(" Pause() failed: ${activity.playerWebview .position} ms >= 1000ms" )
28
+ if (activity.playerWebView .position >= 1000 ) {
29
+ Assert .fail(" Pause() failed: ${activity.playerWebView .position} ms >= 1000ms" )
29
30
}
30
31
}
31
32
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest
3
3
xmlns : android =" http://schemas.android.com/apk/res/android"
4
- package =" com.dailymotion.websdksample "
4
+ package =" com.sampleapp.dailymotion "
5
5
android : versionCode =" 1"
6
6
android : versionName =" 1.0" >
7
7
8
8
<uses-permission android : name =" android.permission.INTERNET" />
9
9
10
10
<application
11
- android : name =" com.dailymotion.android.player. sampleapp.MyApp"
11
+ android : name =" com.sampleapp.dailymotion .MyApp"
12
12
android : allowBackup =" true"
13
13
android : hardwareAccelerated =" true"
14
14
android : icon =" @drawable/ic_launcher"
17
17
android : theme =" @style/AppTheme" >
18
18
19
19
<activity
20
- android : name =" com.dailymotion.android.player. sampleapp.SampleActivity"
20
+ android : name =" com.sampleapp.dailymotion .SampleActivity"
21
21
android : configChanges =" orientation|screenSize"
22
22
android : windowSoftInputMode =" adjustPan"
23
23
android : label =" @string/app_name" >
Original file line number Diff line number Diff line change 1
- package com.dailymotion.android.player. sampleapp
1
+ package com.sampleapp.dailymotion
2
2
3
3
import android.app.Application
4
4
5
- import com.dailymotion.websdksample.BuildConfig
6
-
7
5
import timber.log.Timber
8
6
9
7
/* *
Original file line number Diff line number Diff line change 1
- package com.dailymotion.android.player. sampleapp
1
+ package com.sampleapp.dailymotion
2
2
3
3
import android.annotation.SuppressLint
4
4
import android.annotation.TargetApi
@@ -23,8 +23,6 @@ import androidx.core.content.ContextCompat
23
23
import com.dailymotion.android.player.sdk.PlayerWebView
24
24
import com.dailymotion.android.player.sdk.TCF2Handler
25
25
import com.dailymotion.android.player.sdk.events.*
26
- import com.dailymotion.websdksample.BuildConfig
27
- import com.dailymotion.websdksample.R
28
26
import kotlinx.android.synthetic.main.new_screen_sample.*
29
27
import timber.log.Timber
30
28
import java.text.SimpleDateFormat
You can’t perform that action at this time.
0 commit comments