-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
177 lines (159 loc) · 7.86 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
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
/*
* Copyright 2022 Bammellab / James Andreas
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License
*/
// leveraged (plagarized) from https://github.com/JakeWharton/SdkSearch/blob/master/build.gradle
buildscript {
ext.buildConfig = [
'compileSdk': 34,
'minSdk' : 21,
'targetSdk' : 34,
]
// this section is for dependencies that fly in flocks
ext.versions = [
'supportLibrary' : '29.1.0',
// 'kotlin' : '1.6.21',
'kotlin' : '1.9.0',
// 'kotlinCoroutines': '1.5.0-native-mt',
'kotlinCoroutines': '1.7.3',
'okhttp' : '4.9.0',
'retrofit' : '2.9.0',
]
// don't get too excited. These are just versions.
// Not all of these goodies are *used*,
// but it looks so cool I can't take them all out.
// No harm, no foul. Tomorrow maybe.
ext.deps = [
'kotlin' : [
'stdlib' : [
'common': "org.jetbrains.kotlin:kotlin-stdlib-common:${versions.kotlin}",
'jdk' : "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
],
// 'test' : [
// 'common' : "org.jetbrains.kotlin:kotlin-test-common:${versions.kotlin}",
// 'annotations': "org.jetbrains.kotlin:kotlin-test-annotations-common:${versions.kotlin}",
// 'jdk' : "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
// ],
'coroutines': [
// 'common' : "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${versions.kotlinCoroutines}",
// 'jdk' : "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinCoroutines}",
// 'js' : "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:${versions.kotlinCoroutines}",
'android': "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinCoroutines}",
// 'rx2' : "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:${versions.kotlinCoroutines}",
],
],
'android' : [
'arch' : [
'dbFramework': 'android.arch.persistence:db-framework:1.0.0',
],
'material': "com.google.android.material:material:1.4.0-beta01",
'x' : [
'activityKtx' : 'androidx.activity:activity-ktx:1.7.1',
'constraintLayout': 'androidx.constraintlayout:constraintlayout:2.1.4',
'coreKtx' : 'androidx.core:core-ktx:1.10.0',
'annotations' : 'androidx.annotation:annotation:1.6.0',
'appcompat' : "androidx.appcompat:appcompat:1.6.1",
'cardview' : "androidx.cardview:cardview:1.0.0",
'fragmentKtx' : 'androidx.fragment:fragment-ktx:1.5.7',
'preferenceKtx' : 'androidx.preference:preference-ktx:1.2.0',
'lifecycleKtx' : 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1',
'navigationfragKtx': 'androidx.navigation:navigation-fragment-ktx:2.3.5',
'navigationuiKtx' : 'androidx.navigation:navigation-ui-ktx:2.3.5',
'recyclerview' : 'androidx.recyclerview:recyclerview:1.1.0',
'lifecycleruntime' : 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1',
'viewpager2' : 'androidx.viewpager2:viewpager2:1.1.0-alpha01',
'work' : 'androidx.work:work-runtime-ktx:2.5.0',
],
'test' : [
'runner' : 'androidx.test:runner:1.1.0',
],
],
'okhttp' : [
'client' : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
'logging' : "com.squareup.okhttp3:logging-interceptor:${versions.okhttp}",
'mockWebServer': "com.squareup.okhttp3:mockwebserver:${versions.okhttp}",
],
'retrofit' : [
'client' : "com.squareup.retrofit2:retrofit:${versions.retrofit}",
'adapterKotlinCoroutines' : 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-experimental-adapter:1.0.0',
'converterKotlinxSerialization': 'com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.0.1',
'converterMoshi' : "com.squareup.retrofit2:converter-moshi:${versions.retrofit}",
'converterXml' : "com.squareup.retrofit2:converter-simplexml:${versions.retrofit}",
],
'rx' : [
'java' : 'io.reactivex.rxjava2:rxjava:2.1.9',
'relay': 'com.jakewharton.rxrelay2:rxrelay:2.0.0',
],
'dagger' : [
'runtime' : "com.google.dagger:dagger:${versions.dagger}",
'compiler': "com.google.dagger:dagger-compiler:${versions.dagger}",
],
//'pdbparser' : "com.kotmol.kotmolpdbparser:kotmolpdbparser:1.0.4-SNAPSHOT",
'pdbparser' : "com.kotmol.kotmolpdbparser:kotmolpdbparser:1.0.5",
'okio' : 'com.squareup.okio:okio:1.14.0',
'moshi' : 'com.squareup.moshi:moshi:1.5.0',
'timber' : 'com.jakewharton.timber:timber:4.7.1',
'gson' : 'com.google.code.gson:gson:2.8.7',
'muzei' : 'com.google.android.apps.muzei:muzei-api:3.4.0',
'sqlBrite' : 'com.squareup.sqlbrite3:sqlbrite-kotlin:3.2.0',
'bugsnag' : 'com.bugsnag:bugsnag-android:4.2.2',
'argparser' : 'com.xenomachina:kotlin-argparser:2.0.4',
'byteunits' : 'com.jakewharton.byteunits:byteunits:0.9.1',
'leakcanary' : 'com.squareup.leakcanary:leakcanary-android:1.5.4',
'circleimageview': 'de.hdodenhof:circleimageview:1.3.0', // 2.1.0 available
'guava' : 'com.google.guava:guava:23.0',
'glide' : 'com.github.bumptech.glide:glide:4.12.0',
'glideannotation': 'com.github.bumptech.glide:glide:4.12.0',
'picasso' : 'com.squareup.picasso:picasso:2.71828',
truth : 'com.google.truth:truth:1.1.3',
jupiter : 'org.junit.jupiter:junit-jupiter:5.7.1',
annotations : 'org.jetbrains:annotations:21.0.1',
]
ext.isCiBuild = System.getenv('CI') == 'true'
repositories {
mavenCentral()
google()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.0'
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
// Force all of the primary support libraries to use the same version.
configurations.configureEach {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == 'com.android.support') {
details.useVersion versions.supportLibrary
}
}
}
}
tasks.withType(Test).tap {
configureEach {
testLogging {
events "skipped", "failed", "passed"
}
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}