Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6d8bd345
authored
Apr 18, 2019
by
eguven
Committed by
Oliver Woodman
Apr 18, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add missing DownloadService build*Intent and startWith* methods
PiperOrigin-RevId: 244196081
parent
b6337adc
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
123 additions
and
46 deletions
demos/ima/build.gradle
demos/main/build.gradle
demos/main/src/main/java/com/google/android/exoplayer2/demo/DownloadTracker.java
extensions/cast/build.gradle
extensions/cronet/build.gradle
extensions/ffmpeg/build.gradle
extensions/flac/build.gradle
extensions/gvr/build.gradle
extensions/leanback/build.gradle
extensions/okhttp/build.gradle
extensions/rtmp/build.gradle
extensions/vp9/build.gradle
library/core/build.gradle
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java
library/dash/build.gradle
library/hls/build.gradle
library/smoothstreaming/build.gradle
library/ui/build.gradle
playbacktests/build.gradle
testutils/build.gradle
testutils_robolectric/build.gradle
demos/ima/build.gradle
View file @
6d8bd345
...
@@ -53,7 +53,7 @@ dependencies {
...
@@ -53,7 +53,7 @@ dependencies {
implementation
project
(
modulePrefix
+
'library-hls'
)
implementation
project
(
modulePrefix
+
'library-hls'
)
implementation
project
(
modulePrefix
+
'library-smoothstreaming'
)
implementation
project
(
modulePrefix
+
'library-smoothstreaming'
)
implementation
project
(
modulePrefix
+
'extension-ima'
)
implementation
project
(
modulePrefix
+
'extension-ima'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
}
}
apply
plugin:
'com.google.android.gms.strict-version-matcher-plugin'
apply
plugin:
'com.google.android.gms.strict-version-matcher-plugin'
demos/main/build.gradle
View file @
6d8bd345
...
@@ -62,7 +62,7 @@ android {
...
@@ -62,7 +62,7 @@ android {
}
}
dependencies
{
dependencies
{
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
implementation
'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation
'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation
'androidx.fragment:fragment:1.0.0'
implementation
'androidx.fragment:fragment:1.0.0'
implementation
'com.google.android.material:material:1.0.0'
implementation
'com.google.android.material:material:1.0.0'
...
...
demos/main/src/main/java/com/google/android/exoplayer2/demo/DownloadTracker.java
View file @
6d8bd345
...
@@ -101,7 +101,7 @@ public class DownloadTracker {
...
@@ -101,7 +101,7 @@ public class DownloadTracker {
RenderersFactory
renderersFactory
)
{
RenderersFactory
renderersFactory
)
{
Download
download
=
downloads
.
get
(
uri
);
Download
download
=
downloads
.
get
(
uri
);
if
(
download
!=
null
)
{
if
(
download
!=
null
)
{
DownloadService
.
s
tartWith
RemoveDownload
(
DownloadService
.
s
end
RemoveDownload
(
context
,
DemoDownloadService
.
class
,
download
.
request
.
id
,
/* foreground= */
false
);
context
,
DemoDownloadService
.
class
,
download
.
request
.
id
,
/* foreground= */
false
);
}
else
{
}
else
{
if
(
startDownloadDialogHelper
!=
null
)
{
if
(
startDownloadDialogHelper
!=
null
)
{
...
@@ -263,7 +263,7 @@ public class DownloadTracker {
...
@@ -263,7 +263,7 @@ public class DownloadTracker {
}
}
private
void
startDownload
(
DownloadRequest
downloadRequest
)
{
private
void
startDownload
(
DownloadRequest
downloadRequest
)
{
DownloadService
.
s
tartWith
NewDownload
(
DownloadService
.
s
end
NewDownload
(
context
,
DemoDownloadService
.
class
,
downloadRequest
,
/* foreground= */
false
);
context
,
DemoDownloadService
.
class
,
downloadRequest
,
/* foreground= */
false
);
}
}
...
...
extensions/cast/build.gradle
View file @
6d8bd345
...
@@ -32,7 +32,7 @@ android {
...
@@ -32,7 +32,7 @@ android {
dependencies
{
dependencies
{
api
'com.google.android.gms:play-services-cast-framework:16.1.2'
api
'com.google.android.gms:play-services-cast-framework:16.1.2'
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-ui'
)
implementation
project
(
modulePrefix
+
'library-ui'
)
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
...
...
extensions/cronet/build.gradle
View file @
6d8bd345
...
@@ -33,7 +33,7 @@ android {
...
@@ -33,7 +33,7 @@ android {
dependencies
{
dependencies
{
api
'org.chromium.net:cronet-embedded:72.3626.96'
api
'org.chromium.net:cronet-embedded:72.3626.96'
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
testImplementation
project
(
modulePrefix
+
'library'
)
testImplementation
project
(
modulePrefix
+
'library'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
}
}
...
...
extensions/ffmpeg/build.gradle
View file @
6d8bd345
...
@@ -38,7 +38,7 @@ android {
...
@@ -38,7 +38,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
}
}
...
...
extensions/flac/build.gradle
View file @
6d8bd345
...
@@ -39,7 +39,7 @@ android {
...
@@ -39,7 +39,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
androidTestImplementation
project
(
modulePrefix
+
'testutils'
)
androidTestImplementation
project
(
modulePrefix
+
'testutils'
)
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
...
...
extensions/gvr/build.gradle
View file @
6d8bd345
...
@@ -33,7 +33,7 @@ android {
...
@@ -33,7 +33,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-ui'
)
implementation
project
(
modulePrefix
+
'library-ui'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
api
'com.google.vr:sdk-base:1.190.0'
api
'com.google.vr:sdk-base:1.190.0'
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
}
}
...
...
extensions/leanback/build.gradle
View file @
6d8bd345
...
@@ -32,7 +32,7 @@ android {
...
@@ -32,7 +32,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
implementation
'androidx.leanback:leanback:1.0.0'
implementation
'androidx.leanback:leanback:1.0.0'
}
}
...
...
extensions/okhttp/build.gradle
View file @
6d8bd345
...
@@ -33,7 +33,7 @@ android {
...
@@ -33,7 +33,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
api
'com.squareup.okhttp3:okhttp:3.12.1'
api
'com.squareup.okhttp3:okhttp:3.12.1'
}
}
...
...
extensions/rtmp/build.gradle
View file @
6d8bd345
...
@@ -33,7 +33,7 @@ android {
...
@@ -33,7 +33,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'net.butterflytv.utils:rtmp-client:3.0.1'
implementation
'net.butterflytv.utils:rtmp-client:3.0.1'
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
}
}
...
...
extensions/vp9/build.gradle
View file @
6d8bd345
...
@@ -39,7 +39,7 @@ android {
...
@@ -39,7 +39,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
androidTestImplementation
'androidx.test.ext:junit:'
+
androidXTestVersion
androidTestImplementation
'androidx.test.ext:junit:'
+
androidXTestVersion
...
...
library/core/build.gradle
View file @
6d8bd345
...
@@ -58,7 +58,7 @@ android {
...
@@ -58,7 +58,7 @@ android {
}
}
dependencies
{
dependencies
{
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-compat-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-compat-qual:'
+
checkerframeworkVersion
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
...
...
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java
View file @
6d8bd345
...
@@ -117,8 +117,8 @@ public abstract class DownloadService extends Service {
...
@@ -117,8 +117,8 @@ public abstract class DownloadService extends Service {
public
static
final
String
KEY_DOWNLOAD_REQUEST
=
"download_request"
;
public
static
final
String
KEY_DOWNLOAD_REQUEST
=
"download_request"
;
/**
/**
* Key for the content id in {@link #ACTION_S
TART}, {@link #ACTION_STOP} and {@link
* Key for the content id in {@link #ACTION_S
ET_MANUAL_STOP_REASON} and {@link #ACTION_REMOVE}
*
#ACTION_REMOVE}
intents.
* intents.
*/
*/
public
static
final
String
KEY_CONTENT_ID
=
"content_id"
;
public
static
final
String
KEY_CONTENT_ID
=
"content_id"
;
...
@@ -265,10 +265,9 @@ public abstract class DownloadService extends Service {
...
@@ -265,10 +265,9 @@ public abstract class DownloadService extends Service {
DownloadRequest
downloadRequest
,
DownloadRequest
downloadRequest
,
int
manualStopReason
,
int
manualStopReason
,
boolean
foreground
)
{
boolean
foreground
)
{
return
getIntent
(
context
,
clazz
,
ACTION_ADD
)
return
getIntent
(
context
,
clazz
,
ACTION_ADD
,
foreground
)
.
putExtra
(
KEY_DOWNLOAD_REQUEST
,
downloadRequest
)
.
putExtra
(
KEY_DOWNLOAD_REQUEST
,
downloadRequest
)
.
putExtra
(
KEY_MANUAL_STOP_REASON
,
manualStopReason
)
.
putExtra
(
KEY_MANUAL_STOP_REASON
,
manualStopReason
);
.
putExtra
(
KEY_FOREGROUND
,
foreground
);
}
}
/**
/**
...
@@ -282,9 +281,7 @@ public abstract class DownloadService extends Service {
...
@@ -282,9 +281,7 @@ public abstract class DownloadService extends Service {
*/
*/
public
static
Intent
buildRemoveDownloadIntent
(
public
static
Intent
buildRemoveDownloadIntent
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
id
,
boolean
foreground
)
{
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
id
,
boolean
foreground
)
{
return
getIntent
(
context
,
clazz
,
ACTION_REMOVE
)
return
getIntent
(
context
,
clazz
,
ACTION_REMOVE
,
foreground
).
putExtra
(
KEY_CONTENT_ID
,
id
);
.
putExtra
(
KEY_CONTENT_ID
,
id
)
.
putExtra
(
KEY_FOREGROUND
,
foreground
);
}
}
/**
/**
...
@@ -295,55 +292,122 @@ public abstract class DownloadService extends Service {
...
@@ -295,55 +292,122 @@ public abstract class DownloadService extends Service {
* @param clazz The concrete download service being targeted by the intent.
* @param clazz The concrete download service being targeted by the intent.
* @param id The content id, or {@code null} to set the manual stop reason for all downloads.
* @param id The content id, or {@code null} to set the manual stop reason for all downloads.
* @param manualStopReason An application defined stop reason.
* @param manualStopReason An application defined stop reason.
* @param foreground Whether this intent will be used to start the service in the foreground.
* @return Created Intent.
* @return Created Intent.
*/
*/
public
static
Intent
buildSetManualStopReasonIntent
(
public
static
Intent
buildSetManualStopReasonIntent
(
Context
context
,
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
Class
<?
extends
DownloadService
>
clazz
,
@Nullable
String
id
,
@Nullable
String
id
,
int
manualStopReason
)
{
int
manualStopReason
,
return
getIntent
(
context
,
clazz
,
ACTION_STOP
)
boolean
foreground
)
{
return
getIntent
(
context
,
clazz
,
ACTION_SET_MANUAL_STOP_REASON
,
foreground
)
.
putExtra
(
KEY_CONTENT_ID
,
id
)
.
putExtra
(
KEY_CONTENT_ID
,
id
)
.
putExtra
(
KEY_MANUAL_STOP_REASON
,
manualStopReason
);
.
putExtra
(
KEY_MANUAL_STOP_REASON
,
manualStopReason
);
}
}
/**
/**
* Starts the service, adding a new download.
* Builds an {@link Intent} for starting all downloads.
*
* @param context A {@link Context}.
* @param clazz The concrete download service being targeted by the intent.
* @param foreground Whether this intent will be used to start the service in the foreground.
* @return Created Intent.
*/
public
static
Intent
buildStartDownloadsIntent
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
boolean
foreground
)
{
return
getIntent
(
context
,
clazz
,
ACTION_START
,
foreground
);
}
/**
* Builds an {@link Intent} for stopping all downloads.
*
* @param context A {@link Context}.
* @param clazz The concrete download service being targeted by the intent.
* @param foreground Whether this intent will be used to start the service in the foreground.
* @return Created Intent.
*/
public
static
Intent
buildStopDownloadsIntent
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
boolean
foreground
)
{
return
getIntent
(
context
,
clazz
,
ACTION_STOP
,
foreground
);
}
/**
* Starts the service if not started already and adds a new download.
*
*
* @param context A {@link Context}.
* @param context A {@link Context}.
* @param clazz The concrete download service to be started.
* @param clazz The concrete download service to be started.
* @param downloadRequest The request to be executed.
* @param downloadRequest The request to be executed.
* @param foreground Whether the service is started in the foreground.
* @param foreground Whether the service is started in the foreground.
*/
*/
public
static
void
s
tartWith
NewDownload
(
public
static
void
s
end
NewDownload
(
Context
context
,
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
Class
<?
extends
DownloadService
>
clazz
,
DownloadRequest
downloadRequest
,
DownloadRequest
downloadRequest
,
boolean
foreground
)
{
boolean
foreground
)
{
Intent
intent
=
buildAddRequestIntent
(
context
,
clazz
,
downloadRequest
,
foreground
);
Intent
intent
=
buildAddRequestIntent
(
context
,
clazz
,
downloadRequest
,
foreground
);
if
(
foreground
)
{
startService
(
context
,
intent
,
foreground
);
Util
.
startForegroundService
(
context
,
intent
);
}
else
{
context
.
startService
(
intent
);
}
}
}
/**
/**
* Starts the service
to remove
a download.
* Starts the service
if not started already and removes
a download.
*
*
* @param context A {@link Context}.
* @param context A {@link Context}.
* @param clazz The concrete download service to be started.
* @param clazz The concrete download service to be started.
* @param id The content id.
* @param id The content id.
* @param foreground Whether the service is started in the foreground.
* @param foreground Whether the service is started in the foreground.
*/
*/
public
static
void
s
tartWith
RemoveDownload
(
public
static
void
s
end
RemoveDownload
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
id
,
boolean
foreground
)
{
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
id
,
boolean
foreground
)
{
Intent
intent
=
buildRemoveDownloadIntent
(
context
,
clazz
,
id
,
foreground
);
Intent
intent
=
buildRemoveDownloadIntent
(
context
,
clazz
,
id
,
foreground
);
if
(
foreground
)
{
startService
(
context
,
intent
,
foreground
);
Util
.
startForegroundService
(
context
,
intent
);
}
}
else
{
context
.
startService
(
intent
);
/**
}
* Starts the service if not started already and sets the manual stop reason for one or all
* downloads. To clear manual stop reason, pass {@link Download#MANUAL_STOP_REASON_NONE}.
*
* @param context A {@link Context}.
* @param clazz The concrete download service to be started.
* @param id The content id, or {@code null} to set the manual stop reason for all downloads.
* @param manualStopReason An application defined stop reason.
* @param foreground Whether the service is started in the foreground.
*/
public
static
void
sendManualStopReason
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
@Nullable
String
id
,
int
manualStopReason
,
boolean
foreground
)
{
Intent
intent
=
buildSetManualStopReasonIntent
(
context
,
clazz
,
id
,
manualStopReason
,
foreground
);
startService
(
context
,
intent
,
foreground
);
}
/**
* Starts the service if not started already and starts all downloads.
*
* @param context A {@link Context}.
* @param clazz The concrete download service to be started.
* @param foreground Whether the service is started in the foreground.
*/
public
static
void
sendStartDownloads
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
boolean
foreground
)
{
Intent
intent
=
buildStartDownloadsIntent
(
context
,
clazz
,
foreground
);
startService
(
context
,
intent
,
foreground
);
}
/**
* Starts the service if not started already and stops all downloads.
*
* @param context A {@link Context}.
* @param clazz The concrete download service to be started.
* @param foreground Whether the service is started in the foreground.
*/
public
static
void
sendStopDownloads
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
boolean
foreground
)
{
Intent
intent
=
buildStopDownloadsIntent
(
context
,
clazz
,
foreground
);
startService
(
context
,
intent
,
foreground
);
}
}
/**
/**
...
@@ -367,7 +431,7 @@ public abstract class DownloadService extends Service {
...
@@ -367,7 +431,7 @@ public abstract class DownloadService extends Service {
* @see #start(Context, Class)
* @see #start(Context, Class)
*/
*/
public
static
void
startForeground
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
)
{
public
static
void
startForeground
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
)
{
Intent
intent
=
getIntent
(
context
,
clazz
,
ACTION_INIT
).
putExtra
(
KEY_FOREGROUND
,
true
);
Intent
intent
=
getIntent
(
context
,
clazz
,
ACTION_INIT
,
true
);
Util
.
startForegroundService
(
context
,
intent
);
Util
.
startForegroundService
(
context
,
intent
);
}
}
...
@@ -589,10 +653,23 @@ public abstract class DownloadService extends Service {
...
@@ -589,10 +653,23 @@ public abstract class DownloadService extends Service {
}
}
private
static
Intent
getIntent
(
private
static
Intent
getIntent
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
action
,
boolean
foreground
)
{
return
getIntent
(
context
,
clazz
,
action
).
putExtra
(
KEY_FOREGROUND
,
foreground
);
}
private
static
Intent
getIntent
(
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
action
)
{
Context
context
,
Class
<?
extends
DownloadService
>
clazz
,
String
action
)
{
return
new
Intent
(
context
,
clazz
).
setAction
(
action
);
return
new
Intent
(
context
,
clazz
).
setAction
(
action
);
}
}
private
static
void
startService
(
Context
context
,
Intent
intent
,
boolean
foreground
)
{
if
(
foreground
)
{
Util
.
startForegroundService
(
context
,
intent
);
}
else
{
context
.
startService
(
intent
);
}
}
private
final
class
ForegroundNotificationUpdater
{
private
final
class
ForegroundNotificationUpdater
{
private
final
int
notificationId
;
private
final
int
notificationId
;
...
...
library/dash/build.gradle
View file @
6d8bd345
...
@@ -41,7 +41,7 @@ android {
...
@@ -41,7 +41,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
}
}
...
...
library/hls/build.gradle
View file @
6d8bd345
...
@@ -39,7 +39,7 @@ android {
...
@@ -39,7 +39,7 @@ android {
}
}
dependencies
{
dependencies
{
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
...
...
library/smoothstreaming/build.gradle
View file @
6d8bd345
...
@@ -41,7 +41,7 @@ android {
...
@@ -41,7 +41,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
}
}
...
...
library/ui/build.gradle
View file @
6d8bd345
...
@@ -41,7 +41,7 @@ android {
...
@@ -41,7 +41,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.media:media:1.0.0'
implementation
'androidx.media:media:1.0.0'
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'testutils-robolectric'
)
}
}
...
...
playbacktests/build.gradle
View file @
6d8bd345
...
@@ -34,7 +34,7 @@ android {
...
@@ -34,7 +34,7 @@ android {
dependencies
{
dependencies
{
androidTestImplementation
'androidx.test:rules:'
+
androidXTestVersion
androidTestImplementation
'androidx.test:rules:'
+
androidXTestVersion
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
androidTestImplementation
'androidx.test:runner:'
+
androidXTestVersion
androidTestImplementation
'androidx.annotation:annotation:1.0.
1
'
androidTestImplementation
'androidx.annotation:annotation:1.0.
2
'
androidTestImplementation
project
(
modulePrefix
+
'library-core'
)
androidTestImplementation
project
(
modulePrefix
+
'library-core'
)
androidTestImplementation
project
(
modulePrefix
+
'library-dash'
)
androidTestImplementation
project
(
modulePrefix
+
'library-dash'
)
androidTestImplementation
project
(
modulePrefix
+
'library-hls'
)
androidTestImplementation
project
(
modulePrefix
+
'library-hls'
)
...
...
testutils/build.gradle
View file @
6d8bd345
...
@@ -41,7 +41,7 @@ dependencies {
...
@@ -41,7 +41,7 @@ dependencies {
api
'org.mockito:mockito-core:'
+
mockitoVersion
api
'org.mockito:mockito-core:'
+
mockitoVersion
api
'androidx.test.ext:junit:'
+
androidXTestVersion
api
'androidx.test.ext:junit:'
+
androidXTestVersion
api
'androidx.test.ext:truth:'
+
androidXTestVersion
api
'androidx.test.ext:truth:'
+
androidXTestVersion
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'com.google.auto.value:auto-value-annotations:'
+
autoValueVersion
implementation
'com.google.auto.value:auto-value-annotations:'
+
autoValueVersion
annotationProcessor
'com.google.auto.value:auto-value:'
+
autoValueVersion
annotationProcessor
'com.google.auto.value:auto-value:'
+
autoValueVersion
...
...
testutils_robolectric/build.gradle
View file @
6d8bd345
...
@@ -41,5 +41,5 @@ dependencies {
...
@@ -41,5 +41,5 @@ dependencies {
api
'org.robolectric:robolectric:'
+
robolectricVersion
api
'org.robolectric:robolectric:'
+
robolectricVersion
api
project
(
modulePrefix
+
'testutils'
)
api
project
(
modulePrefix
+
'testutils'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'androidx.annotation:annotation:1.0.
1
'
implementation
'androidx.annotation:annotation:1.0.
2
'
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment