Skip to content

Commit fb9f5e5

Browse files
committed
Fix build errors for successful ./gradlew:build
1 parent db4df36 commit fb9f5e5

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="black">#FF000000</color>
4+
</resources>

demos/meditation/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ dependencies {
1818

1919
addComposeOfficialDependencies()
2020
addCoreAndroidUiDependencies()
21+
22+
// Test dependencies
23+
testImplementation("junit:junit:4.13.2")
24+
androidTestImplementation("androidx.test.ext:junit:1.1.5")
2125
}

demos/meditation/src/main/java/com/guru/composecookbook/meditation/ui/component/DailyThoughtsItem.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import androidx.compose.foundation.Image
44
import androidx.compose.foundation.background
55
import androidx.compose.foundation.layout.Arrangement
66
import androidx.compose.foundation.layout.Box
7-
import androidx.compose.foundation.layout.BoxWithConstraints
7+
88
import androidx.compose.foundation.layout.Column
99
import androidx.compose.foundation.layout.Row
1010
import androidx.compose.foundation.layout.fillMaxSize
@@ -34,7 +34,7 @@ import com.guru.composecookbook.meditation.ui.theme.dp10
3434
fun DailyThoughtsItem(
3535
dailyThought: DailyThought
3636
) {
37-
BoxWithConstraints(
37+
Box(
3838
modifier = Modifier
3939
.clip(RoundedCornerShape(dp10))
4040
.background(color = DarkBlue)

demos/meditation/src/main/java/com/guru/composecookbook/meditation/ui/screen/HomeScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fun TopicSection(topicList: List<Topic>) {
307307
)
308308
spacerHeight10()
309309
val itemSize: Dp = (LocalConfiguration.current.screenWidthDp.dp / 2) - 23.dp
310-
StaggeredVerticalGrid(maxColumnWidth = 250.dp){
310+
StaggeredVerticalGrid(maxColumnWidth = 250.dp) {
311311
topicList.forEachIndexed { index, _ ->
312312
TopicItem(topic = topicList[index], itemSize)
313313
}

templates/pinlock/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<application>
55
<activity
6-
android:name=".BiometricActivity"
6+
android:name="com.guru.pinlock.BiometricActivity"
77
android:exported="true"
88
android:theme="@style/Theme.Transparent" />
99
</application>

0 commit comments

Comments
 (0)