Dagger Browser Processor

DaggerBrowser

License

License

Categories

Categories

Dagger Application Layer Libs Dependency Injection
GroupId

GroupId

com.snap.daggerbrowser
ArtifactId

ArtifactId

daggerbrowser-processor
Last Version

Last Version

0.7
Release Date

Release Date

Type

Type

jar
Description

Description

Dagger Browser Processor
DaggerBrowser
Project URL

Project URL

http://github.com/snapchat/dagger-browser/
Source Code Management

Source Code Management

http://github.com/snapchat/dagger-browser/

Download daggerbrowser-processor

How to add to project

<!-- https://jarcasting.com/artifacts/com.snap.daggerbrowser/daggerbrowser-processor/ -->
<dependency>
    <groupId>com.snap.daggerbrowser</groupId>
    <artifactId>daggerbrowser-processor</artifactId>
    <version>0.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.snap.daggerbrowser/daggerbrowser-processor/
implementation 'com.snap.daggerbrowser:daggerbrowser-processor:0.7'
// https://jarcasting.com/artifacts/com.snap.daggerbrowser/daggerbrowser-processor/
implementation ("com.snap.daggerbrowser:daggerbrowser-processor:0.7")
'com.snap.daggerbrowser:daggerbrowser-processor:jar:0.7'
<dependency org="com.snap.daggerbrowser" name="daggerbrowser-processor" rev="0.7">
  <artifact name="daggerbrowser-processor" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.snap.daggerbrowser', module='daggerbrowser-processor', version='0.7')
)
libraryDependencies += "com.snap.daggerbrowser" % "daggerbrowser-processor" % "0.7"
[com.snap.daggerbrowser/daggerbrowser-processor "0.7"]

Dependencies

runtime (6)

Group / Artifact Type Version
com.google.dagger : dagger-spi jar 2.25.4
com.google.dagger : dagger jar 2.25.4
com.squareup.moshi : moshi jar 1.9.2
com.squareup.moshi : moshi-kotlin jar 1.9.2
com.squareup.moshi : moshi-adapters jar 1.9.2
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.61

Project Modules

There are no modules declared in this project.

Dagger Browser

Dagger Browser is a progressive web app for easily navigating a project's Dagger graph. The graph data is populated from a Dagger SPI plugin, and the browser is built using CRA (create-react-app) with Typescript.

Trying a sample

Check out the demo site built from the open source Plaid app.

The plugin/sample directory contains a fork of a simple example from the Dagger repo.

You can run ./run.sh to generate the dagger components manifest for this example and display in the Dagger Browser.

Using Dagger Browser in your app

To build a Dagger Browser site for your project, you'll need to generate json files for your project's Dagger components.

To get started:

  1. Look up the latest version of the processor plugin in Maven Central:

  1. Add a dependency on com.snap.daggerbrowser:daggerbrowser-processor to any Gradle modules in your project that process Dagger components:
allprojects {
  repositories {
    mavenCentral()
  }
}
dependencies {
  kapt "com.snap.daggerbrowser:daggerbrowser-processor:LATEST_VERSION"
}  
  1. Build your project. The plugin will generate json files for each Dagger component.

  2. Use scripts/mkmanifest.sh to aggregate the component json files into a ComponentsManifest.json.

  3. Open a Dagger Browser instance, and drag-and-drop your ComponentsManifest.json file to load it.

  4. Alternatively, build a Dagger Browser instance from source. Checkout out the dagger-browser project

$: git clone [email protected]:Snapchat/dagger-browser.git
  1. Build Dagger Browser using your generated json files:
cd dagger-browser
./run.sh ../my_project/
com.snap.daggerbrowser

Snap Inc.

Snap Inc. is a camera company.

Versions

Version
0.7
0.6