-
Notifications
You must be signed in to change notification settings - Fork 28
ExoPlayer 2 - Fix build by removing notils #45
Conversation
import java.io.PrintWriter; | ||
import java.io.StringWriter; | ||
|
||
public abstract class Log { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should rename this so that clients of the library don't get spammed with Log
classes 🍡 NoPlayerLog
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to remove it, named it Log
to make it easier the migration and forgot to rename it afterwards. Good point.
import java.io.PrintWriter; | ||
import java.io.StringWriter; | ||
|
||
public abstract class NoPlayerLog { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is basically a quick port of what we have in notils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit then g2g
if (!isEnabled) { | ||
return; | ||
} | ||
android.util.Log.e("No-Player", logMessage(msg, throwable)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit extract constant for the tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Problem
We are having a lot of issues because of the
notils
support library versions clashing with libraries support versions.Solution
We are not using notils a lot, instead I have "ported" the Logging function to an
utils.Log
classTest(s) added
Modified some existing tests
Screenshots
No UI changes
Paired with
Nobody