diff --git a/compile-simple.sh b/compile-simple.sh index d89141db57950e4fe1063b4e84c3b7f56c878b8e..1eba8f92e06a260c8ba3d07e6e2c64450bfb2f89 100755 --- a/compile-simple.sh +++ b/compile-simple.sh @@ -52,8 +52,22 @@ if [ ! -d "gradle/wrapper" ]; then rm -rf gradle-${GRADLE_VERSION}-all.zip gradle-${GRADLE_VERSION} fi -# Fetch VLC source -# 1/ libvlc, libvlccore and its plugins +#################### +# Configure gradle # +#################### +if [ ! -f gradle.properties ]; then + echo keyStoreFile=$HOME/.android/debug.keystore > gradle.properties + echo storealias=androiddebugkey >> gradle.properties + echo storepwd=android >> gradle.properties +fi +if [ ! -f local.properties ]; then + echo sdk.dir=$ANDROID_SDK > local.properties + echo ndk.dir=$ANDROID_NDK >> local.properties +fi + +#################### +# Fetch VLC source # +#################### TESTED_HASH=18e445a if [ ! -d "vlc" ]; then echo "VLC source not found, cloning" @@ -82,3 +96,8 @@ if [ "$RELEASE" = 1 ]; then fi ./compile-libvlc.sh $OPTS + +################## +# Compile the UI # +################## +./gradlew tasks