-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
127 lines (106 loc) · 3.27 KB
/
build.gradle
File metadata and controls
127 lines (106 loc) · 3.27 KB
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
plugins {
id "com.diffplug.spotless" version "6.25.0"
id 'com.android.application'
id 'kotlin-android'
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
groovyGradle {
target '*.gradle', '**/*.gradle'
greclipse()
}
kotlin {
target '**/*.kt'
ktfmt().kotlinlangStyle()
}
}
android {
namespace 'com.boringdroid.systemui'
compileSdk 33
defaultConfig {
applicationId "com.boringdroid.systemui"
minSdkVersion 28
targetSdkVersion 33
versionCode 130
versionName "130"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
sourceSets {
main.resources.srcDirs += "src/main/SystemUISharedRes"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
kotlinOptions {
jvmTarget = "1.8"
}
signingConfigs {
debug {
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('plugin.keystore')
storePassword 'android'
}
}
testOptions {
unitTests {
all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
outputs.upToDateWhen {
false
}
showStandardStreams = false
exceptionFormat = 'full'
}
}
includeAndroidResources = true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lint {
abortOnError false
}
}
dependencies {
// Exclude Kotlin related libraries and to use version in SystemUISharedLib.jar.
configurations {
implementation.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib'
implementation.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-common'
implementation.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
implementation.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
implementation.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-reflect'
implementation.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-io'
implementation.exclude group: 'org.jetbrains', module: 'annotations'
implementation.exclude group: 'androidx.core'
implementation.exclude group: 'androidx.annotation'
implementation.exclude group: 'androidx.collection'
implementation.exclude group: 'org.jetbrains', module: 'annotations'
}
implementation files('libs/SystemUISharedLib.jar')
implementation('androidx.recyclerview:recyclerview:1.3.2')
testImplementation 'androidx.test:core:1.6.1'
testImplementation 'junit:junit:4.13.2'
testImplementation "org.robolectric:robolectric:4.14.1"
testImplementation "com.google.truth:truth:1.4.4"
androidTestImplementation 'androidx.test:runner:1.6.2'
androidTestImplementation 'androidx.test:rules:1.6.1'
androidTestImplementation 'com.google.truth:truth:1.4.4'
androidTestImplementation 'com.google.truth.extensions:truth-java8-extension:1.4.4'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.3.0'
}