-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use latest and greatest tools and libraries #124
Use latest and greatest tools and libraries #124
Conversation
@@ -20,7 +23,7 @@ | |||
private RxSharedPreferences rxPreferences; | |||
|
|||
@Before public void setUp() { | |||
SharedPreferences preferences = getDefaultSharedPreferences(RuntimeEnvironment.application); | |||
SharedPreferences preferences = getDefaultSharedPreferences(ApplicationProvider.getApplicationContext()); |
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.
RuntimeEnvironment.application
is deprecated.
@@ -112,7 +113,6 @@ public void onSharedPreferenceChanged(SharedPreferences preferences, String key) | |||
/** Create a long preference for {@code key}. Default is {@code 0}. */ | |||
@CheckResult @NonNull | |||
public Preference<Long> getLong(@NonNull String key) { | |||
//noinspection UnnecessaryBoxing |
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.
These inspections are redundant.
@@ -46,7 +48,7 @@ public void onSharedPreferenceChanged(SharedPreferences preferences, String key) | |||
}; | |||
|
|||
emitter.setCancellable(new Cancellable() { | |||
@Override public void cancel() throws Exception { |
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.
Never actually throws.
group = GROUP | ||
version = VERSION_NAME | ||
plugins { | ||
id("net.ltgt.errorprone") version "0.7.1" |
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.
TIL you can do this in Gradle 5.2.1
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.0' | ||
classpath 'me.tatarka:gradle-retrolambda:3.3.0' |
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.
Retrolambda no longer needed with latest butter knife.
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip |
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.
👋
9c68434
to
eed66bb
Compare
eed66bb
to
c7f84f8
Compare
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.
LGTM!
Updated the library to use latest tools and dependencies