Rename all features modules

This commit is contained in:
ganfra
2023-01-20 18:35:03 +01:00
parent 0c6cd35b69
commit e616d75d9d
149 changed files with 311 additions and 309 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ plugins {
}
android {
namespace = "io.element.android.x.features.roomlist"
namespace = "io.element.android.features.roomlist"
}
anvil {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist
package io.element.android.features.roomlist
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist
package io.element.android.features.roomlist
import android.text.format.DateFormat
import android.text.format.DateUtils
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist
package io.element.android.features.roomlist
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist
package io.element.android.features.roomlist
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
@@ -29,10 +29,10 @@ import io.element.android.libraries.architecture.Presenter
import io.element.android.libraries.core.coroutine.parallelMap
import io.element.android.libraries.designsystem.components.avatar.AvatarData
import io.element.android.libraries.designsystem.components.avatar.AvatarSize
import io.element.android.x.features.roomlist.model.RoomListEvents
import io.element.android.x.features.roomlist.model.RoomListRoomSummary
import io.element.android.x.features.roomlist.model.RoomListRoomSummaryPlaceholders
import io.element.android.x.features.roomlist.model.RoomListState
import io.element.android.features.roomlist.model.RoomListEvents
import io.element.android.features.roomlist.model.RoomListRoomSummary
import io.element.android.features.roomlist.model.RoomListRoomSummaryPlaceholders
import io.element.android.features.roomlist.model.RoomListState
import io.element.android.libraries.matrix.MatrixClient
import io.element.android.libraries.matrix.media.MediaResolver
import io.element.android.libraries.matrix.room.RoomSummary
@@ -16,7 +16,7 @@
@file:OptIn(ExperimentalMaterial3Api::class)
package io.element.android.x.features.roomlist
package io.element.android.features.roomlist
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
@@ -38,12 +38,12 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Velocity
import io.element.android.libraries.core.compose.LogCompositions
import io.element.android.libraries.designsystem.components.avatar.AvatarData
import io.element.android.x.features.roomlist.components.RoomListTopBar
import io.element.android.x.features.roomlist.components.RoomSummaryRow
import io.element.android.x.features.roomlist.model.RoomListEvents
import io.element.android.x.features.roomlist.model.RoomListRoomSummary
import io.element.android.x.features.roomlist.model.RoomListState
import io.element.android.x.features.roomlist.model.stubbedRoomSummaries
import io.element.android.features.roomlist.components.RoomListTopBar
import io.element.android.features.roomlist.components.RoomSummaryRow
import io.element.android.features.roomlist.model.RoomListEvents
import io.element.android.features.roomlist.model.RoomListRoomSummary
import io.element.android.features.roomlist.model.RoomListState
import io.element.android.features.roomlist.model.stubbedRoomSummaries
import io.element.android.libraries.matrix.core.RoomId
import io.element.android.libraries.matrix.core.UserId
import io.element.android.libraries.matrix.ui.model.MatrixUser
@@ -16,7 +16,7 @@
@file:OptIn(ExperimentalMaterial3Api::class)
package io.element.android.x.features.roomlist.components
package io.element.android.features.roomlist.components
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.fillMaxWidth
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist.components
package io.element.android.features.roomlist.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
@@ -53,7 +53,7 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.google.accompanist.placeholder.material.placeholder
import io.element.android.libraries.designsystem.components.avatar.Avatar
import io.element.android.x.features.roomlist.model.RoomListRoomSummary
import io.element.android.features.roomlist.model.RoomListRoomSummary
private val minHeight = 72.dp
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist.model
package io.element.android.features.roomlist.model
sealed interface RoomListEvents {
data class UpdateFilter(val newFilter: String) : RoomListEvents
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist.model
package io.element.android.features.roomlist.model
import androidx.compose.runtime.Immutable
import io.element.android.libraries.designsystem.components.avatar.AvatarData
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist.model
package io.element.android.features.roomlist.model
import io.element.android.libraries.designsystem.components.avatar.AvatarData
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist.model
package io.element.android.features.roomlist.model
import androidx.compose.runtime.Immutable
import io.element.android.libraries.matrix.ui.model.MatrixUser
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist.model
package io.element.android.features.roomlist.model
import io.element.android.libraries.designsystem.components.avatar.AvatarData
import kotlinx.collections.immutable.ImmutableList
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.features.roomlist
package io.element.android.features.roomlist
import app.cash.molecule.RecompositionClock
import app.cash.molecule.moleculeFlow
@@ -22,6 +22,8 @@ import app.cash.turbine.test
import com.google.common.truth.Truth.assertThat
import io.element.android.libraries.matrixtest.FakeMatrixClient
import io.element.android.libraries.matrix.core.SessionId
import io.element.android.features.roomlist.LastMessageFormatter
import io.element.android.features.roomlist.RoomListPresenter
import kotlinx.coroutines.test.runTest
import org.junit.Test
@@ -33,7 +35,8 @@ class RoomListPresenterTests {
val presenter = RoomListPresenter(
FakeMatrixClient(
SessionId("sessionId")
), LastMessageFormatter())
), LastMessageFormatter()
)
moleculeFlow(RecompositionClock.Immediate) {
presenter.present()
}.test {