|
|
|
/*
|
|
|
|
* Copyright (c) 2023 New Vector Ltd
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("io.element.android-compose-library")
|
|
|
|
alias(libs.plugins.anvil)
|
|
|
|
alias(libs.plugins.ksp)
|
|
|
|
id("kotlin-parcelize")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "io.element.android.features.roomdetails.impl"
|
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
isIncludeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
anvil {
|
|
|
|
generateDaggerFactories.set(true)
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
anvil(projects.anvilcodegen)
|
|
|
|
implementation(projects.anvilannotations)
|
|
|
|
|
|
|
|
implementation(projects.libraries.core)
|
|
|
|
implementation(projects.libraries.architecture)
|
|
|
|
implementation(projects.libraries.matrix.api)
|
|
|
|
implementation(projects.libraries.matrixui)
|
|
|
|
implementation(projects.libraries.designsystem)
|
|
|
|
implementation(projects.libraries.uiStrings)
|
|
|
|
implementation(projects.libraries.androidutils)
|
|
|
|
implementation(projects.libraries.mediapickers.api)
|
|
|
|
implementation(projects.libraries.mediaupload.api)
|
|
|
|
implementation(projects.libraries.mediaviewer.api)
|
|
|
|
implementation(projects.libraries.featureflag.api)
|
|
|
|
implementation(projects.libraries.permissions.api)
|
|
|
|
implementation(projects.libraries.preferences.api)
|
|
|
|
implementation(projects.libraries.testtags)
|
|
|
|
api(projects.features.roomdetails.api)
|
Refactor search related functionality (#436)
Refactor search related functionality
This is a prelude to adding the feature of inviting users to
a room, getting everything in the right place and reusable.
What this does:
## User search refactor
Moves the (global) user search logic (dealing with MXIDs,
minimum lengths, debounces) into a `UserRepository`.
This now sits in a `usersearch` library, which will be
used by the create room flow and the new invite flow.
## SearchBar logic pull-up
Every place we use SearchBar, we're doing the same things
to style placeholders, show back/cancel buttons, etc.
We also have a results type that is duplicated for
basically every feature that uses the search bar.
I've pushed all this common functionality into the
SearchBar itself. This makes the component a bit less
general purpose, but saves a lot of repetition.
## Remove the userlist feature
Almost all the functionality of the userlist feature
is now exclusively used by the create room feature.
Room details uses its own version because the
requirements are different.
Components useful elsewhere (SelectedUsers and
SelectedUser) have gone to matrixui, everything else
has gone to createroom.
## Other bits and pieces
I've fixed everywhere that uses Scaffold to correctly
consume the WindowInsets if the contentPadding is
applied to the contents (which it universally is).
This was a change in the last version of Material3
(I guess previously Scaffold handled the consumption
for us). This fixes weird gaps above search bars.
Added overloads for the MatrixUserRow and
CheckedMatrixUserRow that take the name/subtitle/avatar
separately, so the invites list can pass arbitrary
text like "User has already been invited".
The `blockuser` package was for some reason not
under `impl` but alongside it, I've bumped it into
the right place.
1 year ago
|
|
|
api(projects.libraries.usersearch.api)
|
|
|
|
api(projects.services.apperror.api)
|
|
|
|
implementation(libs.coil.compose)
|
|
|
|
implementation(projects.features.leaveroom.api)
|
|
|
|
implementation(projects.features.createroom.api)
|
|
|
|
implementation(projects.services.analytics.api)
|
|
|
|
implementation(projects.features.poll.api)
|
|
|
|
|
|
|
|
testImplementation(libs.test.junit)
|
|
|
|
testImplementation(libs.coroutines.test)
|
|
|
|
testImplementation(libs.molecule.runtime)
|
|
|
|
testImplementation(libs.test.truth)
|
|
|
|
testImplementation(libs.test.turbine)
|
|
|
|
testImplementation(libs.test.mockk)
|
|
|
|
testImplementation(libs.test.robolectric)
|
|
|
|
testImplementation(projects.libraries.matrix.test)
|
|
|
|
testImplementation(projects.libraries.mediaupload.test)
|
|
|
|
testImplementation(projects.libraries.mediapickers.test)
|
|
|
|
testImplementation(projects.libraries.permissions.test)
|
|
|
|
testImplementation(projects.libraries.usersearch.test)
|
|
|
|
testImplementation(projects.libraries.featureflag.test)
|
|
|
|
testImplementation(projects.tests.testutils)
|
|
|
|
testImplementation(projects.features.leaveroom.test)
|
|
|
|
testImplementation(projects.features.createroom.test)
|
|
|
|
testImplementation(projects.services.analytics.test)
|
|
|
|
testImplementation(libs.androidx.compose.ui.test.junit)
|
|
|
|
testReleaseImplementation(libs.androidx.compose.ui.test.manifest)
|
|
|
|
|
|
|
|
ksp(libs.showkase.processor)
|
|
|
|
}
|