Repository navigation
Expand file tree
/
Copy pathgradle.properties
More file actions
31 lines (31 loc) · 2.1 KB
/
Copy pathgradle.properties
File metadata and controls
31 lines (31 loc) · 2.1 KB
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
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. For more details, visit
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
# org.gradle.parallel=true
# When enabled, the Configuration Cache allows Gradle to skip the configuration
# phase entirely if nothing that affects the build configuration (such as build scripts)
# has changed. Additionally, Gradle applies performance optimizations to task execution.
org.gradle.configuration-cache=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# AGP 9 的内置 Kotlin 默认禁止插件经由 kotlin.sourceSets 注册生成的源码,
# 而 KSP 正是以此注册 Room 生成的代码。此开关是 AGP 给出的官方解决方式。
android.disallowKotlinSourceSets=false
# connectedAndroidTest 默认会在跑完后卸载 app 与 test 两个 apk。
# 卸载会让应用数据一并丢失,且下次安装会被系统当作未知应用要求手动授权,很麻烦。
# 此开关是 AGP 自带的选项(见 BooleanOption 注册表),置 true 后测试跑完保留安装。
android.injected.androidTest.leaveApksInstalledAfterRun=true
# 托管虚拟机(GMD)默认以 -gpu auto 启动,而 AVD 档案里 hw.gpu.enabled=no,
# 两者相遇会让 guest 起来后彻底卡死:qemu 的 CPU 时间零增长、adb shell 无响应、
# 构建就一直挂在设备操作上。改走主机侧软件渲染(SwANGLE)才跑得通。
# baseline profile 的录制依赖这条,见 baselineprofile/。
android.testoptions.manageddevices.emulator.gpu=swiftshader_indirect