Benoit Marty
1a1d4c2957
Fix code quality check failures after new rules from #935 has been merged on develop.
1 year ago
Marco Romano
57d04e487c
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
1 year ago
Benoit Marty
6b9f676b12
Test new field `canShareLocation`
1 year ago
Benoit Marty
3376fe3688
Must skip 1 item due to the location feature flag value emitting 1 item.
1 year ago
Benoit Marty
2ab57f3fc8
canShareLocation must be a MutableState.
1 year ago
Benoit Marty
2c11f472ca
Replace FeatureFlags.ShowMediaUploadingFlow by FeatureFlags.LocationSharing because it has more chance to be disabled.
...
I do not want to remove all our feature flags...
1 year ago
Benoit Marty
c75eabbcb0
Enable detekt rules `UnnecessaryParentheses` and cleanup the code.
1 year ago
Benoit Marty
2928073e22
Enable detekt rules `UnusedImports` and cleanup the code.
1 year ago
Benoit Marty
e918d6affd
Enable detekt rules `TopLevelPropertyNaming` and cleanup the code.
1 year ago
Benoit Marty
a8ed8b7a59
Enable detekt rules `VariableNaming` 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
65ad642ffc
Fix warning (bottom sheet still not previewable correctly in screenshot test)
1 year ago
Benoit Marty
e23222591b
Fix warning (there is a TODO)
1 year ago
Benoit Marty
e67c7f32c3
Fix warning (keep the same format for all methods)
1 year ago
Benoit Marty
f738864e88
Fix warning (we will handle error case later)
1 year ago
Benoit Marty
6a69207fb8
Fix warning (there is a TODO)
1 year ago
Marco Romano
d964650804
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
1 year ago
Benoit Marty
e5d2e294ae
Fix warning (suppress unused param for now)
1 year ago
Benoit Marty
518f690368
Fix warning (suppress unused param for now)
1 year ago
Benoit Marty
0a512cae0b
Fix warning (suppress unused param for now, EAX does not support sticker right now.)
1 year ago
Benoit Marty
a7f5324791
Fix warning (suppress unused param for now)
1 year ago
Benoit Marty
8d6e1a2327
Fix warning (suppress unused param for now)
1 year ago
Marco Romano
c746981000
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
1 year ago
Marco Romano
e8e4542a75
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
```
1 year ago
Marco Romano
f7e7339777
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
1 year ago
Marco Romano
e448bbb92d
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
1 year ago
renovate[bot]
156bf08b7a
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>
1 year ago
Jorge Martín
69490b7465
Fix more lint issues
1 year ago
Jorge Martín
697b2052e8
Fix typo
1 year ago
Jorge Martín
aad92d84ff
Use `ElementTheme` as much as possible
1 year ago
Jorge Martín
4896b76e47
Try to fix lint issue
1 year ago
Marco Romano
f614895ec1
Refactor a custom alignment to its own modifier for readability. ( #924 )
1 year ago
Marco Romano
cec87ee6a8
Don't crash when sharing a location with no maptiler apikey ( #919 )
...
Related to:
- https://github.com/vector-im/element-meta/issues/1682
1 year ago
Marco Romano
4162d16f52
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
1 year ago
Marco Romano
4c1a691b78
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
1 year ago
Marco Romano
3c45a5ece4
Send My Location ( #770 )
...
- https://github.com/vector-im/element-meta/issues/1682
1 year ago
Benoit Marty
52ae2ca74c
Also rename the Composable.
1 year ago
Benoit Marty
c5629b3a32
Format files.
1 year ago
Benoit Marty
89334a074b
Move test classes to the correct package.
1 year ago
Benoit Marty
75f08c9873
Not a fixture so prefixed with `create` instead of `a`.
1 year ago
David Langley
312b47e7f5
Add more button should have primary text colour
1 year ago
ganfra
dfd7f9cc5b
Fix tests
1 year ago
David Langley
4c18eb4b11
Add custom reaction layout
...
- Add the custom reaction layout that only shows the expand UI after 2 lines.
- It also enforces that the add more and expand buttons are always on the same line.
- In LTR languages we want an incoming message's reactions to be LRT and outgoing to be RTL.
- For RTL languages it should be the opposite.
1 year ago
ganfra
bb12338583
RoomList: introduce RoomListDataSource so we keep the data in memory as long as the node is in the backstack.
1 year ago
ganfra
614f97543e
Update rust sdk to 0.1.34
1 year ago
Benoit Marty
1b7aa4dd93
Change bubble width ration to 85% ( #904 )
1 year ago
ganfra
d273dd00ff
Media: Clean after pr reviews
1 year ago
Marco Romano
e7cab7ac1d
Make the functions in SystemUtils extensions ( #899 )
...
- They are now all extensions over `Context` or `Activity` (when `Context` is not enough) (some of them already were).
- Allows for IDE completion.
1 year ago
ganfra
669e62e462
PowerLevel: use new api exposed from rust which doesn't need to load members.
1 year ago
Benoit Marty
6b3f69accf
Use Large and remove Huge.
1 year ago