airbnb / Showkase

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
https://medium.com/airbnb-engineering/introducing-showkase-a-library-to-organize-discover-and-visualize-your-jetpack-compose-elements-d5c34ef01095
Apache License 2.0
2.11k stars 107 forks source link

ShowkaseProcessorException #282

Closed Faiz882 closed 1 year ago

Faiz882 commented 1 year ago

can you please help me to resolve this issue ? com.airbnb.android.showkase.processor.exceptions.ShowkaseProcessorException: The methods annotated with ShowkaseComposable can't be private as Showkase won't be able to access them otherwise.

oas004 commented 1 year ago

Hey @Faiz882 I think this error indicates that you have added a private function that is either annotated with @Preview or @ShowkaseComposable in a module that has showkase as a dependency. In the next release of Showkase we are adding a compiler flag that you can set to allow this behaviour. However, in the current release, this will cause an error at compile time Here is a link to the PR that allows this: https://github.com/airbnb/Showkase/pull/261

Faiz882 commented 1 year ago

Hi @oas004 This issue has been resolved. Now i am facing an issue while integrating in my own project. can you please checked the below image and identify why this issue is occurring?

image

oas004 commented 1 year ago

From the picture it might be this issue : https://github.com/airbnb/Showkase/pull/258

This will be released in the next release as well I believe.

However, it is hard to tell without seeing the code. If you provide a sample I can have a look of course 😊

Faiz882 commented 1 year ago

Do you think it's due to multiple flavors ?

Faiz882 commented 1 year ago

@oas004 Actually I am using 4 different flavors e.g patient, doctor, patientBeta and doctorBeta. Current my build variant is patient , so is there any possibility to occurring this issue due to multiple flavors? I have used same code in testSampleProject. Everything is working fine in that project.

oas004 commented 1 year ago

I think it is the issue I posted because of the indentation 😊

Faiz882 commented 1 year ago

Okay Thank you Noted