Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky
2024-06-11 07:27:33 +02:00
parent c9372dd018
commit dfbc9f9ea1
3 changed files with 18 additions and 21 deletions

View File

@ -1,22 +1,9 @@
/*
* Nextcloud Android client application
* Nextcloud - Android Client
*
* @author ZetaTom
* Copyright (C) 2023 ZetaTom
* Copyright (C) 2023 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: 2023 ZetaTom
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
package com.nextcloud.utils.extensions

View File

@ -10,7 +10,7 @@
*/
buildscript {
ext {
androidLibraryVersion = "depocc~notifications-SNAPSHOT"
androidLibraryVersion = "cda1b08aa81b74201177f29c2326abee62f32c15"
androidPluginVersion = '8.4.0'
androidxMediaVersion = '1.3.1'
androidxTestVersion = "1.5.0"

View File

@ -9,9 +9,19 @@ betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/se
libraryHash=$(grep library build.gradle | cut -f2 -d'"' | grep "^[0-9a-zA-Z]\{40\}$" -c)
if [[ $snapshotCount -eq 0 && $betaCount -eq 0 && $libraryHash = 1 ]] ; then
exit 0
else
if [[ $snapshotCount -gt 0 ]] ; then
echo "Snapshot found in dependencies"
exit 1
fi
if [[ $betaCount -gt 0 ]] ; then
echo "Beta is set in setup.xml"
exit 1
fi
if [[ $libraryHash = 0 ]] ; then
echo "Library hash is wrong!"
exit 1
fi
exit 0