-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgradle.properties
More file actions
33 lines (27 loc) · 917 Bytes
/
gradle.properties
File metadata and controls
33 lines (27 loc) · 917 Bytes
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
encoding=UTF-8
#开启线程守护,第一次编译时开线程,之后就不会再开了
org.gradle.daemon=true
#配置编译时的虚拟机大小
org.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx1024M"
#开启并行编译,相当于多条线程再走
org.gradle.parallel=true
#启用新的孵化模式
org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.configuration-cache=false
kotlin.compiler.execution.strategy=in-process
kotlin.incremental.useClasspathSnapshot=true
kotlin.code.style=official
kotlin.js.compiler=ir
#配置k2编译器
kotlin.experimental.tryK2=true
kapt.use.k2=true
#Android
android.nonTransitiveRClass=true
android.useAndroidX=true
#Compose
org.jetbrains.compose.experimental.wasm.enabled=true
#MPP
kotlin.mpp.androidSourceSetLayoutVersion=2
#Development
development=true