Giter Site home page Giter Site logo

fastbuilderv2's Introduction

FastBuilder

versionImg

一个可以提升Android编译效率的Gradle插件

编译时间对比

集成插件前:

image

集成插件后,且存在aar:

image

插件原理

针对业务构建自定义增量条件

Android 编译优化探索

Android 编译优化探索2 Hack字节码

使用指南

  • (1)在您的根目录的下build.gradle启用插件
buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.tiyateam.fastbuilder:FastBuilder:2.0.12"
  }
}

apply plugin: "io.github.tiyateam.fastHackPlugin"
  • (2)在您的App工程下的build.gradle启用另一个插件
apply plugin: "io.github.tiyateam.fastbuilder"
//进行相关配置
moduleArchive {
    //是否开启日志
    logEnable = true
    //是否启用
    pluginEnable = true
    //哪些模块参与优化
    subModuleConfig {
        register(":image-picker") {
        }
        register(":floatwindow") {
        }
        register(":common") {
        }
        register(":live") {
        }
        register(":login_tiya") {
        }
        register(":pay-tiya") {
        }
        register(":pair") {
        }
        register(":pay-tiya-google") {
        }
        register(":player") {
        }
        register(":pushpermission") {
        }
        register(":record") {
        }
        register(":share-tiya") {
        }
        register(":ucrop") {
        }
        register(":videoprocessor") {
        }
        register(":live-tiya-rtc") {
        }
        register(":im") {
        }
        register(":audio_mixer") {
        }
        register(":analysis-tiya") {
        }
        register(":agent") {
        }
        register(":banner") {
        }
        register(":ImagePreview") {
        }
        register(":indexablerecyclerview") {
        }
        register(":cardstackview") {
        }
        register(":user") {
        }
        register(":base") {
        }
        register(":xhook_commom") {
        }
        register(":pthread_hook") {
        }



    }
}

FAQ

  1. 编译异常 image

执行./gradlew --stop即可。此命令作用为杀死守护进程,因为此刻守护进程已经加载了目标类,导致插件无法加载相同限定名的hook类

谁在使用

TIYA
TIYA

License

Copyright 2021 Tiya.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

BUG

  1. 找到布局资源
  2. 再配合kotlin-synthetic改变view出错

fastbuilderv2's People

Contributors

daishengda2018 avatar fanmingyi avatar jackfan1xxxx23 avatar mchenys avatar

Watchers

 avatar

Forkers

akitchan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.