-
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
#114 Add in memory preference #125
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b3a99a0
Use latest and greatest tools and libraries
c7f84f8
Automatically accept Android SDK license in Travis CI
43fbad5
Add test.TestPreference in-memory implementation for testing purposes
04f883e
Move TestPreference.kt to top package
46048ce
Reuse code in TestPreference tests
8ca94b5
Revert accidental change in RxSharedPreferences.java
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,59 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
maven { url 'https://plugins.gradle.org/m2/' } | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.0' | ||
classpath 'me.tatarka:gradle-retrolambda:3.3.0' | ||
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.10' | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
} | ||
ext { | ||
buildToolsVersion = '28.0.3' | ||
butterknifeVersion = '10.1.0' | ||
compileSdkVersion = 28 | ||
java8Version = JavaVersion.VERSION_1_8 | ||
javaVersion = JavaVersion.VERSION_1_7 | ||
kotlinVersion = '1.3.21' | ||
minSdkVersion = 9 | ||
targetSdkVersion = 28 | ||
} | ||
|
||
tasks.withType(JavaCompile) { | ||
options.compilerArgs += ['-Xlint:all', '-Xlint:-processing', '-Werror'] | ||
} | ||
repositories { | ||
mavenCentral() | ||
google() | ||
jcenter() | ||
} | ||
|
||
apply plugin: 'net.ltgt.errorprone' | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.3.2' | ||
classpath "com.jakewharton:butterknife-gradle-plugin:${butterknifeVersion}" | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}" | ||
} | ||
} | ||
|
||
group = GROUP | ||
version = VERSION_NAME | ||
plugins { | ||
id("net.ltgt.errorprone") version "0.7.1" | ||
} | ||
|
||
ext { | ||
minSdkVersion = 9 | ||
targetSdkVersion = 25 | ||
compileSdkVersion = 25 | ||
buildToolsVersion = '25.0.2' | ||
javaVersion = JavaVersion.VERSION_1_7 | ||
java8Version = JavaVersion.VERSION_1_8 | ||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
jcenter() | ||
} | ||
|
||
tasks.withType(JavaCompile) { | ||
options.compilerArgs += ['-Xlint:all', '-Xlint:-processing', '-Werror'] | ||
} | ||
|
||
group = GROUP | ||
version = VERSION_NAME | ||
} | ||
|
||
ext.deps = [ | ||
annotations: 'com.android.support:support-annotations:25.1.1', | ||
rxjava: 'io.reactivex.rxjava2:rxjava:2.0.3', | ||
rxandroid: 'io.reactivex.rxjava2:rxandroid:2.0.1', | ||
rxbinding: 'com.jakewharton.rxbinding:rxbinding:0.3.0', | ||
rxjava2interop: 'com.github.akarnokd:rxjava2-interop:0.4.0', | ||
butterknife: 'com.jakewharton:butterknife:8.4.0', | ||
butterknifeCompiler: 'com.jakewharton:butterknife-compiler:8.4.0', | ||
junit: 'junit:junit:4.12', | ||
assertj: 'org.assertj:assertj-core:1.7.0', | ||
robolectric: 'org.robolectric:robolectric:3.0', | ||
annotations : 'androidx.annotation:annotation:1.0.2', | ||
assertj : 'org.assertj:assertj-core:3.12.2', | ||
butterknife : "com.jakewharton:butterknife:${ext.butterknifeVersion}", | ||
butterknifeCompiler: "com.jakewharton:butterknife-compiler:${ext.butterknifeVersion}", | ||
junit : 'junit:junit:4.12', | ||
kotlinStdlib : "org.jetbrains.kotlin:kotlin-stdlib:${ext.kotlinVersion}", | ||
kotlinReflect : "org.jetbrains.kotlin:kotlin-reflect:${ext.kotlinVersion}", | ||
robolectric : 'org.robolectric:robolectric:4.2.1', | ||
rxandroid : 'io.reactivex.rxjava2:rxandroid:2.1.1', | ||
rxbinding : 'com.jakewharton.rxbinding:rxbinding:1.0.1', | ||
rxjava2 : 'io.reactivex.rxjava2:rxjava:2.2.7', | ||
rxjava2interop : 'com.github.akarnokd:rxjava2-interop:0.13.5', | ||
testcore : 'androidx.test:core:1.0.0' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Tue Mar 14 01:37:42 PDT 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
|
||
android { | ||
compileSdkVersion rootProject.ext.compileSdkVersion | ||
|
@@ -20,12 +21,15 @@ android { | |
} | ||
|
||
dependencies { | ||
compile deps.annotations | ||
compile deps.rxjava | ||
implementation deps.annotations | ||
implementation deps.kotlinStdlib | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be public? |
||
api deps.rxjava2 | ||
|
||
testCompile deps.junit | ||
testCompile deps.assertj | ||
testCompile deps.robolectric | ||
testImplementation deps.assertj | ||
testImplementation deps.junit | ||
testImplementation deps.kotlinReflect | ||
testImplementation deps.robolectric | ||
testImplementation deps.testcore | ||
} | ||
|
||
apply from: rootProject.file('gradle/gradle-mvn-push.gradle') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<manifest package="com.f2prateek.rx.preferences2"> | ||
<application/> | ||
</manifest> | ||
<manifest package="com.f2prateek.rx.preferences2"/> |
3 changes: 2 additions & 1 deletion
3
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/BooleanAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/ConverterAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/EnumAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/FloatAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/IntegerAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/LongAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
rx-preferences/src/main/java/com/f2prateek/rx/preferences2/Preference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'm not sure we want to add a Kotlin dependency just for this.