Search Gradle plugins

io.github.aleksrychkov.methodhook

An Android Gradle plugin to inject method call at the beginning and end of methods in Android application at compile time

https://github.com/aleksrychkov/android-method-hook-plugin

Sources: https://github.com/aleksrychkov/android-method-hook-plugin.git

Version 0.3 (latest)

Created 09 November 2024.

An Android Gradle plugin to inject method call at the beginning and end of methods in Android application at compile time

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.aleksrychkov.methodhook") version "0.3"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.aleksrychkov.methodhook:io.github.aleksrychkov.methodhook.gradle.plugin:0.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.aleksrychkov.methodhook")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.aleksrychkov.methodhook:io.github.aleksrychkov.methodhook.gradle.plugin:0.3")
      }
    }
    
    apply(plugin = "io.github.aleksrychkov.methodhook")
  • Applying plugins to all subprojects .