mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-01 16:51:16 +00:00
Add helper scripts to quickly enable/disable lint (#212)
Requires UnixTools sed.exe on Windows
This commit is contained in:
parent
66af682ec5
commit
337faa8373
2 changed files with 26 additions and 0 deletions
13
lint_disable.cmd
Normal file
13
lint_disable.cmd
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
@echo off
|
||||||
|
REM
|
||||||
|
REM Disable lint during build
|
||||||
|
REM
|
||||||
|
SET APP_BUILD_GRADLE=%~dps0app\build.gradle
|
||||||
|
REM
|
||||||
|
cls
|
||||||
|
echo [INFO] Disabling lint during build ...
|
||||||
|
sed -e "s/\stask.dependsOn lint/ \/\/task.dependsOn lint/gI" -e "s/\stask.mustRunAfter lint/ \/\/task.mustRunAfter lint/gI" "%APP_BUILD_GRADLE%" > "%APP_BUILD_GRADLE%.tmp"
|
||||||
|
move /y "%APP_BUILD_GRADLE%.tmp" "%APP_BUILD_GRADLE%"
|
||||||
|
echo [INFO] Done.
|
||||||
|
timeout 3
|
||||||
|
goto :eof
|
13
lint_enable.cmd
Normal file
13
lint_enable.cmd
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
@echo off
|
||||||
|
REM
|
||||||
|
REM Enable lint during build
|
||||||
|
REM
|
||||||
|
SET APP_BUILD_GRADLE=%~dps0app\build.gradle
|
||||||
|
REM
|
||||||
|
cls
|
||||||
|
echo [INFO] Enabling lint during build ...
|
||||||
|
sed -e "s/\s\/\/task.dependsOn lint/ task.dependsOn lint/gI" -e "s/\s\/\/task.mustRunAfter lint/ task.mustRunAfter lint/gI" "%APP_BUILD_GRADLE%" > "%APP_BUILD_GRADLE%.tmp"
|
||||||
|
move /y "%APP_BUILD_GRADLE%.tmp" "%APP_BUILD_GRADLE%"
|
||||||
|
echo [INFO] Done.
|
||||||
|
timeout 3
|
||||||
|
goto :eof
|
Loading…
Reference in a new issue