Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit c3a4bbe

Browse files
committed
Merge remote-tracking branch 'goog/github/master' into HEAD
Change-Id: Ie5d5fbf8464f9bb4efc1357333db50fad0550102
2 parents 9f4ba8b + 97704b1 commit c3a4bbe

File tree

4 files changed

+29
-28
lines changed

4 files changed

+29
-28
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
google()
2424
}
2525
dependencies {
26-
classpath 'com.android.tools.build:gradle:3.0.1'
26+
classpath 'com.android.tools.build:gradle:3.1.2'
2727

2828
// NOTE: Do not place your application dependencies here; they belong
2929
// in the individual module build.gradle files
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Mar 22 11:24:54 PDT 2018
1+
#Tue Apr 24 18:42:10 ICT 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

mobile/build.gradle

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,23 @@ repositories {
4949
}
5050

5151
dependencies {
52-
provided 'com.google.android.wearable:wearable:2.2.0'
52+
compileOnly 'com.google.android.wearable:wearable:2.3.0'
5353

54-
compile 'com.google.android.gms:play-services-cast-framework:12.0.0'
55-
compile 'com.google.android.support:wearable:2.2.0'
56-
compile 'com.android.support:appcompat-v7:27.1.0'
57-
compile 'com.android.support:cardview-v7:27.1.0'
58-
compile 'com.android.support:mediarouter-v7:27.1.0'
59-
compile 'com.android.support:leanback-v17:27.1.0'
60-
compile 'com.android.support:design:27.1.0'
54+
implementation 'com.google.android.gms:play-services-cast-framework:15.0.0'
55+
implementation 'com.google.android.support:wearable:2.3.0'
56+
implementation 'com.android.support:appcompat-v7:27.1.1'
57+
implementation 'com.android.support:cardview-v7:27.1.1'
58+
implementation 'com.android.support:mediarouter-v7:27.1.1'
59+
implementation 'com.android.support:leanback-v17:27.1.1'
60+
implementation 'com.android.support:design:27.1.1'
61+
implementation 'com.android.support:percent:27.1.1'
6162

62-
compile 'com.google.android.exoplayer:exoplayer:2.7.0'
63+
implementation 'com.google.android.exoplayer:exoplayer:2.7.3'
6364

64-
testCompile 'junit:junit:4.12'
65-
testCompile 'org.mockito:mockito-core:2.12.0'
66-
androidTestCompile 'junit:junit:4.12'
67-
androidTestCompile 'com.android.support:support-annotations:27.1.0'
68-
androidTestCompile 'com.android.support.test:runner:1.0.1'
69-
androidTestCompile 'com.android.support.test:rules:1.0.1'
65+
testImplementation 'junit:junit:4.12'
66+
testImplementation 'org.mockito:mockito-core:2.15.0'
67+
androidTestImplementation 'junit:junit:4.12'
68+
androidTestImplementation 'com.android.support:support-annotations:27.1.1'
69+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
70+
androidTestImplementation 'com.android.support.test:rules:1.0.2'
7071
}

mobile/src/main/java/com/example/android/uamp/playback/LocalPlayback.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
import com.example.android.uamp.utils.MediaIDHelper;
3434
import com.google.android.exoplayer2.DefaultLoadControl;
3535
import com.google.android.exoplayer2.ExoPlaybackException;
36-
import com.google.android.exoplayer2.ExoPlayer;
3736
import com.google.android.exoplayer2.ExoPlayerFactory;
3837
import com.google.android.exoplayer2.PlaybackParameters;
38+
import com.google.android.exoplayer2.Player;
3939
import com.google.android.exoplayer2.SimpleExoPlayer;
4040
import com.google.android.exoplayer2.Timeline;
4141
import com.google.android.exoplayer2.audio.AudioAttributes;
@@ -148,15 +148,15 @@ public int getState() {
148148
: PlaybackStateCompat.STATE_NONE;
149149
}
150150
switch (mExoPlayer.getPlaybackState()) {
151-
case ExoPlayer.STATE_IDLE:
151+
case Player.STATE_IDLE:
152152
return PlaybackStateCompat.STATE_PAUSED;
153-
case ExoPlayer.STATE_BUFFERING:
153+
case Player.STATE_BUFFERING:
154154
return PlaybackStateCompat.STATE_BUFFERING;
155-
case ExoPlayer.STATE_READY:
155+
case Player.STATE_READY:
156156
return mExoPlayer.getPlayWhenReady()
157157
? PlaybackStateCompat.STATE_PLAYING
158158
: PlaybackStateCompat.STATE_PAUSED;
159-
case ExoPlayer.STATE_ENDED:
159+
case Player.STATE_ENDED:
160160
return PlaybackStateCompat.STATE_PAUSED;
161161
default:
162162
return PlaybackStateCompat.STATE_NONE;
@@ -404,7 +404,7 @@ private void unregisterAudioNoisyReceiver() {
404404
}
405405
}
406406

407-
private final class ExoPlayerEventListener implements ExoPlayer.EventListener {
407+
private final class ExoPlayerEventListener implements Player.EventListener {
408408
@Override
409409
public void onTimelineChanged(Timeline timeline, Object manifest, int reason) {
410410
// Nothing to do.
@@ -424,14 +424,14 @@ public void onLoadingChanged(boolean isLoading) {
424424
@Override
425425
public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
426426
switch (playbackState) {
427-
case ExoPlayer.STATE_IDLE:
428-
case ExoPlayer.STATE_BUFFERING:
429-
case ExoPlayer.STATE_READY:
427+
case Player.STATE_IDLE:
428+
case Player.STATE_BUFFERING:
429+
case Player.STATE_READY:
430430
if (mCallback != null) {
431431
mCallback.onPlaybackStatusChanged(getState());
432432
}
433433
break;
434-
case ExoPlayer.STATE_ENDED:
434+
case Player.STATE_ENDED:
435435
// The media player finished playing the current song.
436436
if (mCallback != null) {
437437
mCallback.onCompletion();

0 commit comments

Comments
 (0)