Skip to content

Commit

Permalink
Updating gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuppan committed Mar 11, 2024
1 parent 56fcb4d commit 84a106b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fun ApplicationExtension.configureAndroidAppVersion() {
}
}

fun Project.configureTestOptions(extension: CommonExtension<*, *, *, *, *>) {
fun Project.configureTestOptions(extension: CommonExtension<*, *, *, *, *, *>) {
extension.apply {
testOptions {
unitTests {
Expand All @@ -77,7 +77,7 @@ fun Project.configureTestOptions(extension: CommonExtension<*, *, *, *, *>) {
}
}

fun Project.configureAndroidCompose(extension: CommonExtension<*, *, *, *, *>) {
fun Project.configureAndroidCompose(extension: CommonExtension<*, *, *, *, *, *>) {
extension.apply {
buildFeatures {
compose = true
Expand All @@ -104,7 +104,7 @@ fun Project.configureAndroidCompose(extension: CommonExtension<*, *, *, *, *>) {
}
}

fun CommonExtension<*, *, *, *, *>.configureBuildFeatures() {
fun CommonExtension<*, *, *, *, *, *>.configureBuildFeatures() {
(buildFeatures as? LibraryBuildFeatures)?.apply {
dataBinding = true
viewBinding = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

val JAVA_VERSION = JavaVersion.VERSION_17

fun CommonExtension<*, *, *, *, *>.configureJVM() {
fun CommonExtension<*, *, *, *, *, *>.configureJVM() {
this.compileOptions {
sourceCompatibility = JAVA_VERSION
targetCompatibility = JAVA_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,20 @@ class AccountListScreenKtTest {
composeTestRule.onNodeWithTag("Create").assertIsDisplayed()
composeTestRule.onAllNodesWithTag("Item").assertCountEquals(5)
}

@Test
fun showAccountListEmptyStateWhenNoItemsAvailable() {
composeTestRule.setContent {
AccountListContentView(
accountUiState = UiState.Empty,
showReOrder = true,
openAccountReOrderScreen = {},
closePage = {},
openCreateScreen = {}
)
}

composeTestRule.onNodeWithTag("Create").assertIsDisplayed()
composeTestRule.onAllNodesWithTag("Item").assertCountEquals(0)
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
accompanist = "0.32.0"
androidDesugarJdkLibs = "2.0.4"
androidGradlePlugin = "8.2.2"
androidGradlePlugin = "8.3.0"
androidxActivity = "1.8.2"
androidxAppCompat = "1.6.1"
androidxMaterial = "1.11.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 84a106b

Please sign in to comment.