Commit Graph

47 Commits

Author SHA1 Message Date
renovate[bot]
84d368741a fix(deps): update android.gradle.plugin to v8.13.1 (#5260)
* fix(deps): update android.gradle.plugin to v8.13.1

* Remove warning about AGP 8.12.x+

* Fix proguard-related code deprecations, use the new `optimization` API

* Workaround issues related to Android lint not being able to check these complex methods with kotlin contracts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-11-26 11:57:22 +01:00
Benoit Marty
1292da2a72 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty
b748fcc631 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Benoit Marty
8bc92a2a87 Import Compound tests from project https://github.com/element-hq/compound-android 2025-10-06 10:47:31 +02:00
Benoit Marty
708c7ce7de Comment out the lint version override.
We should override only when we have an issue with the lint version defined in AGP.
2025-09-09 18:13:20 +02:00
Benoit Marty
4e720cecb1 Rename anvil modules to annotations and codegen 2025-09-05 14:26:27 +02:00
renovate[bot]
c4555bc76a Update android.gradle.plugin to v8.12.2 (#5244)
* Update android.gradle.plugin to v8.12.2

* Upgrade lint version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-09-01 15:23:33 +02:00
Jorge Martin Espinosa
2f2e886e9f Handle preference stores corruption by clearing them (#5086)
* Handle preference stores corruption by clearing them:
    - Use the centralised `PreferenceDataStoreFactory` instead of `preferences by`.
    - Add `DefaultPreferencesCorruptionHandlerFactory.replaceWithEmpty` to its `create(name)` method so all preference stores are cleared if they're corrupted.

* Add detekt rule to make sure we use `PreferenceDataStoreFactory` instead of `by preferencesDataStore`

* Remove `@SingleIn` annotations as the annotated class no longer have to be singletons
2025-08-22 06:59:06 +00:00
renovate[bot]
487cf6b9e1 Update android.gradle.plugin to v8.12.1 (#5184)
* Update android.gradle.plugin to v8.12.1

* Upgrade lint version to 8.12.1 (version 8.13.+ or 9.+ break the lint job)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-08-19 08:22:53 +02:00
ganfra
2bbc62d79f Merge pull request #5106 from element-hq/renovate/android.gradle.plugin
Update android.gradle.plugin to v8.12.0
2025-08-08 14:17:45 +02:00
ganfra
44a6b88ab3 deps (lint) : use latest stable lint 2025-08-08 13:46:47 +02:00
Jorge Martin Espinosa
955263bee1 Force last owner of a room to pass ownership when leaving (#5094)
* Move `ChangeRoles*` classes to their own module so they can be shared

* Hook the change roles screen to the leave room action, add confirmation dialogs

* Use enum instead of sealed interface for `ChangeRoomMemberRolesListType`

* Try to improve communications between nodes

* refactor (leave room) : makes sure to expose only necessary code from api module

* Add `:libraries:previewutils` module to share some test fixtures used for UI previews

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
Co-authored-by: ganfra <francoisg@matrix.org>
2025-08-05 17:24:14 +02:00
Benoit Marty
42dccf9b86 Upgrade lint version to 8.12.0-alpha07 2025-07-02 12:32:08 +02:00
ganfra
27b122b6dc deps (lint) : update lint version to align with android gradle plugin 2025-07-01 18:44:53 +02:00
renovate[bot]
62a1d1bcb9 fix(deps): update android.gradle.plugin to v8.10.0 (#4687)
* fix(deps): update android.gradle.plugin to v8.10.0

* Update lint version to 8.11.0-alpha09

* Fix lint false positive.

Error: Modifier factory functions must use the receiver Modifier instance [ModifierFactoryUnreferencedReceiver from androidx.compose.ui]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-05-07 11:07:20 +02:00
Benoit Marty
a51b74d3fb Upgrade lint to the latest version. 2025-03-12 14:41:09 +01:00
Benoit Marty
8493b2a8dc Update android.experimental.lint.version to the latest available version. 2025-01-10 16:44:37 +01:00
Benoit Marty
05fc76822a Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
renovate[bot]
4ed2c04a01 Update android.gradle.plugin to v8.7.0 (#3577)
* Update android.gradle.plugin to v8.7.0

* Bump Android lint version to `8.8.0-alpha04`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-10-02 13:53:25 +02:00
Jorge Martin Espinosa
4a43fcb69a 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
Joe Groocock
433cb7da32 Remove redundant dependency-analysis autoapply option
Fixes the warning:

    > Configure project :
    dependency.analysis.autoapply is set to false, but this is now the
    only behavior, and the flag has no effect. You should remove it from
    your build scripts.

Signed-off-by: Joe Groocock <me@frebib.net>
2024-09-09 22:05:10 +00:00
Benoit Marty
449bb6357a Migrate license to AGPL. 2024-09-06 17:30:05 +02:00
renovate[bot]
9b061ca798 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
Benoit Marty
94f38f1af5 Rework FakeMatrixRoom so that it contains only lambdas. (#3229)
* Upgrade lint to 8.7.0-alpha01

* FakeMatrixRoom: lambda everywhere

Fix test compilation issues
2024-07-22 10:39:48 +02:00
Jorge Martin Espinosa
0bf4819de2 Try fixing OOM by changing GC and adding RAM to the kotlin compiler (#2965)
* Try fixing OOM by changing GC and adding RAM to the kotlin compiler

* Add gradle cache to build apk job in maestro flow.

- Remove unnecessary dependency in `:features:call` module.

* Fix sonar in nightly reports

* Bump heap size of nightly reports
2024-06-03 11:28:51 +02:00
Jorge Martin Espinosa
16ce4cbfcc Restore legacy shrinking configuration for AGP 8.4.x (#2867)
* Restore legacy shrinking configuration for AGP `8.4.x`

The current one is causing issues with release builds and no changes in proguard rules seem to fix them.

Co-authored-by: Benoit Marty <benoit@matrix.org>

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-05-17 11:08:34 +02:00
renovate[bot]
57a0d5657e Update android.gradle.plugin to v8.4.0 (#2777)
* Update android.gradle.plugin to v8.4.0

* Update `android.experimental.lint.version` to `8.5.0-alpha07`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-05-15 11:07:36 +02:00
renovate[bot]
e51b9ace94 Update android.gradle.plugin to v8.3.1 (#2471)
* Update android.gradle.plugin to v8.3.1

* Fix AGP update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-03-21 09:47:17 +01:00
Jorge Martín
0e19c2f2c8 Only apply dependencyanalysis plugin to some modules 2023-12-28 17:06:05 +01:00
Benoit Marty
f63bd75def Upgrade lint to 8.3.0-alpha12 2023-11-10 15:52:53 +01:00
Benoit Marty
a6d108a5aa Upgrade lint to version 8.3.0-alpha11 and suppress false positive. 2023-11-06 16:03:16 +01:00
Jorge Martin Espinosa
3fc8f1aaec Use Parallel GC and bump RAM usage (#1734)
* Use Parallel GC and bump RAM usage

* Build only `app` project in `Build APKs (debug)` flow.

* Remove redundant JNA dependency
2023-11-03 10:34:49 +01:00
Marco Romano
3f721f57cb Remove suppressUnsupportedCompileSdk
We're now an AGP 8.1.0 so should be safe to remove as per the comment.
2023-09-15 09:20:51 +02:00
Marco Romano
403da4582a org.gradle.jvmargs=-Xmx4g (#1087)
I have to do it locally every time i checkout a branch. Perhaps it's best if we push this to origin.
2023-08-18 10:29:25 +02:00
Jorge Martin Espinosa
e3cfbc113b Upgrade compose-material3 to 1.2.0-alpha05 version (#1011)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>

Also upgrade compileSdk to 34.
2023-08-17 14:20:54 +02:00
ganfra
b6a3821991 Disable kotlin incremental compilation for now, waiting for better 2023-06-08 15:11:44 +02:00
Benoit Marty
1b4a0255ce Upgrade version of lint from 8.0.0 to 8.2.0-alpha02 (latest).
Fix warning:
WARNING: The build will use lint version 8.0.0 which is older than the default.
Recommendation: Remove or update the gradle property android.experimental.lint.version to be at least 8.0.1
2023-05-09 10:59:21 +02:00
Jorge Martin Espinosa
afd58f1634 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>
2023-04-17 08:49:52 +00:00
Jorge Martin Espinosa
4154a96b54 Revert "Update Gradle and AGP to v8.0 (#283)" (#295)
This reverts commit 4e085efcf4.
2023-04-04 14:44:01 +00:00
Jorge Martin Espinosa
4e085efcf4 Update Gradle and AGP to v8.0 (#283)
* Update dependency gradle to v8

* Handle upgrading Gradle to v8.0.2

* Update AGP to 8.0.0-RC01

* Try to set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 18:02:34 +02:00
Benoit Marty
32dd9adda7 Enable testFixtures - but not supported by AGP yet, so put files in module matrixtest 2023-02-07 10:36:29 +01:00
ganfra
c2ca91210e Gradle config: add some config to make it faster. 2023-01-24 17:39:15 +01:00
Benoit Marty
793530e788 Use more recent lint version to fix lint false positive. 2023-01-18 16:37:00 +01:00
Benoit Marty
e2515020cf Add missing Copyright 2022-12-22 13:51:56 +01:00
Benoit Marty
d6058716c6 Format project 2022-12-09 12:06:37 +01:00
Benoit Marty
29b3ab9612 Setup nighlty build + GitHub action 2022-11-23 15:11:27 +01:00
Benoit Marty
cfa3dc7e84 Create project from AS wizard "Empty Compose Activity (Material 3)" 2022-10-07 15:05:13 +02:00