File tree Expand file tree Collapse file tree 14 files changed +76
-218
lines changed
app/src/main/java/com/example/jetcaster/ui/home
androidTest/java/com/example/jetsnack
main/java/com/example/jetsnack/ui/theme Expand file tree Collapse file tree 14 files changed +76
-218
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ androidx-activity-compose = "1.8.2"
9
9
androidx-appcompat = " 1.6.1"
10
10
androidx-benchmark = " 1.2.0"
11
11
androidx-benchmark-junit4 = " 1.2.1"
12
- androidx-compose-bom = " 2024.03 .00"
12
+ androidx-compose-bom = " 2024.04 .00"
13
13
androidx-constraintlayout = " 1.0.1"
14
- androidx-corektx = " 1.13.0-beta01 "
14
+ androidx-corektx = " 1.13.0-rc01 "
15
15
androidx-glance = " 1.0.0"
16
16
androidx-lifecycle-compose = " 2.7.0"
17
17
androidx-lifecycle-runtime-compose = " 2.7.0"
@@ -21,7 +21,7 @@ androidx-test = "1.5.0"
21
21
androidx-test-espresso = " 3.5.1"
22
22
androidx-test-ext-junit = " 1.1.5"
23
23
androidx-test-ext-truth = " 1.5.0"
24
- androidx-window = " 1.3.0-alpha03 "
24
+ androidx-window = " 1.3.0-beta01 "
25
25
androidxHiltNavigationCompose = " 1.1.0"
26
26
androix-test-uiautomator = " 2.2.0"
27
27
coil = " 2.4.0"
@@ -45,7 +45,7 @@ material = "1.11.0"
45
45
# @keep
46
46
minSdk = " 21"
47
47
okhttp = " 4.11.0"
48
- robolectric = " 4.11 .1"
48
+ robolectric = " 4.12 .1"
49
49
rome = " 1.18.0"
50
50
room = " 2.6.0"
51
51
secrets = " 2.0.1"
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ androidx-activity-compose = "1.8.2"
9
9
androidx-appcompat = " 1.6.1"
10
10
androidx-benchmark = " 1.2.0"
11
11
androidx-benchmark-junit4 = " 1.2.1"
12
- androidx-compose-bom = " 2024.03 .00"
12
+ androidx-compose-bom = " 2024.04 .00"
13
13
androidx-constraintlayout = " 1.0.1"
14
- androidx-corektx = " 1.13.0-beta01 "
14
+ androidx-corektx = " 1.13.0-rc01 "
15
15
androidx-glance = " 1.0.0"
16
16
androidx-lifecycle-compose = " 2.7.0"
17
17
androidx-lifecycle-runtime-compose = " 2.7.0"
@@ -21,7 +21,7 @@ androidx-test = "1.5.0"
21
21
androidx-test-espresso = " 3.5.1"
22
22
androidx-test-ext-junit = " 1.1.5"
23
23
androidx-test-ext-truth = " 1.5.0"
24
- androidx-window = " 1.3.0-alpha03 "
24
+ androidx-window = " 1.3.0-beta01 "
25
25
androidxHiltNavigationCompose = " 1.1.0"
26
26
androix-test-uiautomator = " 2.2.0"
27
27
coil = " 2.4.0"
@@ -45,7 +45,7 @@ material = "1.11.0"
45
45
# @keep
46
46
minSdk = " 21"
47
47
okhttp = " 4.11.0"
48
- robolectric = " 4.11 .1"
48
+ robolectric = " 4.12 .1"
49
49
rome = " 1.18.0"
50
50
room = " 2.6.0"
51
51
secrets = " 2.0.1"
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ androidx-activity-compose = "1.8.2"
9
9
androidx-appcompat = " 1.6.1"
10
10
androidx-benchmark = " 1.2.0"
11
11
androidx-benchmark-junit4 = " 1.2.1"
12
- androidx-compose-bom = " 2024.03 .00"
12
+ androidx-compose-bom = " 2024.04 .00"
13
13
androidx-constraintlayout = " 1.0.1"
14
- androidx-corektx = " 1.13.0-beta01 "
14
+ androidx-corektx = " 1.13.0-rc01 "
15
15
androidx-glance = " 1.0.0"
16
16
androidx-lifecycle-compose = " 2.7.0"
17
17
androidx-lifecycle-runtime-compose = " 2.7.0"
@@ -21,7 +21,7 @@ androidx-test = "1.5.0"
21
21
androidx-test-espresso = " 3.5.1"
22
22
androidx-test-ext-junit = " 1.1.5"
23
23
androidx-test-ext-truth = " 1.5.0"
24
- androidx-window = " 1.3.0-alpha03 "
24
+ androidx-window = " 1.3.0-beta01 "
25
25
androidxHiltNavigationCompose = " 1.1.0"
26
26
androix-test-uiautomator = " 2.2.0"
27
27
coil = " 2.4.0"
@@ -45,7 +45,7 @@ material = "1.11.0"
45
45
# @keep
46
46
minSdk = " 21"
47
47
okhttp = " 4.11.0"
48
- robolectric = " 4.11 .1"
48
+ robolectric = " 4.12 .1"
49
49
rome = " 1.18.0"
50
50
room = " 2.6.0"
51
51
secrets = " 2.0.1"
Original file line number Diff line number Diff line change @@ -31,14 +31,12 @@ import androidx.compose.foundation.layout.PaddingValues
31
31
import androidx.compose.foundation.layout.Row
32
32
import androidx.compose.foundation.layout.Spacer
33
33
import androidx.compose.foundation.layout.WindowInsets
34
- import androidx.compose.foundation.layout.WindowInsetsSides
35
34
import androidx.compose.foundation.layout.fillMaxSize
36
35
import androidx.compose.foundation.layout.fillMaxWidth
37
36
import androidx.compose.foundation.layout.height
38
- import androidx.compose.foundation.layout.only
37
+ import androidx.compose.foundation.layout.navigationBars
39
38
import androidx.compose.foundation.layout.padding
40
39
import androidx.compose.foundation.layout.size
41
- import androidx.compose.foundation.layout.systemBars
42
40
import androidx.compose.foundation.layout.width
43
41
import androidx.compose.foundation.layout.windowInsetsPadding
44
42
import androidx.compose.foundation.lazy.LazyColumn
@@ -386,10 +384,7 @@ private fun HomeScreen(
386
384
val coroutineScope = rememberCoroutineScope()
387
385
val snackbarHostState = remember { SnackbarHostState () }
388
386
HomeScreenBackground (
389
- modifier = modifier
390
- .windowInsetsPadding(
391
- WindowInsets .systemBars.only(WindowInsetsSides .Horizontal )
392
- )
387
+ modifier = modifier.windowInsetsPadding(WindowInsets .navigationBars)
393
388
) {
394
389
Scaffold (
395
390
topBar = {
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ androidx-activity-compose = "1.8.2"
9
9
androidx-appcompat = " 1.6.1"
10
10
androidx-benchmark = " 1.2.3"
11
11
androidx-benchmark-junit4 = " 1.2.3"
12
- androidx-compose-bom = " 2024.03 .00"
12
+ androidx-compose-bom = " 2024.04 .00"
13
13
androidx-compose-material3-adaptive = " 1.0.0-alpha10"
14
14
androidx-constraintlayout = " 1.0.1"
15
- androidx-corektx = " 1.13.0-beta01 "
15
+ androidx-corektx = " 1.13.0-rc01 "
16
16
androidx-glance = " 1.0.0"
17
17
androidx-lifecycle-runtime = " 2.7.0"
18
18
androidx-lifecycle-compose = " 2.7.0"
@@ -25,7 +25,7 @@ androidx-test-ext-junit = "1.1.5"
25
25
androidx-test-ext-truth = " 1.5.0"
26
26
androidx-tv-foundation = " 1.0.0-alpha10"
27
27
androidx-tv-material = " 1.0.0-alpha10"
28
- androidx-window = " 1.3.0-alpha03 "
28
+ androidx-window = " 1.3.0-beta01 "
29
29
androidxHiltNavigationCompose = " 1.2.0"
30
30
androix-test-uiautomator = " 2.3.0"
31
31
coil = " 2.5.0"
@@ -49,7 +49,7 @@ material = "1.11.0"
49
49
# @keep
50
50
minSdk = " 21"
51
51
okhttp = " 4.12.0"
52
- robolectric = " 4.11 .1"
52
+ robolectric = " 4.12 .1"
53
53
rome = " 1.18.0"
54
54
room = " 2.6.1"
55
55
secrets = " 2.0.1"
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ androidx-activity-compose = "1.8.2"
9
9
androidx-appcompat = " 1.6.1"
10
10
androidx-benchmark = " 1.2.0"
11
11
androidx-benchmark-junit4 = " 1.2.1"
12
- androidx-compose-bom = " 2024.03 .00"
12
+ androidx-compose-bom = " 2024.04 .00"
13
13
androidx-constraintlayout = " 1.0.1"
14
- androidx-corektx = " 1.13.0-beta01 "
14
+ androidx-corektx = " 1.13.0-rc01 "
15
15
androidx-glance = " 1.0.0"
16
16
androidx-lifecycle-compose = " 2.7.0"
17
17
androidx-lifecycle-runtime-compose = " 2.7.0"
@@ -21,7 +21,7 @@ androidx-test = "1.5.0"
21
21
androidx-test-espresso = " 3.5.1"
22
22
androidx-test-ext-junit = " 1.1.5"
23
23
androidx-test-ext-truth = " 1.5.0"
24
- androidx-window = " 1.3.0-alpha03 "
24
+ androidx-window = " 1.3.0-beta01 "
25
25
androidxHiltNavigationCompose = " 1.1.0"
26
26
androix-test-uiautomator = " 2.2.0"
27
27
coil = " 2.4.0"
@@ -45,7 +45,7 @@ material = "1.11.0"
45
45
# @keep
46
46
minSdk = " 21"
47
47
okhttp = " 4.11.0"
48
- robolectric = " 4.11 .1"
48
+ robolectric = " 4.12 .1"
49
49
rome = " 1.18.0"
50
50
room = " 2.6.0"
51
51
secrets = " 2.0.1"
Original file line number Diff line number Diff line change @@ -121,4 +121,5 @@ dependencies {
121
121
androidTestImplementation(libs.androidx.test.ext.junit)
122
122
androidTestImplementation(libs.kotlinx.coroutines.test)
123
123
androidTestImplementation(libs.androidx.compose.ui.test)
124
+ androidTestImplementation(libs.androidx.compose.ui.test.junit4)
124
125
}
Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ import androidx.compose.ui.test.assertIsDisplayed
20
20
import androidx.compose.ui.test.junit4.createAndroidComposeRule
21
21
import androidx.compose.ui.test.onNodeWithText
22
22
import androidx.compose.ui.test.performClick
23
- import com.example.jetsnack.ui.JetsnackApp
24
23
import com.example.jetsnack.ui.MainActivity
25
- import org.junit.Before
26
24
import org.junit.Rule
27
25
import org.junit.Test
28
26
@@ -31,13 +29,6 @@ class AppTest {
31
29
@get:Rule
32
30
val composeTestRule = createAndroidComposeRule<MainActivity >()
33
31
34
- @Before
35
- fun setUp () {
36
- composeTestRule.setContent {
37
- JetsnackApp ()
38
- }
39
- }
40
-
41
32
@Test
42
33
fun app_launches () {
43
34
// Check app launches at the correct destination
You can’t perform that action at this time.
0 commit comments