A Gradle plugin for decompiling bytecodes into Java codes. It helps us dive into Jetpack Compose, Kotlin Coroutine, and more.
The plugin was developed for research and learning purposes, utilizing the Java Decompiler Engine.
- Add the plugin to your top-level build script:
plugins
block:
Kotlin
plugins {
id("io.github.iamwent.decompiler") version "0.2.0"
}
Groovy
```groovy plugins { id "com.github.ben-manes.versions" version "$version" } ```or via the
buildscript
block:
Kotlin
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("io.github.iamwent.decompiler:decompiler-gradle-plugin:$version")
}
}
Groovy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath "io.github.iamwent.decompiler:decompiler-gradle-plugin:$version"
}
}
- Apply the plugin to your app-level build script:
Kotlin
plugins {
id("io.github.iamwent.decompiler")
}
Groovy
plugins {
id 'io.github.iamwent.decompiler'
}
- Run the
decompile
gradle task, and check the Java codes in:app/build/decompiled
./gradlew :app:decompile
- IntelliJ IDEA: Java Decompiler Engine
- takahirom: decomposer
Apache 2.0. See LICENSE for more information.