jonnyandrew
ffa6c43503
[Voice messages] Add voice recording UI ( #1546 )
...
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-10-12 15:17:18 +00:00
Benoit Marty
84594caad3
Use existing BooleanProvider
2023-10-12 15:03:50 +02:00
Benoit Marty
de31f8a73a
Konsist: add test Data class state MUST not have default value, and fix existing issues
2023-10-10 17:31:04 +02:00
Benoit Marty
99caa031e8
Replace mutableStateOf by mutableIntStateOf and mutableFloatStateOf. Use intValue and floatValue to avoid unboxing.
2023-09-26 18:07:53 +02:00
Benoit Marty
d2ca528679
Detekt: Rename DayNightPreviews to PreviewsDayNight to follow naming convention.
...
MultiPreview annotations should start with `Previews` as prefix
2023-09-21 08:30:36 +02:00
Benoit Marty
54ca7c1ea5
More cleanup
2023-09-20 17:32:32 +02:00
Benoit Marty
d6ea21da22
Migrate other icons to compound icons.
2023-09-20 16:44:59 +02:00
Benoit Marty
e326e49e4c
Use DayNightPreview
2023-09-19 11:49:12 +02:00
Marco Romano
b860bd30bd
GRemove the @JvmField annotation whenever using WarmUpRule.
2023-09-13 15:19:26 +02:00
Marco Romano
5ddaf0547f
Update analytics sdk to v0.8.0 ( #1284 )
...
Integrates a few breaking changes introducing a `messageType` Composer prop:
- Sends `messageType` = Text by default in composer.
- Refactors existing location analytics to send the appropriate `messageType`.
2023-09-12 14:01:33 +02:00
jonnyandrew
301e49c3a3
Reduce test flakiness by warming up molecule tests ( #1226 )
2023-09-06 10:08:21 +00:00
Benoit Marty
bcede44407
Move module features.analytics.test to services.analytics.test. FakeAnalyticsService was not implemented at the correct location.
2023-08-28 14:31:36 +02:00
Benoit Marty
52853101d9
migrate object to data object ( #1135 )
2023-08-24 09:32:44 +02:00
Marco Romano
3609d419c4
Fix detekt
2023-08-18 15:55:41 +02:00
Marco Romano
d1ca452326
Add missing tests
2023-08-18 15:55:41 +02:00
Marco Romano
ac32d724c1
Fix wrong packages after refactor
2023-08-18 15:55:41 +02:00
Marco Romano
7c378dbdd5
Remove redundant screenshots
2023-08-18 15:55:41 +02:00
Marco Romano
314c0499a5
Add location dialogs to show location. Always show FAB.
2023-08-18 15:55:41 +02:00
Marco Romano
917965a9b6
Move AndroidLocationActions to impl package
2023-08-18 15:55:41 +02:00
Marco Romano
675dd4b109
Add permission request flow to ShowLocation feature too.
...
TODO:
- Presenter Tests
- Add Dialogs in View
2023-08-18 15:55:41 +02:00
Benoit Marty
eb4c2fba77
Fix issue detected by detekt
2023-08-16 15:24:18 +02:00
Benoit Marty
996574f2c6
Enable detekt rule PreviewPublic and fix existing issues.
2023-07-26 10:08:39 +02:00
Benoit Marty
45954b4723
Fix code quality check failures after new rules from #935 has been merged on develop.
2023-07-21 16:04:55 +02:00
Benoit Marty
f09996cb30
Merge pull request #935 from vector-im/feature/bma/noWarnings
...
Code quality: warnings are errors and enable more Detekt rules.
2023-07-21 15:52:05 +02:00
Marco Romano
71676c3faf
Static images improvements ( #933 )
...
1. On devices less than xhdpi request a 1x image from MapTiler (such devices are generally old, slower and with little memory so avoiding to get the 2x image only to have to shrink it later could help).
2. Coerce too big width/height combos within the API limits keeping the aspect ratio (this will allow requests on big horizontal displays to succeed).
3. Don't crash when given weird width/height combos (i.e. zero or negative).
4. Introduce interfaces to hide this whole logic and make it easier for forks to implement their own.
Related to:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-21 13:37:08 +00:00
Benoit Marty
59a66479ab
Merge branch 'develop' into feature/bma/noWarnings
2023-07-21 12:17:50 +02:00
Benoit Marty
c72f1a09a7
Enable detekt rules UnnecessaryParentheses and cleanup the code.
2023-07-20 18:08:08 +02:00
Benoit Marty
55538c2773
Enable detekt rules UnusedImports and cleanup the code.
2023-07-20 18:00:23 +02:00
Marco Romano
ffaf24751a
Use correct share my location icon in button ( #936 )
...
As per newer design specs.
Related to:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-20 13:59:06 +00:00
Marco Romano
d5a93a50e0
Add screenshots with ~1.5 lines long desc to expanded location view ( #923 )
...
This will help in catching alignment regressions.
Related to:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-20 13:42:35 +00:00
Marco Romano
8648e8ba53
Extract maptiler's map ids ( #926 )
...
Maptiler custom map ids are only useable by the account that create them. So if we hardcode them forkers won't be able to use the maps even if the bring in their own api key (because they can't access our maps with their api key).
Requires to set our map ids in `local.properties` for local development:
```
services.maptiler.lightMapId=9bc819c8-e627-474a-a348-ec144fe3d810
services.maptiler.darkMapId=dea61faf-292b-4774-9660-58fcef89a7f3
```
2023-07-20 14:29:06 +02:00
Marco Romano
188af2ee98
Correct location event body ( #930 )
...
- Now sending the correct body format as agreed with design. This won't be show in EX clients though.
Related to:
- https://github.com/vector-im/element-meta/issues/1682
2023-07-20 10:16:40 +00:00
Marco Romano
584a227920
maplibre-compose allow customisation of location dot style ( #929 )
...
- And style it according to our designs.
Related to:
- https://github.com/vector-im/element-meta/issues/1682
2023-07-20 12:09:40 +02:00
renovate[bot]
6d3b816bf5
Update dependency app.cash.molecule:molecule-runtime to v1 ( #925 )
...
* Update dependency app.cash.molecule:molecule-runtime to v1
* Replace `RecompositionClock` with `RecompositionMode`
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io >
2023-07-20 07:36:19 +02:00
Marco Romano
025d8781a7
Refactor a custom alignment to its own modifier for readability. ( #924 )
2023-07-19 16:58:04 +02:00
Marco Romano
30060b5729
Don't crash when sharing a location with no maptiler apikey ( #919 )
...
Related to:
- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 16:33:50 +02:00
Marco Romano
c135da2562
Location expanded view: show own location ( #916 )
...
If the location permission is granted:
- Shows the user's own location
- Shows a button to center the map on it
Part of:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-19 13:26:06 +00:00
Marco Romano
fb85cc0be4
Fix insets for nav bar in send location view ( #915 )
...
Improvement of https://github.com/vector-im/element-x-android/pull/770
- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 13:57:34 +02:00
Marco Romano
278f8ae4c6
Send My Location ( #770 )
...
- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 09:58:13 +00:00
Chris Smith
8c3cda836e
Merge pull request #886 from vector-im/feature/cjs/location-api-key
2023-07-18 15:32:54 +01:00
Benoit Marty
2ffdf4483a
No need to use trick for night resource when using DayNightPreviews annotation.
2023-07-18 11:19:46 +02:00
Chris Smith
b7bd08b210
Location sharing: don't hardcode API key
...
In an effort to make it easier for forks to (a) use their own
API keys (b) change map styles or maybe even providers, move
the MapTiler key out of the source code and pass it in via
env var or property.
Also refactor the utility classes slightly to keep all the URL
related functions together, to reduce the chance of collisions
when maintaining such forks.
2023-07-17 16:09:53 +01:00
Benoit Marty
16f30db20e
Move TypographyAliases next to ColorAliases
2023-07-11 11:29:56 +02:00
Benoit Marty
529f6d681e
Create alias for typography (more semantic name). aliasScreenTitle
2023-07-11 10:29:06 +02:00
Benoit Marty
247348b372
TextStyle again.
2023-07-10 17:33:42 +02:00
Chris Smith
130c026d81
Merge pull request #824 from vector-im/misc/cjs/left-align-top-bars
2023-07-10 12:23:29 +01:00
Marco Romano
026296eb43
Use @DayNightPreviews for static map ( #832 )
...
* Use @DayNightPreviews for static map
To properly screenshot the dark pin.
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-07-10 10:45:11 +02:00
Chris Smith
85d20c7874
Remove CenterAlignedTopAppBar
...
Centering the titles is very iOS-y and not aligned with the material
guidelines (which say center aligned top bars are only for the main
root page in the app). They also present issues when we have titles
and textual actions that end up being quite long in other languages,
as they end up merging together.
Fixes #655
2023-07-07 13:59:05 +01:00
Chris Smith
1c57f9b4bc
Merge pull request #791 from vector-im/misc/cjs/mapbox-attribution-colour
2023-07-06 12:29:33 +01:00
Chris Smith
e41ec85bc8
Change MapLibre attribution tint
2023-07-06 09:37:25 +01:00