File tree 4 files changed +9
-14
lines changed
src/main/java/com/freeankit/rxkotlinoperators/ui
RxOperators/errorHandlingOperators
4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,18 @@ android {
28
28
29
29
dependencies {
30
30
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
31
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
32
-
33
- // rxJava2
34
- implementation ' io.reactivex.rxjava2:rxjava:2.1.9'
35
- implementation ' io.reactivex.rxjava2:rxandroid:2.0.2'
36
-
31
+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
37
32
implementation ' com.android.support:recyclerview-v7:27.1.1'
38
33
implementation ' com.android.support:design:27.1.1'
39
34
implementation ' com.android.support:appcompat-v7:27.1.1'
40
35
implementation ' com.android.support:animated-vector-drawable:27.1.1'
41
-
42
36
implementation ' com.android.support.constraint:constraint-layout:1.1.0'
43
37
44
- // Rx Binding
38
+ // rxJava2
39
+ implementation ' io.reactivex.rxjava2:rxjava:2.1.9'
40
+ implementation ' io.reactivex.rxjava2:rxandroid:2.0.2'
45
41
42
+ // Rx Binding
46
43
implementation ' com.jakewharton.rxbinding2:rxbinding:2.1.1'
47
44
implementation ' com.jakewharton.rxbinding2:rxbinding-support-v4:2.1.1'
48
45
implementation ' com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.1.1'
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class RetryOperatorActivity : AppCompatActivity() {
30
30
private fun executeRetryOperator () {
31
31
getObservable()
32
32
.retry()
33
- // .retryWhen(o -> o .delay(100, TimeUnit.MILLISECONDS))
33
+ // .retryWhen(source -> source .delay(100, TimeUnit.MILLISECONDS))
34
34
.debounce(500 , TimeUnit .MILLISECONDS )
35
35
// Run on a background thread
36
36
.subscribeOn(Schedulers .io())
Original file line number Diff line number Diff line change @@ -44,10 +44,8 @@ class PaginationActivity : AppCompatActivity() {
44
44
45
45
private fun setUpLoadMoreListener () {
46
46
recyclerView.addOnScrollListener(object : RecyclerView .OnScrollListener () {
47
- override fun onScrolled (recyclerView : RecyclerView ,
48
- dx : Int , dy : Int ) {
47
+ override fun onScrolled (recyclerView : RecyclerView , dx : Int , dy : Int ) {
49
48
super .onScrolled(recyclerView, dx, dy)
50
-
51
49
totalItemCount = layoutManager?.itemCount!!
52
50
lastVisibleItem = layoutManager?.findLastVisibleItemPosition()!!
53
51
if (! loading && totalItemCount <= lastVisibleItem + VISIBLE_THRESHOLD ) {
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
3
buildscript {
4
- ext. kotlin_version = ' 1.2.40 '
4
+ ext. kotlin_version = ' 1.2.41 '
5
5
repositories {
6
6
google()
7
7
jcenter()
8
8
}
9
9
dependencies {
10
- classpath ' com.android.tools.build:gradle:3.1.1 '
10
+ classpath ' com.android.tools.build:gradle:3.1.2 '
11
11
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
12
12
13
13
// NOTE: Do not place your application dependencies here; they belong
You can’t perform that action at this time.
0 commit comments