From f6b8069eb2adf28be0ddfc41ac3ffd66de2f11b4 Mon Sep 17 00:00:00 2001 From: Davide Farella <4face91@protonmail.com> Date: Fri, 30 Apr 2021 09:38:28 +0200 Subject: [PATCH] Increase global minSdk [21] -> [23] --- account-manager/build.gradle.kts | 20 ++++++++++++++++++- account-manager/dagger/build.gradle.kts | 4 ++-- account-manager/data/build.gradle.kts | 4 ++-- account/build.gradle.kts | 20 ++++++++++++++++++- account/data/build.gradle.kts | 4 ++-- auth/build.gradle.kts | 4 ++-- auth/data/build.gradle.kts | 4 ++-- auth/presentation/build.gradle.kts | 7 ++----- contact/build.gradle.kts | 4 ++-- contact/data/build.gradle.kts | 4 ++-- coreexample/build.gradle.kts | 3 +-- country/build.gradle.kts | 2 +- country/data/build.gradle.kts | 2 +- country/presentation/build.gradle.kts | 4 ++-- crypto/android/build.gradle.kts | 4 ++-- crypto/build.gradle.kts | 4 ++-- gradle/plugin/src/main/kotlin/ProtonCore.kt | 4 ++-- human-verification/build.gradle.kts | 4 ++-- .../presentation/build.gradle.kts | 7 ++----- key/build.gradle.kts | 4 ++-- key/data/build.gradle.kts | 4 ++-- mail-message/build.gradle.kts | 4 ++-- mail-message/data/build.gradle.kts | 4 ++-- payment/build.gradle.kts | 4 ++-- payment/data/build.gradle.kts | 4 ++-- payment/presentation/build.gradle.kts | 6 ++---- presentation/build.gradle.kts | 7 ++----- user/build.gradle.kts | 4 ++-- user/data/build.gradle.kts | 4 ++-- 29 files changed, 89 insertions(+), 65 deletions(-) diff --git a/account-manager/build.gradle.kts b/account-manager/build.gradle.kts index 089e7a0e5..167dab2cc 100644 --- a/account-manager/build.gradle.kts +++ b/account-manager/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2021 Proton Technologies AG + * This file is part of Proton Technologies 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.* @@ -8,7 +26,7 @@ plugins { libVersion = Version(1, 0, 8) -android(minSdk = 23) +android() dependencies { api( diff --git a/account-manager/dagger/build.gradle.kts b/account-manager/dagger/build.gradle.kts index b7a133188..a1bf926ed 100644 --- a/account-manager/dagger/build.gradle.kts +++ b/account-manager/dagger/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -29,7 +29,7 @@ plugins { libVersion = Version(1, 0, 8) -android(minSdk = 23) +android() dependencies { diff --git a/account-manager/data/build.gradle.kts b/account-manager/data/build.gradle.kts index 26720e7e1..722e240bb 100644 --- a/account-manager/data/build.gradle.kts +++ b/account-manager/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ plugins { libVersion = Version(1, 0, 8) -android(minSdk = 23) { +android() { defaultConfig { javaCompileOptions { annotationProcessorOptions { diff --git a/account/build.gradle.kts b/account/build.gradle.kts index 5313e1617..fda8d2dc5 100644 --- a/account/build.gradle.kts +++ b/account/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2021 Proton Technologies AG + * This file is part of Proton Technologies 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.* @@ -8,7 +26,7 @@ plugins { libVersion = Version(1, 0, 3) -android(minSdk = 23) +android() dependencies { api( diff --git a/account/data/build.gradle.kts b/account/data/build.gradle.kts index 2fd48e252..6b4ce0100 100644 --- a/account/data/build.gradle.kts +++ b/account/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(1, 0, 3) -android(minSdk = 23) +android() dependencies { diff --git a/auth/build.gradle.kts b/auth/build.gradle.kts index 1f955984e..a42ca084d 100644 --- a/auth/build.gradle.kts +++ b/auth/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(1, 0, 5) -android(minSdk = 23) +android() dependencies { api( diff --git a/auth/data/build.gradle.kts b/auth/data/build.gradle.kts index 2f44f2af1..14be84130 100644 --- a/auth/data/build.gradle.kts +++ b/auth/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -26,7 +26,7 @@ plugins { libVersion = Version(1, 0, 5) -android(minSdk = 23) +android() dependencies { diff --git a/auth/presentation/build.gradle.kts b/auth/presentation/build.gradle.kts index 3f65aab92..3d6974568 100644 --- a/auth/presentation/build.gradle.kts +++ b/auth/presentation/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -30,10 +30,7 @@ plugins { libVersion = Version(1, 0, 5) -android( - minSdk = 23, - useDataBinding = true -) +android(useDataBinding = true) dependencies { diff --git a/contact/build.gradle.kts b/contact/build.gradle.kts index 9642a8dac..b26c0f7cd 100644 --- a/contact/build.gradle.kts +++ b/contact/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(0, 1, 4) -android(minSdk = 23) +android() dependencies { api( diff --git a/contact/data/build.gradle.kts b/contact/data/build.gradle.kts index a1089b168..aaec6824e 100644 --- a/contact/data/build.gradle.kts +++ b/contact/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ plugins { libVersion = Version(0, 1, 4) -android(minSdk = 23) +android() dependencies { implementation( diff --git a/coreexample/build.gradle.kts b/coreexample/build.gradle.kts index fc0eca656..af7c7b650 100644 --- a/coreexample/build.gradle.kts +++ b/coreexample/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,7 +27,6 @@ plugins { } android( - minSdk = 23, version = Version(0, 3, 3), useDataBinding = true ) diff --git a/country/build.gradle.kts b/country/build.gradle.kts index a5a06e9d4..9de043077 100644 --- a/country/build.gradle.kts +++ b/country/build.gradle.kts @@ -25,7 +25,7 @@ plugins { libVersion = Version(0, 1, 3) -android(minSdk = 23) +android() dependencies { api( diff --git a/country/data/build.gradle.kts b/country/data/build.gradle.kts index 791648b02..461c5cdfc 100644 --- a/country/data/build.gradle.kts +++ b/country/data/build.gradle.kts @@ -26,7 +26,7 @@ plugins { libVersion = Version(0, 1, 3) -android(minSdk = 23) +android() dependencies { diff --git a/country/presentation/build.gradle.kts b/country/presentation/build.gradle.kts index 5d3f1e212..074e6a9d4 100644 --- a/country/presentation/build.gradle.kts +++ b/country/presentation/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -29,7 +29,7 @@ plugins { libVersion = Version(0, 1, 3) -android(useDataBinding = true, minSdk = 23) +android(useDataBinding = true) dependencies { diff --git a/crypto/android/build.gradle.kts b/crypto/android/build.gradle.kts index 9ce703cd6..45d87c76c 100644 --- a/crypto/android/build.gradle.kts +++ b/crypto/android/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -26,7 +26,7 @@ plugins { libVersion = Version(1, 0, 3) -android(minSdk = 23) +android() dependencies { implementation( diff --git a/crypto/build.gradle.kts b/crypto/build.gradle.kts index fb3960074..c70b24c81 100644 --- a/crypto/build.gradle.kts +++ b/crypto/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(1, 0, 3) -android(minSdk = 23) +android() dependencies { api( diff --git a/gradle/plugin/src/main/kotlin/ProtonCore.kt b/gradle/plugin/src/main/kotlin/ProtonCore.kt index 8f2dcfad4..e99e22c4b 100644 --- a/gradle/plugin/src/main/kotlin/ProtonCore.kt +++ b/gradle/plugin/src/main/kotlin/ProtonCore.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ object ProtonCore { /** The Android API level as target of the App */ const val targetSdk = 30 /** The Android API level required for run the App */ - const val minSdk = 21 + const val minSdk = 23 /** The version of the JDK */ val jdkVersion = JavaVersion.VERSION_1_8 } diff --git a/human-verification/build.gradle.kts b/human-verification/build.gradle.kts index 0ee347d1a..7905b2ed6 100644 --- a/human-verification/build.gradle.kts +++ b/human-verification/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(0, 3, 3) -android(minSdk = 23) +android() dependencies { diff --git a/human-verification/presentation/build.gradle.kts b/human-verification/presentation/build.gradle.kts index d3de7ca1c..2868473ad 100644 --- a/human-verification/presentation/build.gradle.kts +++ b/human-verification/presentation/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -29,10 +29,7 @@ plugins { libVersion = Version(0, 3, 3) -android( - minSdk = 23, - useDataBinding = true -) +android(useDataBinding = true) dependencies { diff --git a/key/build.gradle.kts b/key/build.gradle.kts index d1297e342..993b1dc3a 100644 --- a/key/build.gradle.kts +++ b/key/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(1, 0, 4) -android(minSdk = 23) +android() dependencies { api( diff --git a/key/data/build.gradle.kts b/key/data/build.gradle.kts index e4963aba1..626c3003d 100644 --- a/key/data/build.gradle.kts +++ b/key/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ plugins { libVersion = Version(1, 0, 4) -android(minSdk = 23) +android() dependencies { implementation( diff --git a/mail-message/build.gradle.kts b/mail-message/build.gradle.kts index af4aa2373..a2b9718ce 100644 --- a/mail-message/build.gradle.kts +++ b/mail-message/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(0, 1, 1) -android(minSdk = 23) +android() dependencies { api( diff --git a/mail-message/data/build.gradle.kts b/mail-message/data/build.gradle.kts index ed320a570..47940840b 100644 --- a/mail-message/data/build.gradle.kts +++ b/mail-message/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -26,7 +26,7 @@ plugins { libVersion = Version(0, 1, 1) -android(minSdk = 23) +android() dependencies { diff --git a/payment/build.gradle.kts b/payment/build.gradle.kts index ae81b56f9..a35ced260 100644 --- a/payment/build.gradle.kts +++ b/payment/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(0, 1, 4) -android(minSdk = 23) +android() dependencies { api( diff --git a/payment/data/build.gradle.kts b/payment/data/build.gradle.kts index 5af9b9973..c3b11e808 100644 --- a/payment/data/build.gradle.kts +++ b/payment/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -26,7 +26,7 @@ plugins { libVersion = Version(0, 1, 4) -android(minSdk = 23) +android() dependencies { diff --git a/payment/presentation/build.gradle.kts b/payment/presentation/build.gradle.kts index cff6b6b90..027a24cc2 100644 --- a/payment/presentation/build.gradle.kts +++ b/payment/presentation/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -29,9 +29,7 @@ plugins { libVersion = Version(0, 1, 4) -android( - minSdk = 23, - useDataBinding = true) +android(useDataBinding = true) dependencies { diff --git a/presentation/build.gradle.kts b/presentation/build.gradle.kts index 0fdcedece..f2479ec7c 100644 --- a/presentation/build.gradle.kts +++ b/presentation/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,10 +27,7 @@ plugins { libVersion = Version(0, 7, 0) -android( - minSdk = 23, - useDataBinding = true -) +android(useDataBinding = true) dependencies { diff --git a/user/build.gradle.kts b/user/build.gradle.kts index 233b44975..d0c673f87 100644 --- a/user/build.gradle.kts +++ b/user/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -25,7 +25,7 @@ plugins { libVersion = Version(1, 0, 5) -android(minSdk = 23) +android() dependencies { api( diff --git a/user/data/build.gradle.kts b/user/data/build.gradle.kts index e9e645e3b..a59406269 100644 --- a/user/data/build.gradle.kts +++ b/user/data/build.gradle.kts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Proton Technologies AG + * Copyright (c) 2021 Proton Technologies AG * This file is part of Proton Technologies AG and ProtonCore. * * ProtonCore is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ plugins { libVersion = Version(1, 0, 5) -android(minSdk = 23) +android() dependencies { implementation(