Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/compose-resources-gallery/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("app.cash.paparazzi") version "1.3.5" apply false
id("org.jetbrains.compose") apply false
}

Expand Down
3 changes: 1 addition & 2 deletions samples/compose-resources-gallery/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ log() {
echo "\033[0;32m> $1\033[0m"
}

./gradlew clean assembleDebug
./gradlew clean assembleDebug verifyPaparazziDebug
log "compose-resources-gallery android success"

./gradlew clean jvmJar
Expand Down Expand Up @@ -39,4 +39,3 @@ else
)
log "compose-resources-gallery ios xcode success"
fi

1 change: 1 addition & 0 deletions samples/compose-resources-gallery/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
id("com.android.library")
id("app.cash.paparazzi")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("dev.icerock.mobile.multiplatform-resources")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright 2026 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

package com.myapplication.common

import androidx.compose.material.Text
import app.cash.paparazzi.Paparazzi
import com.icerockdev.library.MR
import com.icerockdev.library.hello_world
import dev.icerock.moko.resources.compose.stringResource
import org.junit.Rule
import org.junit.Test

class MokoResourcesPaparazziTest {
@get:Rule
val paparazzi = Paparazzi()

@Test
fun rendersGeneratedStringResource() {
paparazzi.snapshot {
Text(text = stringResource(MR.strings.hello_world))
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading