forked from plusonelabs/calendar-widget
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.gradle
56 lines (52 loc) · 1.85 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
buildscript {
repositories {
mavenCentral()
google()
}
ext {
compileSdkVersion = 35 as int
buildToolsVersion = '35.0.0'
minSdkVersion = 24 as int
targetSdkVersion = 35 as int
// Lookup the latest here: https://mvnrepository.com/
annotationVersion = '1.0.1'
appCompatVersion = '1.7.0' // https://mvnrepository.com/artifact/androidx.appcompat/appcompat
espressoCoreVersion = '3.6.1' // https://mvnrepository.com/artifact/androidx.test.espresso/espresso-core
jodaTimeVersion = '2.13.0' // https://github.com/JodaOrg/joda-time/releases
junitVersion = '4.13.2'
junitJupiterVersion = '5.11.3'
preferenceVersion = '1.2.1'
testCoreVersion = '1.6.1'
testRulesVersion = '1.6.1'
testRunnerVersion = '1.6.2'
kotlinVersion = '2.0.21' // https://kotlinlang.org/docs/releases.html#release-details
ktxVersion = '1.15.0' // https://androidx.tech/artifacts/core/core-ktx/
}
dependencies {
classpath 'com.android.tools.build:gradle:8.8.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
// https://github.com/facebook/flipper/issues/146#issuecomment-463667556
configurations.configureEach {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == "androidx") {
if (!requested.name.startsWith("multidex")) {
details.useVersion "${targetSdkVersion}.+"
}
}
}
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
allprojects {
repositories {
mavenCentral()
google()
}
}