renovate[bot]
c8bd362397
Update plugin ktlint to v12.1.0 ( #2200 )
...
* Update plugin ktlint to v12.1.0
* Run `./gradlew ktlintFormat` and fix some issues manually.
* Fix other issues reproted by Ktlint
* Limit false positives, KtLint removes unnecessary curly brace in String templates.
* Remove useless Unit
* Minor improvements over ktlint changes
* Restore `AlertDialogContent` behaviour
* Update screenshots
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
10 months ago
Benoit Marty
2b764a1e56
Migrate to PostHog 3.0.0
11 months ago
Benoit Marty
a02c5c2b44
Add test for DefaultNotificationDrawerManager
11 months ago
Benoit Marty
628d02beb1
Add test for DefaultBugReporter
11 months ago
Benoit Marty
ec459165db
Add tests for `NotifiableEventResolver`
11 months ago
Benoit Marty
21200df294
Konsist: check that if `sealed interface` is used in parameter of `Composable`, it has the `@Stable` or `@Immutable` annotation
1 year ago
Benoit Marty
b4cc11ec1e
Test coverage: Add test on DefaultNavigationStateService
1 year ago
jonnyandrew
f1b142f002
Add voice message recording duration indicator and limit ( #1628 )
...
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
1 year ago
Benoit Marty
510bdd47af
Remove AppNameProvider, we have buildMeta now.
1 year ago
Benoit Marty
8929a90970
Konsist: add test to ensure filename match top level Composable View, and fix existing issue
1 year ago
ganfra
5ec6d7c235
Navigation: fix test and update log.
1 year ago
ganfra
e285e01673
NavigationStateService : do not throw error but just log and returns
1 year ago
Benoit Marty
0e4c146e87
Detekt: Rename `DayNightPreviews` to `PreviewsDayNight` to follow naming convention.
...
MultiPreview annotations should start with `Previews` as prefix
1 year ago
Benoit Marty
2819448cd4
Use `DayNightPreview`
1 year ago
Benoit Marty
cbb27cb5e5
Class annotated with `@ContributesMultibinding` cannot be internal.
1 year ago
Benoit Marty
3ff7b752a1
Ensure Posthog data are sent to " https://posthog.element.io " for release build.
1 year ago
jonnyandrew
f214493c9d
[Rich text editor] Integrate rich text editor library ( #1172 )
...
* Integrate rich text editor
* Also increase swapfile size in test CI
Fixes issue where screenshot tests are terminated due to lack of CI
resources.
See https://github.com/actions/runner-images/discussions/7188#discussioncomment-6750749
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
1 year ago
jonnyandrew
c44b7eb81c
Fix crash in error tracking ( #1248 )
1 year ago
Jorge Martin Espinosa
cfdccc904e
Replace notification permission dialog with a screen ( #1223 )
...
* Replace notification permission dialog with a screen
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
1 year ago
Benoit Marty
5f7c1e9545
Move module `features.analytics.test` to `services.analytics.test`. `FakeAnalyticsService` was not implemented at the correct location.
1 year ago
Benoit Marty
7083abcf09
migrate `object` to `data object` ( #1135 )
1 year ago
Benoit Marty
4e41566847
Use dns for element-x-android project.
1 year ago
Benoit Marty
9d9a0c744e
Disable Sentry auto-init
1 year ago
Benoit Marty
c1d6c0c360
Implement Sentry module as an AnalyticsProvider.
1 year ago
Benoit Marty
69dcd47e22
Update tag value and make it internal.
1 year ago
Benoit Marty
587f615730
Restore NoopAnalyticsService (not used but can be useful for forks).
1 year ago
Benoit Marty
d4156653fd
No need to sort AnalyticsProvider (it was copied from PushProvider)
1 year ago
Benoit Marty
2928073e22
Enable detekt rules `UnusedImports` and cleanup the code.
1 year ago
Benoit Marty
86756dbc09
Enable detekt rules `UnusedParameter` and `UnusedPrivateProperty` and cleanup the code.
1 year ago
Benoit Marty
24ece8c454
Enable detekt rule `UnusedPrivateMember` and cleanup the code.
1 year ago
Marco Romano
3c45a5ece4
Send My Location ( #770 )
...
- https://github.com/vector-im/element-meta/issues/1682
1 year ago
Benoit Marty
7207afebcc
When clearing cache, also reset some data store in prefs/datastore.
1 year ago
Jorge Martin Espinosa
9247cd765a
Fix: make sure we ignore notifications for open rooms ( #867 )
...
* Make sure we ignore notifications for open rooms
- Listen to process lifecycle changes in `AppForegroundStateService`. Use initializers to reliable create it.
- Merge `AppNavigationState` with `AppForegroundState`. Renamed the previous `AppNavigationState` to `NavigationState`, created a new `AppNavigationState` which contains both the navigation state and the foreground state.
1 year ago
Marco Romano
ca695ca077
Revert "Auto generate dark mode previews and screenshots ( #776 )" ( #784 )
...
This reverts commit fd467c2451
.
1 year ago
Marco Romano
fd467c2451
Auto generate dark mode previews and screenshots ( #776 )
...
With this change, composable previews and screenshots should be created with just:
```
@ElementPreviews
@Composable
fun MyViewPreview() {
ElementPreview {
MyView()
}
}
```
- Adds `@ElementPreviews` which is a shorthand for:
```
@Preview(name = "D")
@Preview(name = "N", uiMode = Configuration.UI_MODE_NIGHT_YES)
```
Should be used in connection with the now public `fun ElementPreview()` composable.
- Adds ElementPreviews to previewAnnotations in dangerfile
- Screenshots of night mode previews are now rendered with night mode
- Replaces `ElementPreviewLight` and `ElementThemedPreview` with `ElementPreview`
- Deprecates `ElementPreviewDark` which should be removed.
- Remaining usages of `ElementPreviewDark` are now ignored during screenshot tests
1 year ago
Yoan Pintas
962d92ae1a
Add ViewRoom posthog event ( #669 )
1 year ago
Yoan Pintas
710c3b279a
Add JoinedRoom posthog event ( #687 )
1 year ago
yostyle
5c7cd01ba1
Consent thread safe
1 year ago
yostyle
3b4bff61e9
Init or stop posthog based on user consent
1 year ago
Yoan Pintas
f534ecda96
Init analytics modules ( #350 )
1 year ago
Chris Smith
198d6d4c56
Invite users to existing rooms ( #441 )
...
Invite users to existing rooms
Scope:
- Allow inviting from the room detail screen and the member list
- Invite option is only shown if the user has the correct power level
- Search flow the same as creating a new room, allowing multi-select
- Existing room members/invitees are disabled with a custom caption
- Sending is asynchronous, an error dialog will appear wherever the
user is if necessary
Closes #245
1 year ago
Florian Renaud
719dd20555
Remove useless OptIn in tests
1 year ago
Jorge Martin Espinosa
de010545fb
Update Gradle to 8.1 and AGP to v8.0 ( #329 )
...
* Update AGP to 8.0.0.
* Set JAVA_HOME to JDK17
* Update lint version.
* Use right JDK for dependency analysis, replace deprecated env var.
* Upgrade to Gradle 8.1.
* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 years ago
ganfra
776e9bd221
Add some tests on RoomFlowNode
2 years ago
Benoit Marty
3854e879e9
Fix test
2 years ago
ganfra
29f3d6d725
AppNav: introduce a owner param so we avoid crash on AppNavigationState when switching quickly between screens
2 years ago
Jorge Martin Espinosa
5033e9582c
Fix lint issues that prevented CI from passing ( #310 )
2 years ago
Benoit Marty
1faedca69d
Add some tests (mainly imported from EA). Also change type from String to SessionId, RoomId, etc.
2 years ago
Benoit Marty
6aeb94fa15
Add some shortcuts
2 years ago
Benoit Marty
1c6ad8ba8a
Add BuildVersionSdkIntProvider
2 years ago