Commit Graph

425 Commits

Author SHA1 Message Date
Benoit Marty 4e9f429491 Merge pull request #3776 from element-hq/feature/bma/targetApi35
Target api 35
2024-11-05 09:39:50 +01:00
Joe Groocock 17ea2aa5dc Enable predictive back gesture (#3797)
This only animates closing the app, but it's better than nothing.

Signed-off-by: Joe Groocock <me@frebib.net>
2024-11-04 13:44:35 +01:00
Benoit Marty 4f60ee2eb2 Fix warning in Versions.kt: const and naming convention. 2024-10-31 09:28:03 +01:00
bmarty e25ba65170 Sync Strings from Localazy 2024-10-07 00:28:33 +00:00
renovate[bot] d371c49fad Update wysiwyg to v2.37.13 (#3596)
* Update wysiwyg to v2.37.13

* Update licenses to include AGPL3 and remove unused ones

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-10-04 14:49:39 +00:00
Benoit Marty 1e91e8b356 Fix building the app using a local SDK.
Inject `AnalyticsService` instead of `UtdTracker` since `UtdTracker` requires access to `org.matrix.rustcomponents.sdk.UnableToDecryptDelegate`
2024-10-04 12:01:30 +02:00
Jorge Martin Espinosa f8fa218146 Upgrade the used JDK in the project to v21 (#3582)
* Upgrade the used JDK in the project to v21

* Use it for CI too

* Centralise java language version

* Fix deprecations, tests and lint issues

* Fix coverage taking into account `@Preview` annotated code.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-03 09:38:03 +00:00
Jorge Martin Espinosa 79c17f714f Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Jorge Martin Espinosa eeec7cc785 Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty 4fc187896a Fix copy paste error 2024-09-24 13:40:29 +02:00
Benoit Marty 1a979cd142 Use ModulesConfig for push provider modules. 2024-09-24 12:31:18 +02:00
ganfra d0f363bf7d Pinned messages analytics : introduce LocalAnalyticsService so we can easily inject it in views 2024-09-20 18:28:25 +02:00
Benoit Marty 1b7b39f97f Migrate license to AGPL - other files. 2024-09-06 17:55:16 +02:00
Benoit Marty 375ac25d8d Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
Benoit Marty f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty 965e445d04 Replace OSS licenses plugin with Licensee and some manually done UI.
This should fix both configuration cache and reproducible F-droid builds.

Cleanup and remove gplay/fdroid diff on open source licenses.

Co-authored by @jmartinesp
2024-09-02 21:11:52 +02:00
bmarty 3e67448006 Sync Strings from Localazy 2024-08-19 00:25:36 +00:00
renovate[bot] 738295a933 Update android.gradle.plugin to v8.5.2 (#3004)
* Update android.gradle.plugin

* Fix release builds with AGP 8.5 by removing the minification config in each library module. I believe this is now centralised.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-08-09 15:04:10 +02:00
bmarty 76804d9e48 Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ElementBot 1f01bd73c4 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Jorge Martin Espinosa 63df35e071 Use the right filename for log files so they're sorted in rageshakes (#3219)
* Use the right filename for log files so they're sorted in rageshakes

* Hide the suffix part so it's not changed by accident
2024-07-19 10:33:33 +00:00
Benoit Marty dcafac06d3 Use Theme.MaterialComponents.DayNight to avoid code duplication.
Extract colors to own files and create booleans
2024-07-18 12:42:58 +02:00
Benoit Marty 4dfd75c3d9 Open Source licenses: add color for links. 2024-07-18 11:49:35 +02:00
Benoit Marty 766ae389ce Add generated screen to show open source licenses.
For Google Play variant only
2024-07-17 15:53:08 +02:00
Benoit Marty bb5ae89b2f Introduce ElementThemeApp to avoid code duplication. 2024-07-09 11:10:10 +02:00
Benoit Marty 9440d08c20 Create module :appicon:enterprise 2024-07-03 17:20:13 +02:00
Benoit Marty 8d1a212bfd Move application icon to their own module, to be able to have another icon for Element Enterprise 2024-07-03 15:15:53 +02:00
jmartinesp dabaa2d265 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa b0cebf5ca0 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
Benoit Marty 0d8064b9da Use different groups for Element Enterprise 2024-07-02 17:21:03 +02:00
Benoit Marty 5506e2ab00 Element Enterprise: use different appId for nightly build. 2024-07-02 14:58:13 +02:00
Benoit Marty 85c55150b5 Remove removal of androidx.startup.InitializationProvider. This provider is declared at line 39 in this file.
Fix the warning: `provider#androidx.startup.InitializationProvider was tagged at AndroidManifest.xml:149 to remove other declarations but no other declaration present`
2024-07-02 14:52:13 +02:00
Benoit Marty 6c4e7ec85e Merge pull request #3025 from element-hq/feature/bma/elementEnterprise
Element enterprise (EE) foundations
2024-07-01 17:08:40 +02:00
Benoit Marty 5430d792d1 Remove unnecessary packaging configuration. 2024-07-01 11:54:54 +02:00
Benoit Marty 20b738b51d Add a check on isEnterpriseBuild before including enterprise module.
This is not strictly necessary, since if the enterprise modules are not there, nothing will be included by `allEnterpriseImpl()`, but for clarity, it's better to add this check.
2024-07-01 11:53:43 +02:00
Benoit Marty a457561b47 Remove towncrier template. 2024-06-27 12:16:34 +02:00
Benoit Marty a565a0396f Remove towncrier invocation when building nightly. 2024-06-27 11:52:38 +02:00
Benoit Marty 9b5738476c Gradle: log which application is built. 2024-06-26 11:59:46 +02:00
Benoit Marty 9e2fb0d0c2 Change application name for EXE build 2024-06-26 11:59:46 +02:00
Benoit Marty a9fb4b95ce Add isEnterpriseBuild to BuildMeta 2024-06-26 11:59:45 +02:00
Benoit Marty d8e5c0cf34 lift out assignment. 2024-06-26 11:59:45 +02:00
Benoit Marty 1b72221df7 Add first EnterpriseService. 2024-06-26 11:59:41 +02:00
Jorge Martin Espinosa b741c32e91 Add full screen intent permissions banner (#3024)
* Add full screen intent permissions banner, creating `:libraries:fullscreenintent` modules.
* Add it to notification settings too:
    - Create `libraries:fullscreenintent` modules for the permission presenter and associated data.
    - Add the presenter and states to `NotificationSettingsPresenter` and `NotificationSettingsView`.
* Use the right API to check for full screen intent permissions.
- Use the right package name for `:libraries:permission` contents.
* Fix broken tests (flaky?)
* Ignore coverage verification for fake and small presenters

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-18 07:41:10 +00:00
Benoit Marty 828cf4cc8d Remove wrong dependency. 2024-06-14 10:29:48 +02:00
Benoit Marty 1d347b8bab Remove unused file, we do not have LikeTheSalad on this project. 2024-06-13 18:20:19 +02:00
Jorge Martin Espinosa 55a1ac4bb5 Fix tracing configuration in debug and nightlies (#3019)
* Fix tracing configuration in debug and nightlies:

- Debug will now write the logs to disk too.
- Nightly will be able to customise tracing filters.
- Improved the configure tracing and bug report screens.

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-12 10:20:43 +00:00
bmarty f3d286911c Sync Strings from Localazy 2024-06-10 00:17:04 +00:00
Benoit Marty e619fefb7f Add a flag to enable or disable incoming share 2024-06-06 12:34:05 +02:00
Benoit Marty 9ae0107172 Incoming share 2024-06-05 18:08:14 +02:00
Benoit Marty 3fa508f1fe Add Konsist test Class with 'ContributeBinding' annotation should have allowed prefix and fix exissting issues.
Also remove annotation `DefaultPreferences`, we only have one implementation.
2024-05-31 10:18:08 +02:00