Skip to content

Commit

Permalink
Update to Beta02 reintroducting state checks in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmaggi committed Sep 6, 2021
1 parent e27cb88 commit 540c3eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class DisplayFeaturesActivityTest {
)
}
}
onView(withId(R.id.state_update_log)).check(matches(withSubstring("state = FLAT")))
onView(withId(R.id.current_state)).check(matches(withSubstring("is not separated")))
onView(withId(R.id.current_state)).check(matches(withSubstring("Hinge is horizontal")))
}
Expand All @@ -100,6 +101,7 @@ class DisplayFeaturesActivityTest {
)
}
}
onView(withId(R.id.state_update_log)).check(matches(withSubstring("state = HALF_OPENED")))
onView(withId(R.id.current_state)).check(matches(withSubstring("are separated")))
onView(withId(R.id.current_state)).check(matches(withSubstring("Hinge is horizontal")))
}
Expand All @@ -122,6 +124,7 @@ class DisplayFeaturesActivityTest {
)
}
}
onView(withId(R.id.state_update_log)).check(matches(withSubstring("state = HALF_OPENED")))
onView(withId(R.id.current_state)).check(matches(withSubstring("are separated")))
onView(withId(R.id.current_state)).check(matches(withSubstring("Hinge is vertical")))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch

Expand All @@ -46,7 +45,6 @@ class DisplayFeaturesActivity : AppCompatActivity() {
private lateinit var binding: ActivityDisplayFeaturesBinding
private lateinit var windowInfoRepository: WindowInfoRepository

@ExperimentalCoroutinesApi
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

Expand Down
6 changes: 3 additions & 3 deletions WindowManager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
*/

buildscript {
ext.kotlin_version = '1.5.21'
ext.kotlin_version = '1.5.30'
ext.coroutines_version = '1.5.0'
ext.ktlint_version = '0.40.0'
ext.window_version = '1.0.0-beta01'
ext.window_version = '1.0.0-beta02'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down

0 comments on commit 540c3eb

Please sign in to comment.