Skip to content

A Gradle plugin for decompiling bytecodes into Java codes. It helps us dive into Jetpack Compose, Kotlin Coroutine, and more.

License

Notifications You must be signed in to change notification settings

iamwent/decompiler-gradle-plugin

Repository files navigation

Decompiler Gradle Plugin

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.

Installation

  1. 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"
    }
}
  1. Apply the plugin to your app-level build script:
Kotlin
plugins {
    id("io.github.iamwent.decompiler")
}
Groovy
plugins {
    id 'io.github.iamwent.decompiler'
}
  1. Run the decompile gradle task, and check the Java codes in: app/build/decompiled
./gradlew :app:decompile

Credit

License

Apache 2.0. See LICENSE for more information.

About

A Gradle plugin for decompiling bytecodes into Java codes. It helps us dive into Jetpack Compose, Kotlin Coroutine, and more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages