Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update showkase to v1.0.3 #148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update showkase to v1.0.3 #148

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 1, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.airbnb.android:showkase-processor 1.0.0-beta15 -> 1.0.3 age adoption passing confidence
com.airbnb.android:showkase 1.0.0-beta15 -> 1.0.3 age adoption passing confidence
com.airbnb.android:showkase-annotation 1.0.0-beta15 -> 1.0.3 age adoption passing confidence

Release Notes

airbnb/Showkase (com.airbnb.android:showkase-processor)

v1.0.3

Compare Source

This release contains the following changes and improvements

  • Stop exporting Showkase activity (#​355)
  • Clear guidance in the README on setting up Showkase for debug only builds (#​369)
  • Improvements to ensure incremental compilation works correctly as the warnings have been addressed (#​372, #​383)
  • Provide dark background for rendering Dark mode previews (#​385)
  • Upgraded Showkase to leverage Kotlin 1.9.23 & Compose Compiler 1.5.13 (#​389)

v1.0.2

Compare Source

I did a new release in order to revert a change in the previous one as I feared it would have some implications to the users. More details in this PR.

Other than that, the same change log applies. Adding it here as well so that the latest release has an easily accessible changelog.

  • De-dupe with the fully qualified function name #​315
  • Remove the Deprecation warning on generated module files when building #​339
  • Fix width incorrectly passed to showkaseHeightDp param in ShowkaseMetadata. #​336
  • Update kotlin to 1.8.10, xprocessing to 1.6.0-alpha01. This fixes the Dagger 2.48 incompatibility issue - https://github.com/airbnb/Showkase/issues/349
  • Upgrade compose version to 1.4.2 #​353
  • Additionally, there was some foundational work done to allow adding more information into the Showkase Browser (#​309 ). This is still work in progress so it's not necessarily usable just yet.

Finally, one thing you will notice is the change in the versioning scheme. I'm finally updating it since there was no real reason to continue with the "beta" versioning as it didn't signify maturity of the project by any means. We've been using this for over a couple years in production. This also fixes this issue (https://github.com/airbnb/Showkase/issues/308)

v1.0.1

Note: Use the 1.0.2 release instead as it reverts a change that could potentially have implications.

This release contains the following fixes -

  • De-dupe with the fully qualified function name #​315
  • Remove the Deprecation warning on generated module files when building #​339
  • Embed proguard rule for generated provider class #​341
  • Fix width incorrectly passed to showkaseHeightDp param in ShowkaseMetadata. #​336
  • Update kotlin to 1.8.10, xprocessing to 1.6.0-alpha01. This fixes the Dagger 2.48 incompatibility issue - https://github.com/airbnb/Showkase/issues/349
  • Upgrade compose version to 1.4.2 #​353
  • Additionally, there was some foundational work done to allow adding more information into the Showkase Browser (#​309 ). This is still work in progress so it's not necessarily usable just yet.

Finally, one thing you will notice is the change in the versioning scheme. I'm finally updating it since there was no real reason to continue with the "beta" versioning as it didn't signify maturity of the project by any means. We've been using this for over a couple years in production. This also fixes this issue (https://github.com/airbnb/Showkase/issues/308)

v1.0.0-beta18

Compare Source

You can now create another annotation class that's annotated with @Preview and Showkase will ensure that the @Preview properties are applied whenever you use the custom annotation. Here's an example

@​Preview(name = "Custom Preview One First", group = "Custom Previews")
@​Preview(name = "Custom Preview One Second", group = "Custom Previews")
annotation class MyCustomPreview

// This custom annotation can now be used to represent previews
@​MyCustomPreview
@​Composable
fun CustomAnnotationPreview() {
}

This was contributed by @​oas004 and required a lot of diligence 👏🏻

  • Experimental Added a new artifact showkase-screenshot-testing-paparazzi that provides a mechanism to automate screenshot testing for your codebase using Showkase + Paparazzi (https://github.com/airbnb/Showkase/pull/294).

Assuming that you were already using Showkase, you just need 3 lines of code in the test sourceset of your root module to automatically screenshot test all your previews in the default configuration.

@​ShowkaseScreenshot(rootShowkaseClass = YourShowkaseRootModuleClass::class)
abstract class MyPaparazziShowkaseScreenshotTest: PaparazziShowkaseScreenshotTest {
    companion object: PaparazziShowkaseScreenshotTest.CompanionObject
}

In our own usage, we've found issues with using Paparazzi when the codebase has a large number of screenshot and haven't quite figured out what's causing it (https://github.com/cashapp/paparazzi/issues/630). As a result, try at your own risk. Having said that, we are really keen on resolving the linked issue and deploying this. If you have any insights about this issue, please reach out!

  • Other misc documentation updates and fixes

v1.0.0-beta17

Compare Source

  • Optimized the code generation to be more performant (https://github.com/airbnb/Showkase/pull/284)
    • We hit an issue with Jacoco that pointed out how our final generated aggregator class had a heavy init method that caused a Jacoco task to fail at scale (1000+ previews). In addition, the root module can become a build time bottleneck as the codebase scales. In this release, we optimized the code generation by moving some of the code generation to the respective modules that have the previews as opposed to generating everything in the root module. This also allows us to leverage incremental compilation better. One nice side effect of this refactor is that your preview functions are now allowed to be internal instead of forcing you to be public. Please file issues if you notice any weird behavior after this refactor.
  • Let the IDE recognize generated code when using KSP (#​279 )
    • Some folks complained how the generated classes/methods weren't being detected by the IDE. This happens because the source generated by ksp specifically needs to be registered separately. The linked PR does it for the sample app and shows how you'd do that in your own codebase.
  • Fixed bug in getShowkaseMetadataFromPreview where the preview width was being set as the showkase metadata height (#​280)

Note: We discovered a bug in the 1.0.0-beta16 release hence not going to publish the release notes for it. Please use the 1.0.0-beta17 release instead.

v1.0.0-beta16

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/showkase branch from 0aa8d1c to cb97939 Compare July 23, 2022 11:32
@renovate renovate bot force-pushed the renovate/showkase branch 3 times, most recently from 478ecae to 298e420 Compare August 5, 2022 08:44
@renovate renovate bot force-pushed the renovate/showkase branch from 298e420 to d490c4b Compare August 8, 2022 19:27
@renovate renovate bot force-pushed the renovate/showkase branch from d490c4b to 2c89037 Compare September 7, 2022 13:51
@renovate renovate bot force-pushed the renovate/showkase branch 2 times, most recently from fff47e6 to a489a78 Compare September 16, 2022 18:21
@renovate renovate bot force-pushed the renovate/showkase branch from a489a78 to c7bcc46 Compare October 20, 2022 19:02
@renovate renovate bot force-pushed the renovate/showkase branch from c7bcc46 to 10a9290 Compare November 20, 2022 17:37
@renovate renovate bot force-pushed the renovate/showkase branch 2 times, most recently from a14944a to 8feecc4 Compare December 9, 2022 15:43
@renovate renovate bot force-pushed the renovate/showkase branch from 8feecc4 to 3ec8bfe Compare December 15, 2022 17:09
@renovate renovate bot force-pushed the renovate/showkase branch from 3ec8bfe to 9dd4b26 Compare January 3, 2023 13:31
@renovate renovate bot force-pushed the renovate/showkase branch 4 times, most recently from d5beaa2 to 646994c Compare March 1, 2023 18:13
@renovate renovate bot force-pushed the renovate/showkase branch from 646994c to aa0e188 Compare March 13, 2023 12:42
@renovate renovate bot force-pushed the renovate/showkase branch 2 times, most recently from d45a4b3 to 7afb8b0 Compare April 7, 2023 13:02
@renovate renovate bot changed the title Update showkase to v1.0.0-kotlin1.5.30-1 Update showkase to v1.0.2 Sep 19, 2023
@renovate renovate bot force-pushed the renovate/showkase branch from 7afb8b0 to f35beee Compare September 19, 2023 20:09
@renovate renovate bot force-pushed the renovate/showkase branch 3 times, most recently from 70420a9 to 7cb4747 Compare October 21, 2023 20:25
@renovate renovate bot force-pushed the renovate/showkase branch from 7cb4747 to bc79949 Compare June 4, 2024 04:44
@renovate renovate bot changed the title Update showkase to v1.0.2 Update showkase to v1.0.3 Jun 4, 2024
@renovate renovate bot force-pushed the renovate/showkase branch 2 times, most recently from 3f27317 to 27883ac Compare August 1, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants