Gradle
Step 1: Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2: Add the dependency The following installation will add all the modules from this library:
dependencies {
implementation 'com.github.sukhai:forest:1.3.0'
}
You can also selectively install the module you want from this library:
dependencies {
implementation 'com.github.sukhai.forest:forest:1.3.0'
// Note: You will not have DebugTree if you do not import this module
implementation 'com.github.sukhai.forest:forest-android:1.3.0'
}
Maven
Step 1: Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Step 2: Add the dependency The following installation will add all the modules from this library:
<dependency>
<groupId>com.github.sukhai</groupId>
<artifactId>forest</artifactId>
<version>1.3.0</version>
</dependency>
You can also selectively install the module you want from this library:
<dependency>
<groupId>com.github.sukhai.forest</groupId>
<artifactId>forest</artifactId>
<version>1.3.0</version>
</dependency>
<!-- Note: You will not have DebugTree if you do not import this module -->
<dependency>
<groupId>com.github.sukhai.forest</groupId>
<artifactId>forest-android</artifactId>
<version>1.3.0</version>
</dependency>
Next Step
- Learn about how to use Forest by visiting the Getting Started page.
- Using Forest for Java application? Visit Java Usage to learn more about how you can use this library for your Java application.