-
Notifications
You must be signed in to change notification settings - Fork 59
/
test_build_gradle
180 lines (162 loc) · 5.2 KB
/
test_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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
apply plugin: 'com.android.application'
apply plugin: "kotlin-android"
apply plugin: ('kotlin-kapt')
apply plugin: ("kotlin-android-extensions")
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0-alpha10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath ('com.bmuschko:gradle-nexus-plugin:2.3.1')
classpath("com.github.ben-manes:gradle-versions-plugin:0.20.0")
}
// this should not be converted to block, like the first ones
apply plugin: ("gms")
plugins {
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC8"
id "io.gitlab.arturbosch.detekt"
}
dependencies {
ext {
def test = '1.0.1'
}
def highdef = "1.1.0"
val testing = "1.0.2"
implementation rootProject.deps.androidPagingComponent
implementation project(':customer-api') // comment!
kapt project(':epoxy-processor')
implementation ':epoxy-annotations'
def ANDROIDX_APPCOMPAT = '1.0.0'
compile "androidx.appcompat:appcompat:$ANDROIDX_APPCOMPAT"
testCompile "com.randomDependency:1.0.0"
compileOnly group: 'commons-io', name: 'commons-io', version: '2.6'
testCompileOnly group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
customFlavorImplementation 'a.lib.com'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
detektPlugins 'io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0'
ksp 'com.squareup.moshi:moshi-kotlin-codegen:1.14.0'
implementation "androidx.compose.ui:ui:1.3.2"
lintPublish project(':my-lints')
lintCheck project(':my-lints')
}
testImplementation(group: "junit", name: "junit", version: "4.12")
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
releaseImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
debugImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20")
implementation "org.jetbrains.kotlin:kotlin-reflect"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
include ":app", ':diffutils'
include ':common',
':server',
':app', ':core', ':core-model', ':core-data', ':core-ui',
':shared', ':shared-scouting',
':feature-teams', ':feature-autoscout',
':feature-scouts', ':feature-templates', ':feature-settings',
':feature-exports'
androidExtensions {
experimental = true
}
allprojects {
repositories {
google()
jcenter()
maven { url = uri("https://jitpack.io") }
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
}
compileSdkVersion 28
defaultConfig {
applicationId "com.bernaferrari.sdkmonitor"
minSdkVersion 21
targetSdkVersion 28
versionCode 4
versionName "0.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
multiDexEnabled true
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
debuggable true
ext.alwaysUpdateBuildId = false
ext.enableCrashlytics = false
}
}
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
kapt {
correctErrorTypes = true
}
android {
namespace "com.bernaferrari.sdkmonitor"
lintOptions {
abortOnError false
}
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "boolean", "BETA", "false"
manifestPlaceholders = [appIcon: "@drawable/ic_launcher", appRoundIcon: "@null", googleMapsKey: "aNonKey"]
vectorDrawables.useSupportLibrary true
}
flavorDimensions 'brand', 'releaseType'
productFlavors {
prod {
dimension 'releaseType'
resValue "string", "myFieldName", "@string/app_name"
manifestPlaceholders = [appLabel: "@string/activity_label", deepLink: "@string/deepLink"]
}
}
variantFilter { variant ->
setIgnore(false)
}
dexOptions {
javaMaxHeapSize "4g"
jumboMode true
}
dataBinding {
enabled true
}
composeOptions {
kotlinCompilerExtensionVersion "1.3.2"
}
buildFeatures {
aidl false
compose true
buildConfig true
prefab true
renderScript true
resValues true
shaders true
dataBinding false
viewBinding true
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
sourceCompatibility JavaVersion.VERSION_1_8
dataBinding {
enabled = true
}
task clean(type: Delete) {
delete rootProject.buildDir
}