forked from itkach/aard2-android
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
112 lines (95 loc) · 2.71 KB
/
build.gradle
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
plugins {
id 'com.android.application' version '8.7.3'
}
repositories {
mavenCentral()
google()
maven {
url "https://jitpack.io"
}
}
android {
compileSdk 35
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
defaultConfig {
namespace "itkach.aard2"
applicationId "com.akylas.aard2"
minSdk 21
targetSdk 35
versionCode 68
versionName "1.1.0"
}
packagingOptions {
exclude 'META-INF/*.version'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
project("slobj").file("exclude.txt").eachLine {
line ->
println line
if (line && line.trim() && !line.startsWith("#")) {
exclude line.trim()
}
}
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
if (System.getenv("KEYSTORE") != null) {
signingConfigs {
release {
storeFile file(System.getenv("KEYSTORE"))
storePassword System.getenv("STORE_PASSWORD")
keyPassword System.getenv("KEY_PASSWORD")
if (keyPassword == null) {
keyPassword = storePassword
}
keyAlias "aard2-android"
}
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
if (System.getenv("KEYSTORE") != null) {
signingConfig signingConfigs.release
}
}
}
buildFeatures {
buildConfig true
}
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
}
dependencies {
api project(':slobj')
implementation "com.google.android.material:material:1.12.0"
implementation "androidx.appcompat:appcompat:1.7.0"
implementation "androidx.viewpager2:viewpager2:1.1.0"
// Fix duplicate classes issue in material
configurations {
configureEach {
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
}
}
implementation "androidx.webkit:webkit:1.12.1"
api 'com.fasterxml.jackson.core:jackson-databind:2.11.1'
api 'com.fasterxml.jackson.core:jackson-core:2.11.1'
api 'com.fasterxml.jackson.core:jackson-annotations:2.11.1'
}