Element X fork with native Cardano wallet — see SYNC.md on wallet branch for topology
Find a file
Chris Smith 848f1cb988 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.
2023-05-22 09:06:54 +00:00
.github Now that we have a CODEOWNERS file, there is no need for Renovate to assign a reviewer. It will be done automatically by GitHub. 2023-05-15 13:24:27 +02:00
.idea [Media upload] Media pre-processing (#403) 2023-05-10 10:06:56 +02:00
.maestro Fix a few FFI leaks (#405) 2023-05-12 10:50:39 +00:00
anvilannotations Update Gradle to 8.1 and AGP to v8.0 (#329) 2023-04-17 08:49:52 +00:00
anvilcodegen Update dependency com.squareup:kotlinpoet to v1.13.2 2023-05-05 10:13:05 +00:00
app [Media upload] Media pre-processing (#403) 2023-05-10 10:06:56 +02:00
appnav Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
changelog.d Merge remote-tracking branch 'origin/develop' into 2023-05-16 14:18:29 +02:00
docs Update documentation about screenshot test. 2023-05-05 09:47:10 +02:00
features Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
gradle Update coil to v2.4.0 2023-05-21 19:57:07 +00:00
libraries Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
plugins Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
samples/minimal Use default material3 version again and cleanup @OptIn annotations. 2023-05-15 12:28:31 +02:00
services Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
tests Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
tools Make danger check view changes (#391) 2023-05-05 08:24:12 +00:00
.editorconfig Upgrade ktlint to 0.48.2 2023-04-17 15:18:07 +02:00
.gitattributes Setup git lfs 2023-01-18 15:20:32 +01:00
.gitignore Group design components in Showkase for the Compound team (#375) 2023-05-02 16:13:35 +00:00
AUTHORS.md Add AUTHORS.md file 2023-01-11 16:54:50 +01:00
build.gradle.kts Merge pull request #394 from vector-im/feature/bma/moveShowkaseButton 2023-05-05 16:40:01 +02:00
CHANGES.md Setup towncrier 2023-01-11 14:57:14 +01:00
CODEOWNERS Create CODEOWNERS 2023-05-09 17:07:23 +02:00
CONTRIBUTING.md typo 2023-03-28 14:09:46 +02:00
Gemfile Add Gemfile to be able to run danger locally. 2023-01-19 11:13:48 +01:00
gradle.properties Upgrade version of lint from 8.0.0 to 8.2.0-alpha02 (latest). 2023-05-09 10:59:21 +02:00
gradlew Create project from AS wizard "Empty Compose Activity (Material 3)" 2022-10-07 15:05:13 +02:00
gradlew.bat Create project from AS wizard "Empty Compose Activity (Material 3)" 2022-10-07 15:05:13 +02:00
LICENSE Initial commit 2022-10-06 09:59:25 +02:00
README.md Merge pull request #178 from vector-im/kittykat-patch-2 2023-03-16 11:33:46 +01:00
settings.gradle.kts Improve asXId and make tests pass in release and debug mode. 2023-04-12 09:50:04 +02:00
towncrier.toml Setup towncrier 2023-01-11 14:57:14 +01:00

Latest build Quality Gate Status Vulnerabilities Bugs codecov Element Android Matrix room #element-android:matrix.org Weblate

element-x-android

ElementX Android is a Matrix Android Client provided by Element. This app is currently in a pre-alpha release stage with only basic functionality.

The application is a total rewrite of Element-Android using the Matrix Rust SDK underneath and targeting devices running Android 6+. The UI layer is written using Jetpack compose.

Screenshots

Here are some early screenshots of the application:

Rust SDK

ElementX leverages the Matrix Rust SDK through an FFI layer that the final client can directly import and use.

We're doing this as a way to share code between platforms and while we've seen promising results it's still in the experimental stage and bound to change.

Status

This project is in work in progress. The app does not cover yet all functionalities we expect.

Contributing

Please see our contribution guide.

Come chat with the community in the dedicated Matrix room.

Build instructions

Just clone the project and open it in Android Studio. Makes sure to select the app configuration when building (as we also have sample apps in the project).

Support

When you are experiencing an issue on ElementX Android, please first search in GitHub issues and then in #element-android:matrix.org. If after your research you still have a question, ask at #element-android:matrix.org. Otherwise feel free to create a GitHub issue if you encounter a bug or a crash, by explaining clearly in detail what happened. You can also perform bug reporting (Rageshake) from the Element application by shaking your phone or going to the application settings. This is especially recommended when you encounter a crash.

Copyright (c) 2022 New Vector Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or 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.