Skip to content

Commit 6722af8

Browse files
committed
Clean up
1 parent 4266212 commit 6722af8

File tree

4 files changed

+2
-46
lines changed

4 files changed

+2
-46
lines changed

compose/snippets/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ android {
7777

7878
dependencies {
7979
implementation(libs.androidx.work.runtime.ktx)
80-
implementation(libs.testng)
81-
implementation(libs.androidx.ui.test.android)
82-
implementation(libs.androidx.ui.test.junit4.android)
8380
val composeBom = platform(libs.androidx.compose.bom)
8481
implementation(composeBom)
8582
androidTestImplementation(composeBom)

compose/snippets/src/main/java/com/example/compose/snippets/text/AutofillSnippets.kt

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import androidx.compose.foundation.layout.height
2222
import androidx.compose.foundation.text.BasicTextField
2323
import androidx.compose.foundation.text.LocalAutofillHighlightColor
2424
import androidx.compose.foundation.text.input.TextFieldState
25-
import androidx.compose.material.TextField
26-
import androidx.compose.material3.Surface
2725
import androidx.compose.material3.Text
2826
import androidx.compose.runtime.Composable
2927
import androidx.compose.runtime.CompositionLocalProvider
@@ -32,19 +30,10 @@ import androidx.compose.ui.Modifier
3230
import androidx.compose.ui.autofill.ContentType
3331
import androidx.compose.ui.graphics.Color
3432
import androidx.compose.ui.platform.LocalAutofillManager
35-
import androidx.compose.ui.platform.testTag
36-
import androidx.compose.ui.semantics.SemanticsProperties
37-
import androidx.compose.ui.semantics.SemanticsProperties.TestTag
3833
import androidx.compose.ui.semantics.contentType
3934
import androidx.compose.ui.semantics.semantics
40-
import androidx.compose.ui.test.SemanticsMatcher
41-
import androidx.compose.ui.test.assert
42-
import androidx.compose.ui.test.junit4.createComposeRule
43-
import androidx.compose.ui.test.onNodeWithTag
4435
import androidx.compose.ui.unit.dp
4536
import com.example.compose.snippets.touchinput.Button
46-
import org.junit.Rule
47-
import org.testng.annotations.Test
4837

4938

5039
@Composable
@@ -152,27 +141,3 @@ fun customizeAutofillHighlight() {
152141
}
153142
}
154143
// [END android_compose_autofill_6]
155-
156-
@get:Rule
157-
val rule = createComposeRule()
158-
@Test
159-
fun autofillHintTest(): Unit {
160-
val autofillHintString = "test autofill string"
161-
val TestTag = "semantics-test-tag"
162-
163-
// rule.setContent {
164-
// Surface {
165-
// TextField(
166-
// state = remember { TextFieldState() },
167-
// modifier = Modifier
168-
// .testTag(TestTag)
169-
// .semantics { contentType = autofillHintString }
170-
// )
171-
// }
172-
// }
173-
//
174-
// rule.onNodeWithTag(TestTag)
175-
// .assert(SemanticsMatcher.expectValue(
176-
// SemanticsProperties.ContentType, autofillHintString)
177-
// )
178-
}

compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private class ScaleIndicationNode(
240240
fun App() {
241241
}
242242

243-
@OptIn(ExperimentalMaterialApi::class, ExperimentalMaterial3Api::class)
243+
@OptIn(ExperimentalMaterial3Api::class)
244244
@Composable
245245
private fun LocalUseFallbackRippleImplementationExample() {
246246
// [START android_compose_userinteractions_localusefallbackrippleimplementation]
@@ -253,7 +253,7 @@ private fun LocalUseFallbackRippleImplementationExample() {
253253
}
254254

255255
// [START android_compose_userinteractions_localusefallbackrippleimplementation_app_theme]
256-
@OptIn(ExperimentalMaterialApi::class, ExperimentalMaterial3Api::class)
256+
@OptIn(ExperimentalMaterial3Api::class)
257257
@Composable
258258
fun MyAppTheme(content: @Composable () -> Unit) {
259259
CompositionLocalProvider(LocalUseFallbackRippleImplementation provides true) {

gradle/libs.versions.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ wear = "1.3.0"
6161
wearComposeFoundation = "1.4.0"
6262
wearComposeMaterial = "1.4.0"
6363
wearToolingPreview = "1.0.0"
64-
testng = "6.9.6"
65-
uiTestAndroid = "1.7.6"
66-
uiTestJunit4Android = "1.7.6"
6764

6865
[libraries]
6966
accompanist-adaptive = { module = "com.google.accompanist:accompanist-adaptive", version.ref = "accompanist" }
@@ -152,9 +149,6 @@ kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutine
152149
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
153150
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
154151
play-services-wearable = { module = "com.google.android.gms:play-services-wearable", version.ref = "playServicesWearable" }
155-
testng = { group = "org.testng", name = "testng", version.ref = "testng" }
156-
androidx-ui-test-android = { group = "androidx.compose.ui", name = "ui-test-android", version.ref = "uiTestAndroid" }
157-
androidx-ui-test-junit4-android = { group = "androidx.compose.ui", name = "ui-test-junit4-android", version.ref = "uiTestJunit4Android" }
158152

159153
[plugins]
160154
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }

0 commit comments

Comments
 (0)