Browse Source

Merge pull request #3134 from element-hq/feature/bma/applicationIcons

Add temporary icon for Element Enterprise
pull/3138/head
Benoit Marty 3 months ago committed by GitHub
parent
commit
646791e717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      app/build.gradle.kts
  2. 17
      appicon/element/build.gradle.kts
  3. 0
      appicon/element/src/debug/res/drawable/ic_launcher_background.xml
  4. 0
      appicon/element/src/main/ic_launcher-playstore.png
  5. 3
      appicon/element/src/main/kotlin/io/element/android/appicon/element/IconPreview.kt
  6. 0
      appicon/element/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  7. 0
      appicon/element/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  8. 0
      appicon/element/src/main/res/mipmap-hdpi/ic_launcher.webp
  9. 0
      appicon/element/src/main/res/mipmap-hdpi/ic_launcher_background.webp
  10. 0
      appicon/element/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp
  11. 0
      appicon/element/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp
  12. 0
      appicon/element/src/main/res/mipmap-hdpi/ic_launcher_round.webp
  13. 0
      appicon/element/src/main/res/mipmap-mdpi/ic_launcher.webp
  14. 0
      appicon/element/src/main/res/mipmap-mdpi/ic_launcher_background.webp
  15. 0
      appicon/element/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp
  16. 0
      appicon/element/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp
  17. 0
      appicon/element/src/main/res/mipmap-mdpi/ic_launcher_round.webp
  18. 0
      appicon/element/src/main/res/mipmap-xhdpi/ic_launcher.webp
  19. 0
      appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_background.webp
  20. 0
      appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
  21. 0
      appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp
  22. 0
      appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
  23. 0
      appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher.webp
  24. 0
      appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp
  25. 0
      appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
  26. 0
      appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp
  27. 0
      appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
  28. 0
      appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
  29. 0
      appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp
  30. 0
      appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
  31. 0
      appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp
  32. 0
      appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
  33. 0
      appicon/element/src/nightly/res/drawable/ic_launcher_background.xml
  34. 0
      appicon/element/src/release/res/drawable/ic_launcher_background.xml
  35. 22
      appicon/enterprise/build.gradle.kts
  36. 10
      appicon/enterprise/src/debug/res/drawable/ic_launcher_background_enterprise.xml
  37. 53
      appicon/enterprise/src/main/kotlin/io/element/android/appicon/enterprise/IconPreview.kt
  38. 21
      appicon/enterprise/src/main/res/mipmap-anydpi/ic_launcher.xml
  39. 21
      appicon/enterprise/src/main/res/mipmap-anydpi/ic_launcher_round.xml
  40. BIN
      appicon/enterprise/src/main/res/mipmap-hdpi/ic_launcher_background_enterprise.webp
  41. BIN
      appicon/enterprise/src/main/res/mipmap-mdpi/ic_launcher_background_enterprise.webp
  42. BIN
      appicon/enterprise/src/main/res/mipmap-xhdpi/ic_launcher_background_enterprise.webp
  43. BIN
      appicon/enterprise/src/main/res/mipmap-xxhdpi/ic_launcher_background_enterprise.webp
  44. BIN
      appicon/enterprise/src/main/res/mipmap-xxhdpi/ic_launcher_foreground_enterprise.webp
  45. BIN
      appicon/enterprise/src/main/res/mipmap-xxxhdpi/ic_launcher_background_enterprise.webp
  46. 10
      appicon/enterprise/src/nightly/res/drawable/ic_launcher_background_enterprise.xml
  47. 2
      appicon/enterprise/src/release/res/drawable/ic_launcher_background_enterprise.xml
  48. 1
      gradle/libs.versions.toml
  49. 2
      settings.gradle.kts
  50. 11
      tests/uitests/build.gradle.kts
  51. 1
      tests/uitests/src/test/kotlin/base/ComposablePreviewProvider.kt
  52. 3
      tests/uitests/src/test/snapshots/images/appicon.element_Icon_en.png
  53. 3
      tests/uitests/src/test/snapshots/images/appicon.element_MonochromeIcon_en.png
  54. 3
      tests/uitests/src/test/snapshots/images/appicon.element_RoundIcon_en.png
  55. 3
      tests/uitests/src/test/snapshots/images/appicon.enterprise_Icon_en.png
  56. 3
      tests/uitests/src/test/snapshots/images/appicon.enterprise_RoundIcon_en.png

3
app/build.gradle.kts

@ -241,6 +241,9 @@ dependencies { @@ -241,6 +241,9 @@ dependencies {
allServicesImpl()
if (isEnterpriseBuild) {
allEnterpriseImpl(rootDir, logger)
implementation(projects.appicon.enterprise)
} else {
implementation(projects.appicon.element)
}
allFeaturesImpl(rootDir, logger)
implementation(projects.features.migration.api)

17
tests/uitests/src/main/kotlin/ui/ElementXShowkaseRootModule.kt → appicon/element/build.gradle.kts

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 New Vector Ltd
* Copyright (c) 2024 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -13,11 +13,14 @@ @@ -13,11 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id("io.element.android-compose-library")
}
package ui
android {
namespace = "io.element.android.appicon.element"
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
class ElementXShowkaseRootModule : ShowkaseRootModule
buildTypes {
register("nightly")
}
}

0
app/src/debug/res/drawable/ic_launcher_background.xml → appicon/element/src/debug/res/drawable/ic_launcher_background.xml

0
app/src/main/ic_launcher-playstore.png → appicon/element/src/main/ic_launcher-playstore.png

Before

Width:  |  Height:  |  Size: 263 KiB

After

Width:  |  Height:  |  Size: 263 KiB

3
app/src/main/kotlin/io/element/android/x/icon/IconPreview.kt → appicon/element/src/main/kotlin/io/element/android/appicon/element/IconPreview.kt

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.icon
package io.element.android.appicon.element
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
@ -31,7 +31,6 @@ import androidx.compose.ui.graphics.ColorFilter @@ -31,7 +31,6 @@ import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import io.element.android.x.R
@Preview
@Composable

0
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml → appicon/element/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

0
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml → appicon/element/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

0
app/src/main/res/mipmap-hdpi/ic_launcher.webp → appicon/element/src/main/res/mipmap-hdpi/ic_launcher.webp

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

0
app/src/main/res/mipmap-hdpi/ic_launcher_background.webp → appicon/element/src/main/res/mipmap-hdpi/ic_launcher_background.webp

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp → appicon/element/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

0
app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp → appicon/element/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
app/src/main/res/mipmap-hdpi/ic_launcher_round.webp → appicon/element/src/main/res/mipmap-hdpi/ic_launcher_round.webp

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

0
app/src/main/res/mipmap-mdpi/ic_launcher.webp → appicon/element/src/main/res/mipmap-mdpi/ic_launcher.webp

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

0
app/src/main/res/mipmap-mdpi/ic_launcher_background.webp → appicon/element/src/main/res/mipmap-mdpi/ic_launcher_background.webp

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

0
app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp → appicon/element/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

0
app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp → appicon/element/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp

Before

Width:  |  Height:  |  Size: 946 B

After

Width:  |  Height:  |  Size: 946 B

0
app/src/main/res/mipmap-mdpi/ic_launcher_round.webp → appicon/element/src/main/res/mipmap-mdpi/ic_launcher_round.webp

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

0
app/src/main/res/mipmap-xhdpi/ic_launcher.webp → appicon/element/src/main/res/mipmap-xhdpi/ic_launcher.webp

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

0
app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp → appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_background.webp

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

0
app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp → appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp → appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp → appicon/element/src/main/res/mipmap-xhdpi/ic_launcher_round.webp

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

0
app/src/main/res/mipmap-xxhdpi/ic_launcher.webp → appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher.webp

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp → appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

0
app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp → appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp → appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

0
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp → appicon/element/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp → appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher.webp

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp → appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

0
app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp → appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

0
app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp → appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

0
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp → appicon/element/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

0
app/src/nightly/res/drawable/ic_launcher_background.xml → appicon/element/src/nightly/res/drawable/ic_launcher_background.xml

0
app/src/release/res/drawable/ic_launcher_background.xml → appicon/element/src/release/res/drawable/ic_launcher_background.xml

22
tests/uitests/src/main/kotlin/ui/ShowkaseNavigation.kt → appicon/enterprise/build.gradle.kts

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 New Vector Ltd
* Copyright (c) 2024 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -13,18 +13,14 @@ @@ -13,18 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id("io.element.android-compose-library")
}
package ui
import android.app.Activity
import android.content.Intent
import com.airbnb.android.showkase.ui.ShowkaseBrowserActivity
android {
namespace = "io.element.android.appicon.enterprise"
fun openShowkase(activity: Activity) {
val intent = Intent(activity, ShowkaseBrowserActivity::class.java)
intent.putExtra(
"SHOWKASE_ROOT_MODULE",
"io.element.android.libraries.designsystem.showkase.DesignSystemShowkaseRootModule"
)
activity.startActivity(intent)
buildTypes {
register("nightly")
}
}

10
appicon/enterprise/src/debug/res/drawable/ic_launcher_background_enterprise.xml

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#F7F07E"
android:fillType="evenOdd"
android:pathData="m0,0h108v108h-108z" />
</vector>

53
appicon/enterprise/src/main/kotlin/io/element/android/appicon/enterprise/IconPreview.kt

@ -0,0 +1,53 @@ @@ -0,0 +1,53 @@
/*
* Copyright (c) 2024 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.element.android.appicon.enterprise
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
@Preview
@Composable
internal fun IconPreview() {
Box {
Image(painter = painterResource(id = R.mipmap.ic_launcher_background_enterprise), contentDescription = null)
Image(
modifier = Modifier.align(Alignment.Center),
painter = painterResource(id = R.mipmap.ic_launcher_foreground_enterprise),
contentDescription = null,
)
}
}
@Preview
@Composable
internal fun RoundIconPreview() {
Box(modifier = Modifier.clip(shape = CircleShape)) {
Image(painter = painterResource(id = R.mipmap.ic_launcher_background_enterprise), contentDescription = null)
Image(
modifier = Modifier.align(Alignment.Center),
painter = painterResource(id = R.mipmap.ic_launcher_foreground_enterprise),
contentDescription = null,
)
}
}

21
appicon/enterprise/src/main/res/mipmap-anydpi/ic_launcher.xml

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2024 New Vector Ltd
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background_enterprise"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground_enterprise"/>
</adaptive-icon>

21
appicon/enterprise/src/main/res/mipmap-anydpi/ic_launcher_round.xml

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2024 New Vector Ltd
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background_enterprise" />
<foreground android:drawable="@mipmap/ic_launcher_foreground_enterprise" />
</adaptive-icon>

BIN
appicon/enterprise/src/main/res/mipmap-hdpi/ic_launcher_background_enterprise.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
appicon/enterprise/src/main/res/mipmap-mdpi/ic_launcher_background_enterprise.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
appicon/enterprise/src/main/res/mipmap-xhdpi/ic_launcher_background_enterprise.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
appicon/enterprise/src/main/res/mipmap-xxhdpi/ic_launcher_background_enterprise.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
appicon/enterprise/src/main/res/mipmap-xxhdpi/ic_launcher_foreground_enterprise.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
appicon/enterprise/src/main/res/mipmap-xxxhdpi/ic_launcher_background_enterprise.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

10
appicon/enterprise/src/nightly/res/drawable/ic_launcher_background_enterprise.xml

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#07007E"
android:fillType="evenOdd"
android:pathData="m0,0h108v108h-108z" />
</vector>

2
appicon/enterprise/src/release/res/drawable/ic_launcher_background_enterprise.xml

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@mipmap/ic_launcher_background_enterprise" />

1
gradle/libs.versions.toml

@ -145,6 +145,7 @@ test_truth = "com.google.truth:truth:1.4.3" @@ -145,6 +145,7 @@ test_truth = "com.google.truth:truth:1.4.3"
test_parameter_injector = "com.google.testparameterinjector:test-parameter-injector:1.16"
test_robolectric = "org.robolectric:robolectric:4.12.2"
test_appyx_junit = { module = "com.bumble.appyx:testing-junit4", version.ref = "appyx" }
test_composable_preview_scanner = "com.github.sergio-sastre.ComposablePreviewScanner:android:0.1.2"
# Others
coil = { module = "io.coil-kt:coil", version.ref = "coil" }

2
settings.gradle.kts

@ -71,6 +71,8 @@ rootProject.name = "ElementX" @@ -71,6 +71,8 @@ rootProject.name = "ElementX"
include(":app")
include(":appnav")
include(":appconfig")
include(":appicon:element")
include(":appicon:enterprise")
include(":tests:konsist")
include(":tests:uitests")
include(":tests:testutils")

11
tests/uitests/build.gradle.kts

@ -39,10 +39,6 @@ tasks.withType<Test> { @@ -39,10 +39,6 @@ tasks.withType<Test> {
}
dependencies {
testImplementation(libs.test.junit)
testImplementation(libs.test.parameter.injector)
testImplementation(projects.libraries.designsystem)
// Paparazzi 1.3.2 workaround (see https://github.com/cashapp/paparazzi/blob/master/CHANGELOG.md#132---2024-01-13)
constraints.add("testImplementation", "com.google.guava:guava") {
attributes {
@ -66,6 +62,11 @@ dependencies { @@ -66,6 +62,11 @@ dependencies {
allLibrariesImpl()
allServicesImpl()
allFeaturesImpl(rootDir, logger)
implementation(projects.appicon.element)
implementation(projects.appicon.enterprise)
testImplementation("com.github.sergio-sastre.ComposablePreviewScanner:android:0.1.2")
testImplementation(libs.test.junit)
testImplementation(libs.test.parameter.injector)
testImplementation(projects.libraries.designsystem)
testImplementation(libs.test.composable.preview.scanner)
}

1
tests/uitests/src/test/kotlin/base/ComposablePreviewProvider.kt

@ -30,6 +30,7 @@ object ComposablePreviewProvider : TestParameter.TestParameterValuesProvider { @@ -30,6 +30,7 @@ object ComposablePreviewProvider : TestParameter.TestParameterValuesProvider {
"io.element.android.features",
"io.element.android.libraries",
"io.element.android.services",
"io.element.android.appicon",
"io.element.android.appnav",
"io.element.android.x",
// Make sure we don't import Compound previews by mistake

3
tests/uitests/src/test/snapshots/images/appicon.element_Icon_en.png

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f43597d36fd123dc4ec478ed8ddc3160d383881623d613b8ab8045f042b80cb
size 44846

3
tests/uitests/src/test/snapshots/images/appicon.element_MonochromeIcon_en.png

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:09a5771a54ac2f2aa538fc86d33608a53f18126484547797bc2932b1a329eb83
size 7170

3
tests/uitests/src/test/snapshots/images/appicon.element_RoundIcon_en.png

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74af6c3ed723f027bb38b2fd7c4b0441ff26149abb587058bd2bb5be9adbe63b
size 40692

3
tests/uitests/src/test/snapshots/images/appicon.enterprise_Icon_en.png

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fda6dfc8c57df5456535a8ec33f78830beaab61cc27ba4119e9576c5d641023b
size 47856

3
tests/uitests/src/test/snapshots/images/appicon.enterprise_RoundIcon_en.png

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60b169ac392d4b51e8260c595a97dd14f267facd8f428ad69814bd27e502e189
size 44355
Loading…
Cancel
Save