-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.gradle
201 lines (197 loc) · 9.6 KB
/
dependencies.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
DataInputStream file
try {
file = (new File(projectDir.parent + '/local.properties')).newDataInputStream()
} catch (Exception ignored) {
file = project.rootProject.file('local.properties').newDataInputStream()
}
def properties = new Properties()
properties.load(file)
def stableCompose = properties.getProperty('compose.stable') == "true"
def material3 = properties.getProperty('material3') == "true"
def versions = [
iosDeploymentTarget: "14.0",
androidActivity : "1.4.0",
kotlinSerialization: "1.3.2",
coil : "2.0.0",
kotlinCoroutines : "1.6.3-native-mt",
ktor : "1.6.8",
sqldelight : "1.5.3",
bouncycastle : "1.70",
aws : "1.12.192",
napier : "2.6.1",
]
if (ext.properties["kotlin.native.binary.memoryModel"] == "experimental") {
versions["kotlinCoroutines"] = "1.5.1-new-mm-dev2"
versions["ktor"] = "1.6.2-native-mm-eap-196"
}
if (stableCompose) {
versions["compose"] = "1.2.0"
versions["accompanist"] = "0.25.0"
versions["kotlin"] = "1.7.0"
} else {
versions["compose"] = "1.2.0"
versions["accompanist"] = "0.25.0"
versions["kotlin"] = "1.7.0"
}
versions["kotlinBuildSrc"] = versions["kotlin"]
ext.Versions = versions
ext.Libs = [
build : [
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
kotlinSerialization : "org.jetbrains.kotlin:kotlin-serialization:$versions.kotlin",
googleServices : "com.google.gms:google-services:4.3.13",
dotenv : "io.github.cdimascio:dotenv-kotlin:6.2.2",
sqldelight : "com.squareup.sqldelight:gradle-plugin:$versions.sqldelight",
gradleVersionsPlugin: "com.github.ben-manes:gradle-versions-plugin:0.42.0",
buildKonfig : "com.codingfeline.buildkonfig:buildkonfig-gradle-plugin:0.12.0",
],
kotlin : [
stdLib : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
reflect : "org.jetbrains.kotlin:kotlin-reflect:$versions.kotlin",
coroutines : [
core : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.kotlinCoroutines",
playServices: "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$versions.kotlinCoroutines",
],
serializationJson: "org.jetbrains.kotlinx:kotlinx-serialization-json:$versions.kotlinSerialization",
datetime : "org.jetbrains.kotlinx:kotlinx-datetime:0.3.2",
],
android : [
appCompat : "androidx.appcompat:appcompat:1.4.1",
material : "com.google.android.material:material:1.5.0",
annotation : "androidx.annotation:annotation:1.1.0",
activity : "androidx.activity:activity-ktx:$versions.androidActivity",
dataStore : "androidx.datastore:datastore-preferences:1.0.0",
browser : "androidx.browser:browser:1.4.0",
coil : "io.coil-kt:coil:$versions.coil",
webrtc : "org.webrtc:google-webrtc:1.0.32006",
facebookLogin : "com.facebook.android:facebook-login:13.1.0",
dynamicanimation: "androidx.dynamicanimation:dynamicanimation-ktx:1.0.0-alpha03",
compose : [
core : [
ui : "androidx.compose.ui:ui:$versions.compose",
util : "androidx.compose.ui:ui-util:$versions.compose",
tooling : "androidx.compose.ui:ui-tooling:$versions.compose",
foundation : "androidx.compose.foundation:foundation:$versions.compose",
material : "androidx.compose.material:material:$versions.compose",
materialIconsCore : "androidx.compose.material:material-icons-core:$versions.compose",
materialIconsExtended: "androidx.compose.material:material-icons-extended:$versions.compose",
constraintLayout : "androidx.constraintlayout:constraintlayout-compose:1.0.0",
viewModel : "androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1",
activity : "androidx.activity:activity-compose:$versions.androidActivity",
],
composeMaterialDialogs: [
datetime: "io.github.vanpra.compose-material-dialogs:datetime:0.7.0",
],
accompanist : [
flowlayout : "com.google.accompanist:accompanist-flowlayout:$versions.accompanist",
pager : "com.google.accompanist:accompanist-pager:$versions.accompanist",
pagerIndicators: "com.google.accompanist:accompanist-pager-indicators:$versions.accompanist",
],
coil : "io.coil-kt:coil-compose:$versions.coil",
],
composeDebug : [
tooling : "androidx.compose.ui:ui-tooling:$versions.compose",
toolingPreview : "androidx.compose.ui:ui-tooling-preview:$versions.compose",
customview : "androidx.customview:customview:1.2.0-alpha01",
customviewPoolingcontainer: "androidx.customview:customview-poolingcontainer:1.0.0-alpha01",
],
],
google : [
playServicesAuth : "com.google.android.gms:play-services-auth:20.2.0",
apiClient : "com.google.api-client:google-api-client:1.33.4",
httpClientApacheV2: "com.google.http-client:google-http-client-apache-v2:1.41.5",
],
firebase : [
bom : "com.google.firebase:firebase-bom:30.2.0",
analytics: "com.google.firebase:firebase-analytics-ktx",
messaging: "com.google.firebase:firebase-messaging-ktx",
],
ktor : [
server : [
netty : "io.ktor:ktor-server-netty:$versions.ktor",
core : "io.ktor:ktor-server-core:$versions.ktor",
metricsMicrometer: "io.ktor:ktor-metrics-micrometer:$versions.ktor",
],
client : [
core : "io.ktor:ktor-client-core:$versions.ktor",
engine : [
cio: "io.ktor:ktor-client-cio:$versions.ktor",
ios: "io.ktor:ktor-client-ios:$versions.ktor",
],
serialization: "io.ktor:ktor-client-serialization:$versions.ktor",
logging : "io.ktor:ktor-client-logging:$versions.ktor",
],
locations : "io.ktor:ktor-locations:$versions.ktor",
auth : "io.ktor:ktor-auth:$versions.ktor",
authJwt : "io.ktor:ktor-auth-jwt:$versions.ktor",
serialization: "io.ktor:ktor-serialization:$versions.ktor",
metrics : "io.ktor:ktor-metrics:$versions.ktor",
websockets : "io.ktor:ktor-websockets:$versions.ktor",
utils : "io.ktor:ktor-utils:$versions.ktor",
],
server : [
logback : "ch.qos.logback:logback-classic:1.2.11",
hikariCP : "com.zaxxer:HikariCP:5.0.1",
h2database : "com.h2database:h2:1.4.200",
mysqlConnectorJava: "mysql:mysql-connector-java:8.0.28",
firebaseAdmin : "com.google.firebase:firebase-admin:8.1.0",
pushy : "com.eatthepath:pushy:0.15.1",
javaxMail : "com.sun.mail:javax.mail:1.6.2",
javaxBind : "javax.xml.bind:jaxb-api:2.3.1",
aws : [
s3 : "com.amazonaws:aws-java-sdk-s3:$versions.aws",
sns: "com.amazonaws:aws-java-sdk-sns:$versions.aws",
ses: "com.amazonaws:aws-java-sdk-ses:$versions.aws",
],
bouncycastle : [
bcprov: "org.bouncycastle:bcprov-jdk15on:$versions.bouncycastle",
bcpkix: "org.bouncycastle:bcpkix-jdk15on:$versions.bouncycastle",
],
],
sqldelight: [
runtime : "com.squareup.sqldelight:runtime:$versions.sqldelight",
coroutinesExtensions: "com.squareup.sqldelight:coroutines-extensions:$versions.sqldelight",
androidDriver : "com.squareup.sqldelight:android-driver:$versions.sqldelight",
nativeDriver : "com.squareup.sqldelight:native-driver:$versions.sqldelight",
jdbcDriver : "com.squareup.sqldelight:jdbc-driver:$versions.sqldelight",
sqliteDriver : "com.squareup.sqldelight:sqlite-driver:$versions.sqldelight",
],
shared : [
napier: "io.github.aakira:napier:$versions.napier",
okio : "com.squareup.okio:okio:3.0.0",
],
tests : [
junit: "junit:junit:4.13.2",
],
]
ext.iosExportItems = [
":modules:models",
":modules:puerhBase",
":modules:utils:flowUtils",
":modules:utils:viewUtils",
":modules:features:_topLevel:topLevelFeature",
":modules:features:more:moreFeature",
":modules:features:welcome",
":modules:features:myProfile:myProfileFeature",
":modules:features:login:loginFeature",
":modules:features:call:callFeature",
":modules:features:chatList:chatListFeature",
":modules:features:experts:expertsFeature",
":modules:features:userChat:userChatFeature",
":modules:features:calendar:calendarFeature",
":modules:features:updateRequest",
"shared.napier",
"kotlin.datetime",
]
ext.forceApiModules = [
":modules:atomic",
":modules:models",
":modules:puerhBase",
]
def gradlePluginVersion = System.getProperty("gradlePluginVersion")
if (gradlePluginVersion != null) {
ext.Libs["build"]["gradle"] = "com.android.tools.build:gradle:$gradlePluginVersion"
}
if (material3) {
ext.Libs["android"]["compose"]["core"]["material3"] = "androidx.compose.material3:material3:1.0.0-alpha14"
}