Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.AndroidDeveloperLB:WebpifyYourAndroidApp:'
}
dependencies {
implementation("com.github.AndroidDeveloperLB:WebpifyYourAndroidApp:")
}
<dependency>
<groupId>com.github.AndroidDeveloperLB</groupId>
<artifactId>WebpifyYourAndroidApp</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.AndroidDeveloperLB" % "WebpifyYourAndroidApp" % ""
:dependencies [[com.github.AndroidDeveloperLB/WebpifyYourAndroidApp ""]]
A small tool to convert your app's png&jpg image files into WebP when possible
Sample video:
If you use Windows OS, just run the executable jar file that's inside the repo, inside "Release\WindowsOs". Then, drag the file/s&folder/s into the app, or put the paths of them into the textBox, choose the settings you wish, and press the conversion button ("do it").
If you use MacOs or Linux (which I haven't tried), here's what you should probably do:
I hope that this tool will be useful for all Android developers. I've also tried to suggest having such a tool within the IDE itself:
https://code.google.com/p/android/issues/detail?id=202923