-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle private previews for Custom annotations (#313)
* Handle private previews for Custom annotations The validation was not quite handled for the custom annotation processing steps and it had not passed the flag since it had a default argument. * Add comment to test and fix spelling misstake
- Loading branch information
Showing
8 changed files
with
129 additions
and
19 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
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
19 changes: 19 additions & 0 deletions
19
...e_function_with_private_custom_preview_annotation_compiles_with_flag/input/Composables.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,19 @@ | ||
package com.airbnb.android.showkase_processor_testing | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
|
||
|
||
@Preview( | ||
name = "large Screen", | ||
group = "device", | ||
) | ||
public annotation class DevicePreviews | ||
|
||
public class Composables { | ||
|
||
@DevicePreviews | ||
@Composable | ||
private fun Component() { | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ShowkaseMetadata_showkase_com_airbnb_android_showkase_processor_testing_devicepreviews.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,19 @@ | ||
// This is an auto-generated file. Please do not edit/modify this file. | ||
package com.airbnb.android.showkase | ||
|
||
import com.airbnb.android.showkase.`annotation`.ShowkaseMultiPreviewCodegenMetadata | ||
import kotlin.Unit | ||
|
||
public class ShowkaseMetadata_showkase_com_airbnb_android_showkase_processor_testing_devicepreviews | ||
{ | ||
@ShowkaseMultiPreviewCodegenMetadata( | ||
previewName = "large Screen", | ||
previewGroup = "device", | ||
supportTypeQualifiedName = "com.airbnb.android.showkase_processor_testing.DevicePreviews", | ||
showkaseWidth = -1, | ||
showkaseHeight = -1, | ||
packageName = "com.airbnb.android.showkase_processor_testing", | ||
) | ||
public fun Preview_0(): Unit { | ||
} | ||
} |
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