-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
69 lines (59 loc) · 1.9 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
// WARNING! CHANGING THE ORDER OF LINES BREAKS build-config
compileSdk 35
buildToolsVersion = "35.0.0"
ndkVersion "28.0.13004108"
// use LTS (not RC) version for ndkVersion!
defaultConfig {
applicationId "de.ltheinrich.etopa"
minSdkVersion 24
targetSdk 35
versionCode 29
versionName "1.2.0"
resourceConfigurations += ['en', 'de', 'ru', 'es', 'pt', 'fr', 'zh-rCN']
}
buildTypes {
release {
postprocessing {
removeUnusedCode true
removeUnusedResources true
optimizeCode false
obfuscate false
}
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
ndk {
debugSymbolLevel 'SYMBOL_TABLE'
}
}
}
buildFeatures {
viewBinding true
buildConfig true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
}
namespace 'de.ltheinrich.etopa'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.biometric:biometric:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.4.0'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
}
tasks.register('printVersionName') {
doLast {
println android.defaultConfig.versionName
}
}