-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make internal snapshots generation based on experimental snapshot pro…
…perty (#92) * Make internal snapshots generation based on experimental snapshot property * Fix to pass extension values * Fix test * Lint * Add tests for arg * Detekt
- Loading branch information
Showing
14 changed files
with
105 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...l_function_with_two_previews_produces_no_snapshots_without_arg/input/FontScalePreviews.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package PreviewProcessorTest.multipreview_internal_function_with_two_previews_produces_no_snapshots_without_arg.input | ||
|
||
import androidx.compose.ui.tooling.preview.Preview | ||
|
||
@Preview( | ||
name = "Small font", | ||
fontScale = 0.5f, | ||
) | ||
@Preview( | ||
name = "Large font", | ||
fontScale = 1.5f, | ||
) | ||
annotation class FontScalePreviews |
8 changes: 8 additions & 0 deletions
8
...ction_with_two_previews_produces_no_snapshots_without_arg/input/MultiPreviewComposable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package PreviewProcessorTest.multipreview_internal_function_with_two_previews_produces_no_snapshots_without_arg.input | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@FontScalePreviews | ||
@Composable | ||
internal fun MultiPreviewComposable() { | ||
} |
9 changes: 0 additions & 9 deletions
9
...nternal_function_with_two_previews_produces_two_snapshots/input/MultiPreviewComposable.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
..._two_snapshots/input/FontScalePreviews.kt → ...shots_with_arg/input/FontScalePreviews.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...unction_with_two_previews_produces_two_snapshots_with_arg/input/MultiPreviewComposable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package PreviewProcessorTest.multipreview_internal_function_with_two_previews_produces_two_snapshots_with_arg.input | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@FontScalePreviews | ||
@Composable | ||
internal fun MultiPreviewComposable() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...ction_with_internal_preview_produces_no_snapshot_test_without_arg/input/TestComposable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package PreviewProcessorTest.standalone_preview_function_with_internal_preview_produces_no_snapshot_test_without_arg.input | ||
|
||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.runtime.Composable | ||
|
||
@Preview | ||
@Composable | ||
internal fun TestComposable() { | ||
} |
2 changes: 1 addition & 1 deletion
2
...one_snapshot_test/input/TestComposable.kt → ...hot_test_with_arg/input/TestComposable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters