layoutlib

Android Studio's layoutlib, packaged for Paparazzi

License

License

GroupId

GroupId

app.cash.paparazzi
ArtifactId

ArtifactId

layoutlib
Last Version

Last Version

4.0.0-alpha01-1a8ff9c
Release Date

Release Date

Type

Type

jar
Description

Description

layoutlib
Android Studio's layoutlib, packaged for Paparazzi
Project URL

Project URL

https://github.com/cashapp/paparazzi/
Source Code Management

Source Code Management

https://github.com/cashapp/paparazzi/

Download layoutlib

How to add to project

<!-- https://jarcasting.com/artifacts/app.cash.paparazzi/layoutlib/ -->
<dependency>
    <groupId>app.cash.paparazzi</groupId>
    <artifactId>layoutlib</artifactId>
    <version>4.0.0-alpha01-1a8ff9c</version>
</dependency>
// https://jarcasting.com/artifacts/app.cash.paparazzi/layoutlib/
implementation 'app.cash.paparazzi:layoutlib:4.0.0-alpha01-1a8ff9c'
// https://jarcasting.com/artifacts/app.cash.paparazzi/layoutlib/
implementation ("app.cash.paparazzi:layoutlib:4.0.0-alpha01-1a8ff9c")
'app.cash.paparazzi:layoutlib:jar:4.0.0-alpha01-1a8ff9c'
<dependency org="app.cash.paparazzi" name="layoutlib" rev="4.0.0-alpha01-1a8ff9c">
  <artifact name="layoutlib" type="jar" />
</dependency>
@Grapes(
@Grab(group='app.cash.paparazzi', module='layoutlib', version='4.0.0-alpha01-1a8ff9c')
)
libraryDependencies += "app.cash.paparazzi" % "layoutlib" % "4.0.0-alpha01-1a8ff9c"
[app.cash.paparazzi/layoutlib "4.0.0-alpha01-1a8ff9c"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Paparazzi

An Android library to render your application screens without a physical device or emulator.

See the project website for documentation and APIs.

Jetifier

If using Jetifier to migrate off Support libraries, add the following to your gradle.properties to exclude bundled Android dependencies.

android.jetifier.blacklist=android-base-common,common

Releases

Our change log has release history.

Using plugin application:

buildscript {
  repositories {
    mavenCentral()
    google()
  }
  dependencies {
    classpath 'app.cash.paparazzi:paparazzi-gradle-plugin:0.6.0'
  }
}

apply plugin: 'app.cash.paparazzi'

Using the plugins DSL:

plugins {
  id 'app.cash.paparazzi' version '0.6.0'
}

Snapshots of the development version are available in Sonatype's snapshots repository.

repositories {
  mavenCentral()
  maven {
    url 'https://oss.sonatype.org/content/repositories/snapshots/'
  }
}

Tasks

$ ./gradlew some-project:testDebug

Runs tests and generates an HTML report at some-project/build/reports/paparazzi/debug/ showing all test runs and snapshots.

$ ./gradlew some-project:recordPaparazziDebug

Saves snapshots as golden values to a predefined source-controlled location (default: src/test/snapshots).

$ ./gradlew some-project:verifyPaparazziDebug

Runs tests and verifies against previously-recorded golden values.

Check out the sample.

License

Copyright 2019 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
app.cash.paparazzi

Cash App

Versions

Version
4.0.0-alpha01-1a8ff9c
3.4.0