From cd88d2e6a477a9ae2cb132116500cc4a01687473 Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Wed, 13 Mar 2024 14:36:18 +0200 Subject: [PATCH] Create fragment, vm and ds for timelines filter screen --- .../circles/filter/FilterTimelinesDataSource.kt | 6 ++++++ .../circles/filter/FilterTimelinesDialogFragment.kt | 12 ++++++++++++ .../circles/filter/FilterTimelinesViewModel.kt | 12 ++++++++++++ .../circles/following/FollowingDataSource.kt | 2 +- .../circles/following/FollowingDialogFragment.kt | 4 ++-- .../circles/following/FollowingViewModel.kt | 2 +- .../circles/following/RemoveFollowingDialog.kt | 2 +- .../circles/following/list/FollowingAdapter.kt | 2 +- .../circles/following/list/FollowingViewHolder.kt | 2 +- 9 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDataSource.kt create mode 100644 core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDialogFragment.kt create mode 100644 core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesViewModel.kt rename core/src/main/java/org/futo/circles/core/feature/{room => }/circles/following/FollowingDataSource.kt (96%) rename core/src/main/java/org/futo/circles/core/feature/{room => }/circles/following/FollowingDialogFragment.kt (93%) rename core/src/main/java/org/futo/circles/core/feature/{room => }/circles/following/FollowingViewModel.kt (93%) rename core/src/main/java/org/futo/circles/core/feature/{room => }/circles/following/RemoveFollowingDialog.kt (95%) rename core/src/main/java/org/futo/circles/core/feature/{room => }/circles/following/list/FollowingAdapter.kt (91%) rename core/src/main/java/org/futo/circles/core/feature/{room => }/circles/following/list/FollowingViewHolder.kt (95%) diff --git a/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDataSource.kt b/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDataSource.kt new file mode 100644 index 000000000..228ccfe74 --- /dev/null +++ b/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDataSource.kt @@ -0,0 +1,6 @@ +package org.futo.circles.core.feature.circles.filter + +import javax.inject.Inject + +class FilterTimelinesDataSource @Inject constructor() { +} \ No newline at end of file diff --git a/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDialogFragment.kt b/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDialogFragment.kt new file mode 100644 index 000000000..5ad59fcff --- /dev/null +++ b/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesDialogFragment.kt @@ -0,0 +1,12 @@ +package org.futo.circles.core.feature.circles.filter + +import dagger.hilt.android.AndroidEntryPoint +import org.futo.circles.core.base.fragment.BaseFullscreenDialogFragment +import org.futo.circles.core.databinding.DialogFragmentFilterTimelineBinding + + +@AndroidEntryPoint +class FilterTimelinesDialogFragment : + BaseFullscreenDialogFragment(DialogFragmentFilterTimelineBinding::inflate) { + +} \ No newline at end of file diff --git a/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesViewModel.kt b/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesViewModel.kt new file mode 100644 index 000000000..5e0bd522e --- /dev/null +++ b/core/src/main/java/org/futo/circles/core/feature/circles/filter/FilterTimelinesViewModel.kt @@ -0,0 +1,12 @@ +package org.futo.circles.core.feature.circles.filter + +import androidx.lifecycle.ViewModel +import dagger.hilt.android.lifecycle.HiltViewModel +import javax.inject.Inject + +@HiltViewModel +class FilterTimelinesViewModel @Inject constructor( + private val dataSource: FilterTimelinesDataSource +) : ViewModel() { + +} \ No newline at end of file diff --git a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingDataSource.kt b/core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingDataSource.kt similarity index 96% rename from core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingDataSource.kt rename to core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingDataSource.kt index 56a80bd8e..b4a21210a 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingDataSource.kt +++ b/core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingDataSource.kt @@ -1,4 +1,4 @@ -package org.futo.circles.core.feature.room.circles.following +package org.futo.circles.core.feature.circles.following import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.map diff --git a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingDialogFragment.kt b/core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingDialogFragment.kt similarity index 93% rename from core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingDialogFragment.kt rename to core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingDialogFragment.kt index a4e567d41..7e5b78b15 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingDialogFragment.kt +++ b/core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingDialogFragment.kt @@ -1,4 +1,4 @@ -package org.futo.circles.core.feature.room.circles.following +package org.futo.circles.core.feature.circles.following import android.os.Bundle import android.view.View @@ -9,7 +9,7 @@ import org.futo.circles.core.base.fragment.BaseFullscreenDialogFragment import org.futo.circles.core.databinding.DialogFragmentFollowingBinding import org.futo.circles.core.extensions.observeData import org.futo.circles.core.extensions.observeResponse -import org.futo.circles.core.feature.room.circles.following.list.FollowingAdapter +import org.futo.circles.core.feature.circles.following.list.FollowingAdapter import org.futo.circles.core.model.FollowingListItem @AndroidEntryPoint diff --git a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingViewModel.kt b/core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingViewModel.kt similarity index 93% rename from core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingViewModel.kt rename to core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingViewModel.kt index 875a1dcba..07e11a560 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/FollowingViewModel.kt +++ b/core/src/main/java/org/futo/circles/core/feature/circles/following/FollowingViewModel.kt @@ -1,4 +1,4 @@ -package org.futo.circles.core.feature.room.circles.following +package org.futo.circles.core.feature.circles.following import androidx.lifecycle.ViewModel import dagger.hilt.android.lifecycle.HiltViewModel diff --git a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/RemoveFollowingDialog.kt b/core/src/main/java/org/futo/circles/core/feature/circles/following/RemoveFollowingDialog.kt similarity index 95% rename from core/src/main/java/org/futo/circles/core/feature/room/circles/following/RemoveFollowingDialog.kt rename to core/src/main/java/org/futo/circles/core/feature/circles/following/RemoveFollowingDialog.kt index 3cba96f49..54deb05ef 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/RemoveFollowingDialog.kt +++ b/core/src/main/java/org/futo/circles/core/feature/circles/following/RemoveFollowingDialog.kt @@ -1,4 +1,4 @@ -package org.futo.circles.core.feature.room.circles.following +package org.futo.circles.core.feature.circles.following import android.content.Context import android.os.Bundle diff --git a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/list/FollowingAdapter.kt b/core/src/main/java/org/futo/circles/core/feature/circles/following/list/FollowingAdapter.kt similarity index 91% rename from core/src/main/java/org/futo/circles/core/feature/room/circles/following/list/FollowingAdapter.kt rename to core/src/main/java/org/futo/circles/core/feature/circles/following/list/FollowingAdapter.kt index b4f8e2e34..6f51170bc 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/list/FollowingAdapter.kt +++ b/core/src/main/java/org/futo/circles/core/feature/circles/following/list/FollowingAdapter.kt @@ -1,4 +1,4 @@ -package org.futo.circles.core.feature.room.circles.following.list +package org.futo.circles.core.feature.circles.following.list import android.view.ViewGroup import org.futo.circles.core.base.list.BaseRvAdapter diff --git a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/list/FollowingViewHolder.kt b/core/src/main/java/org/futo/circles/core/feature/circles/following/list/FollowingViewHolder.kt similarity index 95% rename from core/src/main/java/org/futo/circles/core/feature/room/circles/following/list/FollowingViewHolder.kt rename to core/src/main/java/org/futo/circles/core/feature/circles/following/list/FollowingViewHolder.kt index 5cac6fd53..9532daa5c 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/circles/following/list/FollowingViewHolder.kt +++ b/core/src/main/java/org/futo/circles/core/feature/circles/following/list/FollowingViewHolder.kt @@ -1,4 +1,4 @@ -package org.futo.circles.core.feature.room.circles.following.list +package org.futo.circles.core.feature.circles.following.list import android.text.format.DateUtils import android.view.ViewGroup -- GitLab