File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/searchaccountprovider
tests/konsist/src/test/kotlin/io/element/android/tests/konsist Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import androidx.compose.foundation.text.KeyboardActions
25
25
import androidx.compose.foundation.text.KeyboardOptions
26
26
import androidx.compose.material3.ExperimentalMaterial3Api
27
27
import androidx.compose.material3.Scaffold
28
- import androidx.compose.material3.TopAppBar
29
28
import androidx.compose.runtime.Composable
30
29
import androidx.compose.runtime.getValue
31
30
import androidx.compose.runtime.setValue
@@ -57,6 +56,7 @@ import io.element.android.libraries.designsystem.preview.PreviewsDayNight
57
56
import io.element.android.libraries.designsystem.theme.components.CircularProgressIndicator
58
57
import io.element.android.libraries.designsystem.theme.components.Icon
59
58
import io.element.android.libraries.designsystem.theme.components.TextField
59
+ import io.element.android.libraries.designsystem.theme.components.TopAppBar
60
60
import io.element.android.libraries.testtags.TestTags
61
61
import io.element.android.libraries.testtags.testTag
62
62
import io.element.android.libraries.ui.strings.CommonStrings
Original file line number Diff line number Diff line change @@ -37,4 +37,17 @@ class KonsistImportTest {
37
37
it.name == " androidx.compose.material3.OutlinedTextField"
38
38
}
39
39
}
40
+
41
+ @Test
42
+ fun `material3 TopAppBar should not be used` () {
43
+ Konsist
44
+ .scopeFromProject()
45
+ .imports
46
+ .assertFalse(
47
+ additionalMessage = " Please use 'io.element.android.libraries.designsystem.theme.components.TopAppBar' instead of " +
48
+ " 'androidx.compose.material3.TopAppBar." ,
49
+ ) {
50
+ it.name == " androidx.compose.material3.TopAppBar"
51
+ }
52
+ }
40
53
}
You can’t perform that action at this time.
0 commit comments