@echo off

SET nome_azienda=%1

XCOPY dynamic_%nome_azienda%\src\main\java\it\integry app\src\main\java\it\integry\ /E /Y
CALL gradlew app:build --stacktrace

RMDIR app\src\main\java\it\integry\wms\ /S /Q 

MKDIR dist
MKDIR dist\release
MKDIR dist\release\%nome_azienda%

MOVE app\build\outputs\apk\release\*.apk dist\release\%nome_azienda%\
MOVE app\build\outputs\apk\release\*.txt dist\release\%nome_azienda%\
