android:freeline
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| android:freeline [2016/12/07 12:43] – created percy | android:freeline [2016/12/07 13:15] (current) – percy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Android Freeline ====== | ====== Android Freeline ====== | ||
| - | Freeline | + | Freeline |
| It's super fast because of the increment build only for the changed class. | It's super fast because of the increment build only for the changed class. | ||
| Line 7: | Line 7: | ||
| - | ===== How to integrate | + | ===== How to Integrate |
| - | 1. Add to the build.gradle | + | 1. Add to the build.gradle |
| <code JAVA> | <code JAVA> | ||
| | | ||
| Line 20: | Line 20: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | 2. Add to the app/ | ||
| + | <code JAVA line> | ||
| + | //Freeline | ||
| + | apply plugin: ' | ||
| + | </ | ||
| + | |||
| + | <code JAVA> | ||
| + | android { | ||
| + | ... | ||
| + | | ||
| + | hack true | ||
| + | | ||
| + | } | ||
| + | |||
| + | | ||
| + | flavorA {} | ||
| + | } | ||
| + | ... | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== How to Use ===== | ||
| + | When you are the first time to run it | ||
| + | ./gradlew initFreeline | ||
| + | |||
| + | Then enjoy it | ||
| + | python freeline.py | ||
| + | python freeline.py -d //with debug information logs | ||
| + | |||
| + | ==== Force Clean Build ==== | ||
| + | Also try the force clean build if it doesn' | ||
| + | python freeline.py -f//If you need the force clean build. | ||
| + | | ||
| + | ===== Questions& | ||
| + | - When you clean the cache of the App, you need to do the clean build | ||
| + | - When you files changed a lot, you also need to do the clean build | ||
| + | - When you switch between different branches, you may need to do the clean build | ||
| + | - You can add alias to your .bashrc or .zshrc if you like | ||
| + | * alias freeline=' | ||
| + | - If you don't want to commit the changes, you can use the patch command to do it | ||
| + | * Create the patch: git diff > freeline.patch | ||
| + | * Apply the patch: patch -p1 < freeline.patch | ||
| + | * Revert the patch: patch -p1 -R < | ||
| + | * Or use git stash and git stash pop to reset or apply the patch temporary | ||
| + | |||
| + | |||
/var/www/dokuwiki/wiki/data/attic/android/freeline.1481085791.txt.gz · Last modified: 2016/12/07 12:43 by percy
