Update dependencies

This commit is contained in:
xynngh 2021-10-30 15:48:46 +04:00
parent c84999f4b0
commit 76650eeeed
4 changed files with 17 additions and 7 deletions

View File

@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Partial Chinese (Simplified) translation thanks to Jane Kong ([@Myon](https://hosted.weblate.org/user/Myon/)).
### Changed
- Updated dependencies (appcompat, recyclerview, material, work-runtime).
## [0.5.16] - 2021-07-31

View File

@ -26,7 +26,7 @@ android {
variant.resValue "string", "app_id", variant.applicationId
}
lintOptions {
disable 'MissingTranslation'
lintConfig file("lint.xml")
}
}
@ -37,7 +37,7 @@ greendao {
dependencies {
def eventbus_version = '3.2.0'
implementation 'org.slf4j:slf4j-api:1.7.30'
implementation 'org.slf4j:slf4j-api:1.7.32'
runtimeOnly 'com.github.tony19:logback-android:2.0.0'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
//noinspection GradleDependency: 3.12.* is the latest version compatible with Android <5
@ -45,13 +45,13 @@ dependencies {
implementation 'com.gitlab.xynngh:LibPhoneNumberInfo:c77bdd2b69'
implementation 'org.apache.commons:commons-csv:1.8'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.recyclerview:recyclerview-selection:1.1.0'
implementation 'androidx.paging:paging-runtime:2.1.2'
implementation 'com.google.android.material:material:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.work:work-runtime:2.5.0'
implementation 'androidx.work:work-runtime:2.6.0'
implementation 'org.greenrobot:greendao:3.3.0'
implementation "org.greenrobot:eventbus:$eventbus_version"
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbus_version"

6
app/lint.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="MissingTranslation" severity="ignore" />
<issue id="UsingOnClickInXml" severity="warning" />
</lint>

View File

@ -45,7 +45,7 @@ public abstract class GenericRecyclerViewAdapter<T, V extends GenericRecyclerVie
public GenericViewHolder(@NonNull View itemView) {
super(itemView);
itemView.setOnClickListener(v -> onClick(getAdapterPosition()));
itemView.setOnClickListener(v -> onClick(getBindingAdapterPosition()));
}
abstract void bind(T item);