Skip to content

Commit 7c89461

Browse files
committed
update project gradle version
1 parent b45f2a8 commit 7c89461

19 files changed

+88
-94
lines changed

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 30
4+
compileSdk 34
5+
namespace 'com.mvvm.contactlist'
6+
57
defaultConfig {
68
applicationId "com.mvvm.contactlist"
7-
minSdkVersion 21
8-
targetSdkVersion 30
9+
minSdkVersion 23
10+
targetSdkVersion 34
911
versionCode 1
1012
versionName "1.0"
1113
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -17,8 +19,8 @@ android {
1719
}
1820
}
1921

20-
dataBinding {
21-
enabled = true
22+
buildFeatures {
23+
dataBinding = true
2224
}
2325

2426
compileOptions {
@@ -29,15 +31,16 @@ android {
2931

3032
dependencies {
3133

32-
def room = "2.2.5"
33-
def appcompat = "1.1.0"
34+
def room = "2.5.2"
35+
36+
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'
3437

3538
implementation fileTree(dir: 'libs', include: ['*.jar'])
36-
implementation "androidx.appcompat:appcompat:$appcompat"
37-
implementation "com.google.android.material:material:$appcompat"
39+
implementation 'androidx.appcompat:appcompat:1.6.1'
40+
implementation 'com.google.android.material:material:1.9.0'
3841

3942
implementation "androidx.legacy:legacy-support-v4:1.0.0"
40-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
43+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4144
implementation 'androidx.navigation:navigation-fragment:2.3.0'
4245
implementation 'androidx.navigation:navigation-ui:2.3.0'
4346
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
@@ -51,15 +54,15 @@ dependencies {
5154

5255
implementation 'de.hdodenhof:circleimageview:3.1.0'
5356
implementation 'com.github.nguyenhoanglam:ImagePicker:1.3.3'
54-
implementation 'id.zelory:compressor:2.1.0'
57+
implementation 'id.zelory:compressor:2.1.1'
5558
implementation 'com.github.f0ris.sweetalert:library:1.6.2'
56-
implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
59+
implementation 'com.github.cachapa:ExpandableLayout:2.9.2'
5760
implementation 'com.karumi:dexter:6.0.2'
5861

59-
implementation 'com.github.bumptech.glide:glide:4.11.0'
62+
implementation 'com.github.bumptech.glide:glide:4.15.1'
6063
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
6164

62-
testImplementation 'junit:junit:4.13'
63-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
64-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
65+
testImplementation 'junit:junit:4.13.2'
66+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
67+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
6568
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="com.mvvm.contactlist">
3+
xmlns:tools="http://schemas.android.com/tools">
54

65
<uses-permission android:name="android.permission.READ_CONTACTS" />
76
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
@@ -13,11 +12,11 @@
1312
android:roundIcon="@mipmap/ic_launcher_round"
1413
android:supportsRtl="true"
1514
android:theme="@style/AppTheme"
16-
tools:ignore="GoogleAppIndexingWarning"
17-
tools:replace="android:icon">
15+
tools:replace="android:allowBackup">
16+
1817
<activity
1918
android:name=".ui.MainActivity"
20-
android:label="@string/app_name"
19+
android:exported="true"
2120
android:theme="@style/AppTheme.NoActionBar"
2221
android:windowSoftInputMode="stateHidden">
2322
<intent-filter>

app/src/main/java/com/mvvm/contactlist/adapter/CategoryListAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class CategoryListAdapter extends ListAdapter<CategoryEntity, CategoryListAdapter.CategoryListViewHolder> {
1616

17-
private CategoryViewModel viewModel;
17+
private final CategoryViewModel viewModel;
1818

1919
/**
2020
* @param diffCallback DiffUtil.ItemCallback<CategoryEntity> CategoryEntity model comparison
@@ -51,7 +51,7 @@ public boolean areContentsTheSame(@NonNull CategoryEntity oldItem, @NonNull Cate
5151

5252
static class CategoryListViewHolder extends RecyclerView.ViewHolder {
5353

54-
private ListRowCategoryBinding binding;
54+
private final ListRowCategoryBinding binding;
5555

5656
/**
5757
* @param itemView ListRowCategoryBinding lis_row_category

app/src/main/java/com/mvvm/contactlist/adapter/ContactListAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class ContactListAdapter extends ListAdapter<ContactEntity, ContactListAdapter.ContactListViewHolder> {
1616

17-
private ContactListViewModel viewModel;
17+
private final ContactListViewModel viewModel;
1818

1919
/**
2020
* @param diffCallback DiffUtil.ItemCallback<ContactEntity> ContactEntity comparison
@@ -51,7 +51,7 @@ public boolean areContentsTheSame(@NonNull ContactEntity oldItem, @NonNull Conta
5151

5252
static class ContactListViewHolder extends RecyclerView.ViewHolder {
5353

54-
private ListRowContactBinding binding;
54+
private final ListRowContactBinding binding;
5555

5656
/**
5757
* @param itemView ListRowContactBinding list_row_contact

app/src/main/java/com/mvvm/contactlist/adapter/SearchCategoryAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class SearchCategoryAdapter extends ListAdapter<CategoryEntity, SearchCategoryAdapter.CategoryListViewHolder> {
1616

17-
private ContactListViewModel viewModel;
17+
private final ContactListViewModel viewModel;
1818

1919
/**
2020
* @param diffCallback DiffUtil.ItemCallback<CategoryEntity> CategoryEntity model comparison
@@ -51,7 +51,7 @@ public boolean areContentsTheSame(@NonNull CategoryEntity oldItem, @NonNull Cate
5151

5252
static class CategoryListViewHolder extends RecyclerView.ViewHolder {
5353

54-
private ListRowSearchCategoryBinding binding;
54+
private final ListRowSearchCategoryBinding binding;
5555

5656
/**
5757
* @param itemView ListRowSearchCategoryBinding list_row_search_category

0 commit comments

Comments
 (0)