From e730fe635acde32d9f80d452c80b32dcfa87f8e4 Mon Sep 17 00:00:00 2001 From: Mateusz Armatys Date: Thu, 27 Apr 2023 13:08:12 +0200 Subject: [PATCH] build: Disable coverage for `test` modules. --- auth/test/build.gradle.kts | 20 ++++++++++++++++++++ human-verification/test/build.gradle.kts | 20 ++++++++++++++++++++ payment-iap/test/build.gradle.kts | 20 ++++++++++++++++++++ report/test/build.gradle.kts | 4 +++- 4 files changed, 63 insertions(+), 1 deletion(-) diff --git a/auth/test/build.gradle.kts b/auth/test/build.gradle.kts index a85dfd6ff..8402e7a89 100644 --- a/auth/test/build.gradle.kts +++ b/auth/test/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2023 Proton AG + * This file is part of Proton AG and ProtonCore. + * + * ProtonCore 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. + * + * ProtonCore 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 ProtonCore. If not, see . + */ + import studio.forface.easygradle.dsl.* import studio.forface.easygradle.dsl.android.* @@ -23,6 +41,8 @@ plugins { protonAndroidLibrary } +protonCoverage.disabled.set(true) + publishOption.shouldBePublishedAsLib = true android { diff --git a/human-verification/test/build.gradle.kts b/human-verification/test/build.gradle.kts index 4ad01a59a..778687891 100644 --- a/human-verification/test/build.gradle.kts +++ b/human-verification/test/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2023 Proton AG + * This file is part of Proton AG and ProtonCore. + * + * ProtonCore 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. + * + * ProtonCore 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 ProtonCore. If not, see . + */ + import studio.forface.easygradle.dsl.* /* @@ -22,6 +40,8 @@ plugins { protonAndroidLibrary } +protonCoverage.disabled.set(true) + publishOption.shouldBePublishedAsLib = true android { diff --git a/payment-iap/test/build.gradle.kts b/payment-iap/test/build.gradle.kts index 7db8524cb..56a2ae5f2 100644 --- a/payment-iap/test/build.gradle.kts +++ b/payment-iap/test/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2023 Proton AG + * This file is part of Proton AG and ProtonCore. + * + * ProtonCore 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. + * + * ProtonCore 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 ProtonCore. If not, see . + */ + import studio.forface.easygradle.dsl.* /* @@ -22,6 +40,8 @@ plugins { protonAndroidLibrary } +protonCoverage.disabled.set(true) + publishOption.shouldBePublishedAsLib = true android { diff --git a/report/test/build.gradle.kts b/report/test/build.gradle.kts index 4e2f759ee..02c213f7e 100644 --- a/report/test/build.gradle.kts +++ b/report/test/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Proton Technologies AG + * Copyright (c) 2023 Proton AG * This file is part of Proton AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -22,6 +22,8 @@ plugins { protonAndroidLibrary } +protonCoverage.disabled.set(true) + publishOption.shouldBePublishedAsLib = true android {