Update gradlew to 7.4.2

This commit is contained in:
dkadrikj 2022-10-20 23:26:54 +02:00 committed by Mateusz Armatys
parent 39b5224d28
commit 13dd1f8e75
2 changed files with 0 additions and 50 deletions

Binary file not shown.

50
gradlew vendored
View File

@ -1,55 +1,5 @@
#!/bin/sh
#
# Copyright (c) 2022 Proton AG
#
# This file is part of Proton Mail.
#
# Proton Mail is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Proton Mail is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Proton Mail. If not, see https://www.gnu.org/licenses/.
#
installPrivateConfig() {
local configBranch='config-files';
local outputDir='privateConfig';
local repository="$(git remote get-url origin)";
copyFiles() {
cp "$outputDir/sentry.properties" .
cp "$outputDir/google-services/google-services.json" "app/google-services.json"
}
copyDummyGoogleSevicesFiles() {
cp "config/google-services/dummy-google-services.json" "app/google-services.json"
}
# The branch does not exist for the public repository
if [[ "$repository" =~ github\.com ]]; then
copyDummyGoogleSevicesFiles
return 0
fi;
if [ -d "$outputDir" ]; then
echo '[run] update configuration'
cd "$outputDir";
git pull --quiet;
cd - > /dev/null
copyFiles
return 0
fi;
echo '[run] install configuration'
git clone "$repository" --quiet --depth 1 --branch "$configBranch" "$outputDir"
copyFiles
}
installPrivateConfig
#
# Copyright © 2015-2021 the original authors.
#