diff --git a/feature/devInfo/build.gradle.kts b/feature/devInfo/build.gradle.kts index b91d5ac..7a2a28d 100644 --- a/feature/devInfo/build.gradle.kts +++ b/feature/devInfo/build.gradle.kts @@ -39,6 +39,7 @@ android { dependencies { implementation(project(":domain")) implementation(project(":core:designsystem")) + implementation(project(":core:common")) KotlinDependencies.run { implementation(kotlin) diff --git a/feature/devInfo/src/main/java/com/zucchini/feature/devInfo/adapter/DeveloperInfoAdapter.kt b/feature/devInfo/src/main/java/com/zucchini/feature/devInfo/adapter/DeveloperInfoAdapter.kt index b7bc08e..799491c 100644 --- a/feature/devInfo/src/main/java/com/zucchini/feature/devInfo/adapter/DeveloperInfoAdapter.kt +++ b/feature/devInfo/src/main/java/com/zucchini/feature/devInfo/adapter/DeveloperInfoAdapter.kt @@ -2,12 +2,12 @@ package com.zucchini.feature.devInfo.adapter import android.view.LayoutInflater import android.view.ViewGroup -import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.zucchini.domain.model.DeveloperInfo import com.zucchini.feature.devInfo.R import com.zucchini.feature.devInfo.databinding.ItemDeveloperBinding +import com.zucchini.view.ItemDiffCallback class DeveloperInfoAdapter : ListAdapter( @@ -43,18 +43,3 @@ class DeveloperInfoAdapter : } } } - -class ItemDiffCallback( - val onItemsTheSame: (T, T) -> Boolean, - val onContentsTheSame: (T, T) -> Boolean, -) : DiffUtil.ItemCallback() { - override fun areItemsTheSame( - oldItem: T, - newItem: T, - ): Boolean = onItemsTheSame(oldItem, newItem) - - override fun areContentsTheSame( - oldItem: T, - newItem: T, - ): Boolean = onContentsTheSame(oldItem, newItem) -}