-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
97 lines (82 loc) · 2.35 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
repositories {
jcenter()
mavenCentral()
google()
}
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.12.1'
}
}
apply plugin: 'com.android.application'
apply plugin: "com.github.hierynomus.license"
license {
header rootProject.file('src/main/etc/header.txt')
}
def buildVersionName() {
String versionName = "1.2.7"
File versionApkFile = new File(projectDir, "src/main/assets/versionApk.txt")
versionApkFile.text = versionName
return versionName
}
android {
compileSdk 34
defaultConfig {
applicationId "org.esupportail.esupnfctagdroid"
minSdkVersion 21
targetSdkVersion 34
versionCode 18
versionName buildVersionName()
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
signingConfigs {
release {
storeFile file("esup-android-apps.keystore")
storePassword "esupnfctag"
keyAlias "LeoDroidApp"
keyPassword "esupnfctag"
}
}
buildTypes {
debug {
signingConfig signingConfigs.release
versionNameSuffix "-dev"
}
release {
signingConfig signingConfigs.release
}
}
packagingOptions {
exclude 'META-INF/NOTICE' // will not include NOTICE file
exclude 'META-INF/LICENSE' // will not include LICENSE file
exclude 'AndroidManifest.xml'
exclude 'resources.arsc'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'org.esupportail.esupnfctagdroid'
}
dependencies {
api 'com.android.support:appcompat-v7:28.0.0'
api 'org.slf4j:slf4j-api:1.7.19'
api 'com.github.tony19:logback-android-classic:1.1.1-4'
api 'com.github.tony19:logback-android-core:1.1.1-4'
api 'com.sun.mail:android-mail:1.5.5'
api 'com.sun.mail:android-activation:1.5.5'
api 'com.fasterxml.jackson.core:jackson-databind:2.4.1'
api 'commons-io:commons-io:2.5'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
}