-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
127 lines (113 loc) · 4 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
File keystoreProperties = rootProject.file("keystore.properties")
def props = new Properties()
if (keystoreProperties.exists()) {
props.load(new FileInputStream(keystoreProperties))
} else {
props['keystorefile'] = 'none'
}
buildscript {
ext.kotlin_version = '1.9.23'
ext.versions = [
'androidX' : '1.0.0',
'firebaseAnalytics' : '21.1.0',
]
ext.sharedVersions = [
LoganSquare : '1.3.7',
Jackson : '2.12.1',
ParcelablePlease : '1.0.2',
ExportablePreferences: '0.9.7',
MariotakuCommons : '0.9.22',
ObjectCursor : '0.9.21',
RestFu : '0.9.64',
]
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:8.4.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.firebase:perf-plugin:1.4.2'
// Add the Crashlytics Gradle plugin
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.1'
classpath 'com.github.wyjsonGo.GoRouter:GoRouter-Gradle-Plugin:2.5.1'
}
}
project.ext {
//app info
applicationId = "allen.town.focus.mastodon"
compileSdkVersion = 34 //jdk need 17 and later
minSdkVersion = 24
targetSdkVersion = 34
versionCode = 1666
versionName = "2.12.3.20241023"
// AndroidX
annotationVersion = "1.2.0"
appcompatVersion = "1.4.2"
coreVersion = "1.5.0"
fragmentVersion = "1.3.6"
mediaVersion = "1.4.3"
paletteVersion = "1.0.0"
preferenceVersion = "1.2.0"
recyclerViewVersion = "1.2.1"
viewPager2Version = "1.1.0-beta01"
workManagerVersion = "2.3.4"
googleMaterialVersion = "1.7.0-alpha02"
lifecycle_version = "2.0.0"
// Third-party
commonslangVersion = "3.7"
commonsioVersion = "2.5"
jsoupVersion = "1.15.1"
glideVersion = "4.13.2"
okhttpVersion = "3.12.10"
okioVersion = "1.17.5"
eventbusVersion = "3.2.0"
rxAndroidVersion = "2.1.1"
rxJavaVersion = "2.2.2"
iconifyVersion = "2.2.2"
exoPlayerVersion = "2.14.2"
audioPlayerVersion = "v2.0.0"
lattieVersion = "5.0.3"
// Only used for free builds. This version should be updated regularly.
conscryptVersion = "2.5.2"
// Google Play build
wearableSupportVersion = "2.6.0"
playServicesVersion = "18.0.1"
//Tests
awaitilityVersion = "3.1.6"
junitVersion = "4.13"
robolectricVersion = "4.5-alpha-1"
robotiumSoloVersion = "5.6.3"
espressoVersion = "3.2.0"
runnerVersion = "1.2.0"
rulesVersion = "1.2.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
//aliyun maven for old library
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url "https://maven.aliyun.com/repository/spring" }
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/releases" }
maven { url "https://maven.aliyun.com/repository/snapshots" }
maven { url "https://maven.aliyun.com/repository/grails-core" }
maven { url "https://maven.aliyun.com/repository/mapr-public" }
maven { url "https://maven.aliyun.com/repository/apache-snapshots" }
flatDir { dirs 'lib' }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
}