-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
116 lines (99 loc) · 3.53 KB
/
build.gradle.kts
File metadata and controls
116 lines (99 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import java.io.FileInputStream
import java.util.Properties
val keystorePropertiesFile = rootProject.file("keystore.properties")
val useKeystoreProperties = keystorePropertiesFile.canRead()
val keystoreProperties = Properties()
if (useKeystoreProperties) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
plugins {
id("com.android.application")
kotlin("android")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
android {
if (useKeystoreProperties) {
signingConfigs {
create("release") {
storeFile = rootProject.file(keystoreProperties["storeFile"]!!)
storePassword = keystoreProperties["storePassword"] as String
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
enableV4Signing = true
}
create("play") {
storeFile = rootProject.file(keystoreProperties["storeFile"]!!)
storePassword = keystoreProperties["storePassword"] as String
keyAlias = keystoreProperties["uploadKeyAlias"] as String
keyPassword = keystoreProperties["uploadKeyPassword"] as String
}
}
}
compileSdk = 35
buildToolsVersion = "35.0.0"
ndkVersion = "28.0.13004108"
namespace = "app.attestation.auditor"
defaultConfig {
applicationId = "app.attestation.auditor"
minSdk = 33
targetSdk = 35
versionCode = 89
versionName = versionCode.toString()
}
buildTypes {
getByName("release") {
isShrinkResources = true
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
if (useKeystoreProperties) {
signingConfig = signingConfigs.getByName("release")
}
}
create("play") {
initWith(getByName("release"))
applicationIdSuffix = ".play"
if (useKeystoreProperties) {
signingConfig = signingConfigs.getByName("play")
}
}
getByName("debug") {
applicationIdSuffix = ".debug"
}
}
buildFeatures {
viewBinding = true
buildConfig = true
}
packaging {
resources.excludes.addAll(listOf(
"META-INF/versions/*/OSGI-INF/MANIFEST.MF",
"org/bouncycastle/pqc/**.properties",
"org/bouncycastle/x509/**.properties",
))
}
androidResources {
localeFilters += listOf("en")
noCompress += listOf("dex")
}
}
dependencies {
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("androidx.biometric:biometric:1.1.0")
implementation("androidx.core:core:1.16.0")
implementation("androidx.preference:preference:1.2.1")
implementation("com.google.android.material:material:1.12.0")
// Guava's JRE variant is detected as a newer version
// noinspection GradleDependency
implementation("com.google.guava:guava:33.4.8-android")
implementation("com.google.zxing:core:3.5.3")
implementation("org.bouncycastle:bcprov-jdk18on:1.80")
val cameraVersion = "1.4.2"
implementation("androidx.camera:camera-core:$cameraVersion")
implementation("androidx.camera:camera-camera2:$cameraVersion")
implementation("androidx.camera:camera-lifecycle:$cameraVersion")
implementation("androidx.camera:camera-view:$cameraVersion")
}