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-07 (latest)

Created 10 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中的反射实例化转成普通的实例化,以此来提高布局加载的性能

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.dreamgyf.android.plugin:FastInflatePlugin:0.1.0-alpha-07")
  }
}

apply(plugin = "com.dreamgyf.android.fastinflate")

Using the plugins DSL:

plugins {
  id "com.dreamgyf.android.fastinflate" version "0.1.0-alpha-07"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.dreamgyf.android.plugin:FastInflatePlugin:0.1.0-alpha-07"
  }
}

apply plugin: "com.dreamgyf.android.fastinflate"

Learn how to apply plugins to subprojects