2014-10-03 14:33:41 +04:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
:: Use argument to decide which build system should be used
|
|
|
|
if "%1" == "gradle" goto initForGradle
|
|
|
|
if "%1" == "ant" goto initForAnt
|
|
|
|
goto invalidInput
|
|
|
|
|
|
|
|
:initForGradle
|
|
|
|
echo "Executing Gradle setup..."
|
|
|
|
goto initDefault
|
|
|
|
|
|
|
|
:initForAnt
|
|
|
|
echo "Executing Ant setup..."
|
|
|
|
::If the directory exists the script has already been executed
|
2015-05-26 14:45:35 +03:00
|
|
|
|
|
|
|
::Gets the owncloud-android-library
|
|
|
|
call git submodule init
|
|
|
|
call git submodule update
|
|
|
|
|
2015-11-28 13:26:58 +03:00
|
|
|
call android.bat update project -p libs/android-support-appcompat-v7-exploded-aar --target android-23
|
2015-12-29 01:10:47 +03:00
|
|
|
call android.bat update project -p libs/android-support-design-exploded-aar --target android-23
|
2016-03-02 16:34:33 +03:00
|
|
|
call android.bat update project -p libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar --target android-22
|
2015-05-26 14:45:35 +03:00
|
|
|
call android.bat update lib-project -p owncloud-android-library
|
|
|
|
call android.bat update project -p .
|
|
|
|
call android.bat update project -p oc_jb_workaround
|
|
|
|
call android.bat update test-project -p tests -m ..
|
|
|
|
|
2014-10-03 14:33:41 +04:00
|
|
|
goto complete
|
|
|
|
|
|
|
|
:initDefault
|
2013-10-28 15:49:28 +04:00
|
|
|
call git submodule init
|
|
|
|
call git submodule update
|
2014-01-22 13:16:53 +04:00
|
|
|
call android.bat update lib-project -p owncloud-android-library
|
2013-10-25 16:50:28 +04:00
|
|
|
call android.bat update project -p .
|
2013-11-04 14:40:07 +04:00
|
|
|
call android.bat update project -p oc_jb_workaround
|
2013-10-25 16:50:28 +04:00
|
|
|
call android.bat update test-project -p tests -m ..
|
2014-10-03 14:33:41 +04:00
|
|
|
goto complete
|
|
|
|
|
|
|
|
:invalidInput
|
|
|
|
echo "Input argument invalid."
|
2016-04-07 01:00:46 +03:00
|
|
|
echo "Usage: %0 [ant | gradle]."
|
2014-10-03 14:33:41 +04:00
|
|
|
goto exit
|
|
|
|
|
|
|
|
:complete
|
|
|
|
echo "...setup complete."
|
|
|
|
goto exit
|
|
|
|
|
|
|
|
:exit
|