Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Preview Driven Development

Preview Driven Development

Here are the slides for my talk at Android Worldwide.

Rikin Marfatia

April 28, 2021
Tweet

More Decks by Rikin Marfatia

Other Decks in Programming

Transcript

  1. Rikin Marfatia — Android @ Pinterest — @heyrikin Preview Driven

    Development™ Avoid build times at all cost!
  2. Agenda Compose + Previews 101 Previews —> Isolated Features Dependency

    Fakes Gradle Strategy for Previews Real World Example
  3. Isolated Features Built “isolated” from the rest of the application

    Simulate inputs Stub out side effects + outputs
  4. Mini Apps (Sample Apps) Run each feature as an app

    Composition of features Setup for modularization
  5. Gradle Modules — After App Feature NetworkLive Common Feature Feature

    Network FeaturePreview FeaturePreview FeaturePreview
  6. Interface + Live Modules App Feature NetworkLive Common Feature Feature

    Network FeaturePreview FeaturePreview FeaturePreview
  7. Takeways Previews are extremely powerful, start using them Separate interface/fakes

    + implementation in Gradle Having fast deployable features is AWESOME Long build times SUCK
  8. How to apply this today? - Gradle structure works without

    Compose / Previews - Ralf Wondratschek — Android at Square - Start Creating Fakes - Preparing for Compose - Adam Bennet — Migrating your design system
  9. Credits / Resources - Point-Free - Designing Dependencies - Modeled

    my talk after this series - Amazing resource - Attacking Build Times with Sample Apps - Bill Phillips @ Cash App - Demo Application Code - https:#//github.com/Rahkeen/Hail