Search Gradle plugins

com.dreamgyf.android.fastinflate

Parse the layout xml file at compile time, and convert the reflection instantiation in LayoutInflater into normal instantiation, so as to improve the performance of layout loading. 编译期时解析布局xml文件,将LayoutInflater中的反射实例化转成普通的实例化,以此来提高布局加载的性能

https://github.com/dreamgyf/FastInflate

Sources: https://github.com/dreamgyf/FastInflate.git

Version 0.1.0-alpha-06

Created 08 November 2022.

Parse the layout xml file at compile time, and convert the reflection instantiation in LayoutInflater into normal instantiation, so as to improve the performance of layout loading. 编译期时解析布局xml文件,将LayoutInflater中的反射实例化转成普通的实例化,以此来提高布局加载的性能

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.dreamgyf.android.fastinflate") version "0.1.0-alpha-06"
}

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("com.dreamgyf.android.fastinflate:com.dreamgyf.android.fastinflate.gradle.plugin:0.1.0-alpha-06")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.dreamgyf.android.fastinflate")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.dreamgyf.android.fastinflate:com.dreamgyf.android.fastinflate.gradle.plugin:0.1.0-alpha-06")
      }
    }
    
    apply(plugin = "com.dreamgyf.android.fastinflate")
  • Applying plugins to all subprojects .