File tree Expand file tree Collapse file tree
common-test-utils/src/main/java/kasem/sm/common_test_utils
screen/ui-home/src/main/java/kasem/sm/ui_home Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ apply plugin: 'dagger.hilt.android.plugin'
2626
2727android {
2828 defaultConfig {
29- versionCode = 4
30- versionName = " 1.3 "
29+ versionCode = 5
30+ versionName = " 2.5 "
3131 applicationId " kasem.sm.slime"
3232 }
3333}
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22buildscript {
33 ext {
4- kspVersion = ' 1.7.20 -1.0.6 '
4+ kspVersion = ' 1.8.0 -1.0.8 '
55 }
66 repositories {
77 google()
Original file line number Diff line number Diff line change 44 */
55package kasem.sm.common_test_utils
66
7- import app.cash.turbine.FlowTurbine
7+ import app.cash.turbine.ReceiveTurbine
88import app.cash.turbine.test
99import com.google.common.truth.Truth
1010import kasem.sm.core.domain.Stage
@@ -24,7 +24,7 @@ infix fun Boolean.shouldBe(bool: Boolean) {
2424}
2525
2626suspend inline fun Flow<Stage>.shouldBeInOrder (
27- crossinline scope : suspend FlowTurbine <Stage >.() -> Unit
27+ crossinline scope : suspend ReceiveTurbine <Stage >.() -> Unit
2828) {
2929 test {
3030 scope()
Original file line number Diff line number Diff line change @@ -3,31 +3,31 @@ accompanist = "0.26.4-beta"
33annotation = " 1.5.0"
44coil = " 2.2.2"
55commonmark = " 0.19.0"
6- compose = " 1.3 .0-rc01 "
7- composeActivity = " 1.7.0-alpha01 "
8- composeCompiler = " 1.3.2 "
9- composeMaterial3 = " 1.0 .0-rc01 "
10- composeUiTest = " 1.3 .0-rc01 "
6+ compose = " 1.4 .0-alpha04 "
7+ composeActivity = " 1.7.0-alpha03 "
8+ composeCompiler = " 1.4.0 "
9+ composeMaterial3 = " 1.1 .0-alpha04 "
10+ composeUiTest = " 1.4 .0-alpha04 "
1111corektx = " 1.9.0"
1212coreTesting = " 2.1.0"
1313coroutines = " 1.6.4"
14- crypto = " 1.1.0-alpha03 "
15- destination = " 1.7.21 -beta"
16- dynamicLink = " 21.0.2 "
14+ crypto = " 1.1.0-alpha04 "
15+ destination = " 1.8.33 -beta"
16+ dynamicLink = " 21.1.0 "
1717espressoCore = " 3.5.0-beta01"
18- gradleplugin = " 7.2.1 "
18+ gradleplugin = " 7.4.0 "
1919glance = " 1.0.0-alpha05"
2020gms = " 4.3.10"
21- hilt = " 2.44"
21+ hilt = " 2.44.2 "
2222hiltNavigationCompose = " 1.0.0"
2323hiltWork = " 1.0.0"
2424javaxInject = " 1"
2525junit = " 4.13.2"
2626junitExt = " 1.1.4-beta01"
27- kotlin = " 1.7.20 "
28- ktor = " 2.1 .2"
27+ kotlin = " 1.8.0 "
28+ ktor = " 2.2 .2"
2929lifecycle = " 2.6.0-alpha02"
30- material = " 1.8 .0-alpha01"
30+ material = " 1.9 .0-alpha01"
3131mockk = " 1.13.2"
3232reflect = " 1.7.20"
3333room = " 2.5.0-beta01"
@@ -38,7 +38,7 @@ timber = "5.0.1"
3838truth = " 1.1.3"
3939turbine = " 0.11.0"
4040versionCheck = " 0.38.0"
41- work = " 2.8.0-beta01 "
41+ work = " 2.8.0-rc01 "
4242
4343[libraries ]
4444androidx-activity-compose = { module = " androidx.activity:activity-compose" , version.ref = " composeActivity" }
Original file line number Diff line number Diff line change 1- # Fri May 13 09:55:33 IST 2022
1+ # Tue Jan 24 20:16:08 IST 2023
22distributionBase =GRADLE_USER_HOME
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.5 -bin.zip
44distributionPath =wrapper/dists
55zipStorePath =wrapper/dists
66zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -81,18 +81,20 @@ internal fun HomeContent(
8181 navigateToSubscriptionScreen = navigateToSubscriptionScreen
8282 )
8383
84- item {
85- SlimeHeader (text = stringResource(id = R .string.daily_read_header))
86- }
84+ state.dailyReadArticle?.let {
85+ item {
86+ SlimeHeader (text = stringResource(id = R .string.daily_read_header))
87+ }
8788
88- item {
89- DailyReadArticle (
90- modifier = Modifier .semantics { testTag = " daily_read_article_view" },
91- article = state.dailyReadArticle,
92- imageLoader = imageLoader,
93- onArticleClick = onArticleClick,
94- onBookmarkClick = onBookmarkClick
95- )
89+ item {
90+ DailyReadArticle (
91+ modifier = Modifier .semantics { testTag = " daily_read_article_view" },
92+ article = state.dailyReadArticle,
93+ imageLoader = imageLoader,
94+ onArticleClick = onArticleClick,
95+ onBookmarkClick = onBookmarkClick
96+ )
97+ }
9698 }
9799
98100 item {
You can’t perform that action at this time.
0 commit comments