Skip to content

Commit

Permalink
update: add libs.versions.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Aug 5, 2024
1 parent ca169e2 commit d605c30
Show file tree
Hide file tree
Showing 12 changed files with 346 additions and 39 deletions.
30 changes: 17 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,27 @@ dependencies {

implementation(project(DependencyGradle.FROGO_PATH_UI))

implementation(Androidx.appCompat)
implementation(Androidx.constraintLayout)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.constraintlayout)

implementation(Androidx.Core.ktx)
implementation(Androidx.Lifecycle.runtimeKtx)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)

implementation(Androidx.Compose.activity)
implementation(Androidx.Compose.material)
implementation(Androidx.Compose.ui)
implementation(Androidx.Compose.uiToolingPreview)
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.compose.material)
implementation(libs.androidx.compose.ui)

implementation(Google.material)
implementation(Google.gson)
implementation(libs.material)
implementation(libs.gson)

implementation(DependencyGradle.FrogoRecyclerView)
implementation(libs.frogo.recyclerview)

debugImplementation(Androidx.Compose.uiTooling)
debugImplementation(Androidx.Compose.uiTestManifest)
implementation(libs.material)

api(libs.github.circleimageview)

debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.tooling.preview)
debugImplementation(libs.androidx.compose.ui.test.manifest)

}
8 changes: 8 additions & 0 deletions app/src/main/java/com/frogobox/appuikit/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
) {
view.findViewById<TextView>(R.id.frogo_rv_list_type_1_tv_title).text = data.name
}

override fun areContentsTheSame(oldItem: Main, newItem: Main): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: Main, newItem: Main): Boolean {
return oldItem == newItem
}
})
.createLayoutLinearVertical(false)
.build()
Expand Down
160 changes: 160 additions & 0 deletions app/src/main/java/com/frogobox/appuikit/recycler/FrogoRvAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.frogobox.appuikit.R
import com.frogobox.appuikit.model.Main
import com.frogobox.recycler.core.FrogoRecyclerNotifyListener
import com.frogobox.recycler.core.IFrogoViewAdapter

Expand Down Expand Up @@ -55,6 +56,14 @@ object FrogoRvAdapter {
R.string.frogo_dummy_title
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -91,6 +100,14 @@ object FrogoRvAdapter {
R.string.frogo_dummy_subtitle
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -131,6 +148,14 @@ object FrogoRvAdapter {
R.string.frogo_dummy_desc
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -167,6 +192,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -207,6 +240,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -251,6 +292,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -287,6 +336,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -327,6 +384,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -363,6 +428,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -403,6 +476,13 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}
override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -447,6 +527,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -479,6 +567,14 @@ object FrogoRvAdapter {
R.string.frogo_dummy_title
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -515,6 +611,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -555,6 +659,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -599,6 +711,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -635,6 +755,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -675,6 +803,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -719,6 +855,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -751,6 +895,14 @@ object FrogoRvAdapter {
R.drawable.ic_artist
)
}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}

Expand Down Expand Up @@ -780,6 +932,14 @@ object FrogoRvAdapter {
) {

}

override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
return oldItem == newItem
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ class RecyclerGridFragment : BaseFragment<FragmentRecyclerGridBinding>() {
view.findViewById<ImageView>(R.id.frogo_rv_grid_type_1_iv_poster)
.setImageResource(R.drawable.ic_artist)
}

override fun areContentsTheSame(oldItem: Layout, newItem: Layout): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: Layout, newItem: Layout): Boolean {
return oldItem == newItem
}
})
.createLayoutGrid(2)
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ class RecyclerListFragment : BaseFragment<FragmentRecyclerListBinding>() {
) {
view.findViewById<TextView>(R.id.frogo_rv_list_type_1_tv_title).text = data.name
}

override fun areContentsTheSame(oldItem: Layout, newItem: Layout): Boolean {
return oldItem == newItem
}

override fun areItemsTheSame(oldItem: Layout, newItem: Layout): Boolean {
return oldItem == newItem
}
})
.createLayoutLinearVertical(false)
.build()
Expand Down
Loading

0 comments on commit d605c30

Please sign in to comment.