Skip to content

Commit 2c67c01

Browse files
committed
Merge branch 'release/25.04.0' into main
2 parents 612749b + e4661db commit 2c67c01

File tree

834 files changed

+6029
-3462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

834 files changed

+6029
-3462
lines changed

.github/workflows/nightly_enterprise.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Pull Request
22
on:
3-
pull_request:
3+
pull_request_target:
44
types: [ opened, edited, labeled, unlabeled, synchronize ]
55
workflow_call:
66
secrets:

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
Changes in Element X v25.03.4
2+
=============================
3+
4+
<!-- Release notes generated using configuration in .github/release.yml at v25.03.4 -->
5+
6+
## What's Changed
7+
### 🙌 Improvements
8+
* Change : composer suggestions by @ganfra in https://github.com/element-hq/element-x-android/pull/4485
9+
### 🧱 Build
10+
* Fix flaky incoming verification tests by @jmartinesp in https://github.com/element-hq/element-x-android/pull/4479
11+
### Dependency upgrades
12+
* fix(deps): update dagger to v2.56.1 by @renovate in https://github.com/element-hq/element-x-android/pull/4472
13+
* fix(deps): update dependencyanalysis to v2.13.2 by @renovate in https://github.com/element-hq/element-x-android/pull/4473
14+
* Upgrade embedded EC version to `v0.9.0-rc.4` by @jmartinesp in https://github.com/element-hq/element-x-android/pull/4489
15+
16+
17+
**Full Changelog**: https://github.com/element-hq/element-x-android/compare/v25.03.3...v25.03.4
18+
119
Changes in Element X v25.03.3
220
=============================
321

app/build.gradle.kts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import extension.allEnterpriseImpl
2020
import extension.allFeaturesImpl
2121
import extension.allLibrariesImpl
2222
import extension.allServicesImpl
23+
import extension.buildConfigFieldStr
2324
import extension.koverDependencies
2425
import extension.locales
2526
import extension.setupAnvil
@@ -102,7 +103,7 @@ android {
102103
}
103104

104105
val baseAppName = BuildTimeConfig.APPLICATION_NAME
105-
logger.warnInBox("Building $baseAppName")
106+
logger.warnInBox("Building ${defaultConfig.applicationId} ($baseAppName)")
106107

107108
buildTypes {
108109
getByName("debug") {
@@ -170,13 +171,13 @@ android {
170171
create("gplay") {
171172
dimension = "store"
172173
isDefault = true
173-
buildConfigField("String", "SHORT_FLAVOR_DESCRIPTION", "\"G\"")
174-
buildConfigField("String", "FLAVOR_DESCRIPTION", "\"GooglePlay\"")
174+
buildConfigFieldStr("SHORT_FLAVOR_DESCRIPTION", "G")
175+
buildConfigFieldStr("FLAVOR_DESCRIPTION", "GooglePlay")
175176
}
176177
create("fdroid") {
177178
dimension = "store"
178-
buildConfigField("String", "SHORT_FLAVOR_DESCRIPTION", "\"F\"")
179-
buildConfigField("String", "FLAVOR_DESCRIPTION", "\"FDroid\"")
179+
buildConfigFieldStr("SHORT_FLAVOR_DESCRIPTION", "F")
180+
buildConfigFieldStr("FLAVOR_DESCRIPTION", "FDroid")
180181
}
181182
}
182183
}
@@ -291,8 +292,8 @@ tasks.withType<GenerateBuildConfig>().configureEach {
291292
outputs.upToDateWhen { false }
292293
val gitRevision = providers.of(GitRevisionValueSource::class.java) {}.get()
293294
val gitBranchName = providers.of(GitBranchNameValueSource::class.java) {}.get()
294-
android.defaultConfig.buildConfigField("String", "GIT_REVISION", "\"$gitRevision\"")
295-
android.defaultConfig.buildConfigField("String", "GIT_BRANCH_NAME", "\"$gitBranchName\"")
295+
android.defaultConfig.buildConfigFieldStr("GIT_REVISION", gitRevision)
296+
android.defaultConfig.buildConfigFieldStr("GIT_BRANCH_NAME", gitBranchName)
296297
}
297298

298299
licensee {

app/src/main/kotlin/io/element/android/x/ElementXApplication.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ package io.element.android.x
99

1010
import android.app.Application
1111
import androidx.startup.AppInitializer
12+
import io.element.android.appconfig.RageshakeConfig
13+
import io.element.android.appconfig.isEnabled
1214
import io.element.android.features.cachecleaner.api.CacheCleanerInitializer
1315
import io.element.android.libraries.di.DaggerComponentOwner
1416
import io.element.android.x.di.AppComponent
@@ -23,7 +25,9 @@ class ElementXApplication : Application(), DaggerComponentOwner {
2325
override fun onCreate() {
2426
super.onCreate()
2527
AppInitializer.getInstance(this).apply {
26-
initializeComponent(CrashInitializer::class.java)
28+
if (RageshakeConfig.isEnabled) {
29+
initializeComponent(CrashInitializer::class.java)
30+
}
2731
initializeComponent(PlatformInitializer::class.java)
2832
initializeComponent(CacheCleanerInitializer::class.java)
2933
}

app/src/main/kotlin/io/element/android/x/initializer/PlatformInitializer.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class PlatformInitializer : Initializer<Unit> {
3737
writesToFilesConfiguration = defaultWriteToDiskConfiguration(bugReporter),
3838
logLevel = logLevel,
3939
extraTargets = listOf(ELEMENT_X_TARGET),
40+
traceLogPacks = runBlocking { preferencesStore.getTracingLogPacksFlow().first() },
4041
)
4142
bugReporter.setCurrentTracingLogLevel(logLevel.name)
4243
platformService.init(tracingConfiguration)

app/src/main/res/values/colors.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
~ Please see LICENSE files in the repository root for full details.
66
-->
77
<resources>
8-
<!-- Must be equal to DarkDesignTokens.colorThemeBg -->
8+
<!-- Must be equal to DarkColorTokens.colorThemeBg -->
99
<color name="splashscreen_bg_dark">#FF101317</color>
10-
<!-- Must be equal to LightDesignTokens.colorThemeBg -->
10+
<!-- Must be equal to LightColorTokens.colorThemeBg -->
1111
<color name="splashscreen_bg_light">#FFFFFFFF</color>
1212
</resources>

appconfig/build.gradle.kts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import config.BuildTimeConfig
2+
import extension.buildConfigFieldStr
3+
14
/*
25
* Copyright 2022-2024 New Vector Ltd.
36
*
@@ -10,6 +13,37 @@ plugins {
1013

1114
android {
1215
namespace = "io.element.android.appconfig"
16+
17+
buildFeatures {
18+
buildConfig = true
19+
}
20+
21+
defaultConfig {
22+
buildConfigFieldStr(
23+
name = "URL_POLICY",
24+
value = if (isEnterpriseBuild) {
25+
BuildTimeConfig.URL_POLICY ?: ""
26+
} else {
27+
"https://element.io/cookie-policy"
28+
},
29+
)
30+
buildConfigFieldStr(
31+
name = "BUG_REPORT_URL",
32+
value = if (isEnterpriseBuild) {
33+
BuildTimeConfig.BUG_REPORT_URL ?: ""
34+
} else {
35+
"https://riot.im/bugreports/submit"
36+
},
37+
)
38+
buildConfigFieldStr(
39+
name = "BUG_REPORT_APP_NAME",
40+
value = if (isEnterpriseBuild) {
41+
BuildTimeConfig.BUG_REPORT_APP_NAME ?: ""
42+
} else {
43+
"element-x-android"
44+
},
45+
)
46+
}
1347
}
1448

1549
dependencies {

appconfig/src/main/kotlin/io/element/android/appconfig/AnalyticsConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
package io.element.android.appconfig
99

1010
object AnalyticsConfig {
11-
const val POLICY_LINK = "https://element.io/cookie-policy"
11+
const val POLICY_LINK = BuildConfig.URL_POLICY
1212
}

0 commit comments

Comments
 (0)