From 84a106b8b3d10c0d302abb83518e3b43e8ce7db6 Mon Sep 17 00:00:00 2001 From: Naveen Kumar Kuppan Date: Mon, 11 Mar 2024 23:04:01 +0100 Subject: [PATCH] Updating gradle plugin --- .../buildsrc/extensions/AndroidConfigExt.kt | 6 +++--- .../buildsrc/extensions/CompilerExt.kt | 2 +- .../account/list/AccountListScreenKtTest.kt | 16 ++++++++++++++++ gradle/libs.versions.toml | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 22 insertions(+), 6 deletions(-) diff --git a/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/AndroidConfigExt.kt b/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/AndroidConfigExt.kt index 418087e4..00f2ec5f 100644 --- a/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/AndroidConfigExt.kt +++ b/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/AndroidConfigExt.kt @@ -66,7 +66,7 @@ fun ApplicationExtension.configureAndroidAppVersion() { } } -fun Project.configureTestOptions(extension: CommonExtension<*, *, *, *, *>) { +fun Project.configureTestOptions(extension: CommonExtension<*, *, *, *, *, *>) { extension.apply { testOptions { unitTests { @@ -77,7 +77,7 @@ fun Project.configureTestOptions(extension: CommonExtension<*, *, *, *, *>) { } } -fun Project.configureAndroidCompose(extension: CommonExtension<*, *, *, *, *>) { +fun Project.configureAndroidCompose(extension: CommonExtension<*, *, *, *, *, *>) { extension.apply { buildFeatures { compose = true @@ -104,7 +104,7 @@ fun Project.configureAndroidCompose(extension: CommonExtension<*, *, *, *, *>) { } } -fun CommonExtension<*, *, *, *, *>.configureBuildFeatures() { +fun CommonExtension<*, *, *, *, *, *>.configureBuildFeatures() { (buildFeatures as? LibraryBuildFeatures)?.apply { dataBinding = true viewBinding = true diff --git a/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/CompilerExt.kt b/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/CompilerExt.kt index 82f07d96..1dde4e06 100644 --- a/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/CompilerExt.kt +++ b/build-logic/convention/src/main/java/com/naveenapps/expensemanager/buildsrc/extensions/CompilerExt.kt @@ -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 diff --git a/feature/account/src/androidTest/kotlin/com/naveenapps/expensemanager/feature/account/list/AccountListScreenKtTest.kt b/feature/account/src/androidTest/kotlin/com/naveenapps/expensemanager/feature/account/list/AccountListScreenKtTest.kt index 7fc92527..fdeed9a0 100644 --- a/feature/account/src/androidTest/kotlin/com/naveenapps/expensemanager/feature/account/list/AccountListScreenKtTest.kt +++ b/feature/account/src/androidTest/kotlin/com/naveenapps/expensemanager/feature/account/list/AccountListScreenKtTest.kt @@ -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) + } } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7fd3a80e..74893668 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a3638774..744c64d1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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