Wink
Wink is a quick build plugin for AndroidStudio. Wink's goal is to build an easy-to-use and easy-to-maintain Android quick build plugin. The difference between us and other quick build plugins is that our quick build process is fully implemented using Gradle and Java language, supporting quick compilation of java files, kotlin files and resource changes.
Wink Insight
During Android development, the build speed of the application directly affects the productivity of the developer's day. For large Android projects that have been maintained for several years, a single line of code change can potentially take more than 10 minutes to compile. Although Instant Run can bring some optimization, the optimization result is still minute level, Wink is created to solve this problem, for simple code changes, the compilation speed is improved to second level. Based on Gradle and Groovy, we optimize the compilation process for java, kotlin and resource files, and give the whole process to Gradle's Task system without using other scripting languages, which not only ensures the readability and ease of use of the project code, but also greatly improves the maintainability of the code.
Features
- Java change support
- kotlin change support
- Gradle mutil module support
- Res/values change support
Install
Install by AndroidStuido Plugin
- Download the Plugin from the Wink.zip
- Open AndroidStudio
- Drag Wink.zip to AndroidStudio
- Restart AndroidStudio
Run by AndroidStudio Plugin
-
When you install plugin success. After you open a project you can see wink button like this screenshot.
-
Click wink button you can see dialog like this.Choose your project‘s root build.gradle file and main app build.gradle file. Automic change gradle file by click install btn.
Install by Gradle
1 . Find your build.gradle in your project root folder, and add line classpath 'com.immomo.litebuild:plugin:0.1.1' in dependencies block
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.immomo.litebuild:plugin:0.1.45'
}
}
2 . In your main app folder find build.gradle file . Insert line plugin config like demo code
plugins {
id 'com.android.application'
id 'com.immomo.litebuild.plugin'
id 'kotlin-android'
}
or like this
apply plugin: 'com.android.application'
apply plugin: 'com.immomo.litebuild.plugin'