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
117
118
119
120
121
122
123
124
125
126
|
buildscript {
repositories {
mavenLocal()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
}
}
apply plugin: 'com.android.application'
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
google()
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
// For AppCompactActivity
implementation 'androidx.appcompat:appcompat:1.0.0'
// For FloatingActionButton
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.preference:preference:1.1.0'
implementation 'androidx.core:core:1.3.2'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'org.osmdroid:osmdroid-android:6.1.8'
implementation 'net.zetetic:android-database-sqlcipher:4.4.1'
}
android {
compileSdkVersion 30
//buildToolsVersion "25.0.0"
sourceSets {
main {
manifest.srcFile 'main/AndroidManifest.xml'
java.srcDirs = ['main/java']
resources.srcDirs = ['main/java']
aidl.srcDirs = ['main/java']
renderscript.srcDirs = ['main/java']
res.srcDirs = ['main/res']
assets.srcDirs = ['main/assets']
}
// Move the tests to tests/java, tests/res, etc...
androidTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
devel.setRoot('build-types/devel')
}
lintOptions {
checkReleaseBuilds true
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError true
lintConfig file('lint.xml')
}
signingConfigs {
release {
if (System.console() != null) {
storeFile file("../../../keys/igisw.keystore")
storePassword new String(System.console().readPassword("\n\$ Enter keystore password: "))
keyAlias "igiswReleaseKey"
keyPassword new String(System.console().readPassword("\n\$ Enter key password: "))
}
}
}
buildTypes {
devel {
applicationIdSuffix ".devel"
versionNameSuffix "-devel"
// Code for ACRA library ---------------------------//
// Library not used in the publicly released code //
compileOptions { //
sourceCompatibility JavaVersion.VERSION_1_8 //
targetCompatibility JavaVersion.VERSION_1_8 //
} //
dependencies { //
implementation "ch.acra:acra-mail:5.7.0" //
} //
// -------------------------------------------------//
}
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
debuggable true
}
release {
//shrinkResources true // Disabled since it leads to crashes from v3.3.1.1
//minifyEnabled true
if (System.console() != null) {
signingConfig signingConfigs.release
}
}
}
defaultConfig {
// minSdkVersion increased to 16 for SqlCipher 4.3.0
//minSdkVersion = 14
minSdkVersion = 16
targetSdkVersion = 29 }
}
|