mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50:05 +08:00
Update gradle.properties
This commit is contained in:
parent
cc8d2bf678
commit
cafe9cf14a
@ -1,25 +1,26 @@
|
|||||||
# Project-wide Gradle settings.
|
# Android 相关配置
|
||||||
# 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.
|
|
||||||
|
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
|
||||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
||||||
# org.gradle.parallel=true
|
|
||||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
||||||
# Android operating system, and which are packaged with your app's APK
|
|
||||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
# Automatically convert third-party libraries to use AndroidX
|
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
# Kotlin code style for this project: "official" or "obsolete":
|
|
||||||
|
# Kotlin 配置
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
# Gradle parallel build
|
|
||||||
|
# Gradle 性能优化配置
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
org.gradle.caching=true
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
org.gradle.configureondemand=true
|
||||||
|
|
||||||
|
# JVM 参数优化
|
||||||
|
org.gradle.jvmargs=-Xmx2g \
|
||||||
|
-XX:+UseParallelGC \
|
||||||
|
-XX:MaxMetaspaceSize=512m \
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError \
|
||||||
|
-Dfile.encoding=UTF-8 \
|
||||||
|
-XX:+UseCompressedOops \
|
||||||
|
-XX:+OptimizeStringConcat \
|
||||||
|
-XX:MetaspaceSize=256m \
|
||||||
|
-XX:MaxGCPauseMillis=200
|
||||||
|
|
||||||
|
# 可选:设置最大工作线程数
|
||||||
|
org.gradle.workers.max=2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user