forked from QuantumBadger/RedReader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
143 lines (118 loc) · 3.29 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
}
}
repositories {
jcenter()
google()
}
apply plugin: 'com.android.application'
apply plugin: 'pmd'
apply plugin: 'checkstyle'
dependencies {
implementation "androidx.annotation:annotation:1.1.0"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'com.google.android.material:material:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.3'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'org.apache.commons:commons-text:1.9'
implementation 'joda-time:joda-time:2.10.8'
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
implementation 'info.guardianproject.netcipher:netcipher:1.2.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.6'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.9.6'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test:rules:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.3.0'
}
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "org.quantumbadger.redreader"
minSdkVersion 14
targetSdkVersion 29
versionCode 95
versionName "1.15"
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi']
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
// Flag to tell aapt to keep the attribute ids around
aaptOptions {
additionalParameters "--no-version-vectors"
}
buildTypes {
release {
minifyEnabled false
}
}
compileOptions {
encoding = "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
abortOnError true
warningsAsErrors true
error 'DefaultLocale'
// Translations are crowd-sourced
disable 'MissingTranslation'
disable 'MissingQuantity'
// Temporarily disabled
disable 'ImpliedQuantity'
disable 'InflateParams'
// Too many false positives
disable 'UnusedResources'
// Not an issue
disable 'ViewConstructor'
disable 'GradleDependency'
// Caused by 3rd party dependencies/jetification
disable 'ObsoleteLintCustomCheck'
}
packagingOptions {
exclude 'META-INF/*'
}
sourceSets {
main {
assets.srcDirs = ['assets']
}
}
testOptions {
animationsDisabled = true
}
}
pmd {
toolVersion = '6.24.0'
consoleOutput = true
}
task pmd(type: Pmd) {
dependsOn 'assembleDebug'
ruleSetFiles = files("${project.rootDir}/config/pmd/rules.xml")
ruleSets = [] // otherwise defaults clash with the list in rules.xml
source 'src/main/java/org/quantumbadger'
include '**/*.java'
}
checkstyle {
configFile rootProject.file("${project.rootDir}/config/checkstyle/checkstyle.xml")
ignoreFailures false
showViolations true
maxWarnings 0
toolVersion = "8.35"
}
task Checkstyle(type: Checkstyle) {
source 'src/main/java/org/quantumbadger'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}