Skip to content

Commit

Permalink
Merge pull request #5 from vivekpshaligram/phase-2
Browse files Browse the repository at this point in the history
remove update per page abstract function
  • Loading branch information
vivekpshaligram authored Dec 27, 2024
2 parents 1f7e1dc + 5e38f68 commit 0424f2c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add the dependency

```
dependencies {
implementation 'com.github.vivekpshaligram:sit-common:2.0.3'
implementation 'com.github.vivekpshaligram:sit-common:2.0.4'
}
```

Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/sit/sociallogin/ui/LoginViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ class LoginViewModel @Inject constructor(val repository: Repository) : BaseViewM
}
}

override fun updatePerPage() {

}
}
2 changes: 1 addition & 1 deletion sit-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ afterEvaluate {
from (components["release"])
groupId = "com.github.sit"
artifactId = "android-common"
version = "2.0.3"
version = "2.0.4"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ abstract class BaseViewModel : ViewModel() {
MutableLiveData<Boolean>().apply { this.postValue(false) }
val isSessionTimeOut: SingleLiveEvent<Boolean> = SingleLiveEvent()
var isDataEmpty = false
val perPage = 25
var perPage = 25
var page = 1
var searchValue: String? = null
var searchJob: Job? = null
var isApiCalling = false

abstract fun updatePerPage()

protected fun Response<out ResponseModel<out Any>>.checkResponse(): Boolean {
return if (isSuccessful && body() != null) {
true
Expand Down

0 comments on commit 0424f2c

Please sign in to comment.