diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180f2..41d9927a4 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradlew b/gradlew index e697997b2..1b6c78733 100755 --- a/gradlew +++ b/gradlew @@ -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. #