]> gitweb.stoutner.com Git - PrivacyCell.git/blob - app/build.gradle
Release 1.10.
[PrivacyCell.git] / app / build.gradle
1 /*
2  * Copyright 2021-2023 Soren Stoutner <soren@stoutner.com>.
3  *
4  * This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
5  *
6  * Privacy Cell is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Privacy Cell is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 plugins {
21     id 'com.android.application'
22     id 'kotlin-android'
23 }
24
25 android {
26     compileSdk 34
27
28     defaultConfig {
29         applicationId "com.stoutner.privacycell"
30         minSdk 30
31         targetSdk 34
32         versionCode 12
33         versionName "1.10"
34         resourceConfigurations += ['en', 'de', 'es', 'fr', 'it', 'ru']
35     }
36
37     // Specify the compile Java version.  This must match the Kotlin JVM target.  For some reason the system was not setting this correctly.  These can probably be removed in the future.
38     compileOptions {
39         sourceCompatibility JavaVersion.VERSION_17
40         targetCompatibility JavaVersion.VERSION_17
41     }
42
43     // Specify the Kotlin JVM target.  This must match the compile Java version.  For some reason the system was not setting this correctly.  These can probably be removed in the future.
44     kotlinOptions {
45         jvmTarget = 17
46     }
47
48     buildTypes {
49         debug {
50             minifyEnabled false
51             shrinkResources false
52         }
53
54         release {
55             minifyEnabled true
56             shrinkResources true
57             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
58         }
59     }
60
61     namespace 'com.stoutner.privacycell'
62 }
63
64 dependencies {
65     // Include the following AndroidX libraries.
66     implementation 'androidx.appcompat:appcompat:1.6.1'
67     implementation 'androidx.core:core-ktx:1.12.0'
68     implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2'
69     implementation 'androidx.preference:preference-ktx:1.2.1'
70     implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
71     implementation 'androidx.webkit:webkit:1.8.0'
72     implementation 'androidx.work:work-runtime-ktx:2.8.1'
73
74     // Include the Kotlin standard library.  This should be the same version number listed in the project build.gradle.
75     implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'
76
77     // Include the Google material library.
78     implementation 'com.google.android.material:material:1.10.0'
79 }