Skip to content
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

Merged
merged 2 commits into from
Mar 18, 2019

Conversation

kirillzh
Copy link
Contributor

Updated the library to use latest tools and dependencies

@@ -20,7 +23,7 @@
private RxSharedPreferences rxPreferences;

@Before public void setUp() {
SharedPreferences preferences = getDefaultSharedPreferences(RuntimeEnvironment.application);
SharedPreferences preferences = getDefaultSharedPreferences(ApplicationProvider.getApplicationContext());
Copy link
Contributor Author

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
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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"
Copy link
Contributor Author

@kirillzh kirillzh Mar 17, 2019

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'
Copy link
Contributor Author

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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋

@kirillzh kirillzh force-pushed the update-to-latest-and-greatest branch from 9c68434 to eed66bb Compare March 17, 2019 12:09
@kirillzh kirillzh force-pushed the update-to-latest-and-greatest branch from eed66bb to c7f84f8 Compare March 17, 2019 12:11
Copy link
Owner

@f2prateek f2prateek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kirillzh kirillzh mentioned this pull request Mar 18, 2019
2 tasks
@f2prateek f2prateek merged commit e338b4e into f2prateek:master Mar 18, 2019
@f2prateek f2prateek mentioned this pull request Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants