mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
build: enable R8 minify & include important JVM arguments
try to fix workflow error. The runner has received a shutdown signal. This can happen when the runner service is stopped, or a manually started runner is canceled.
This commit is contained in:
parent
5864f8809d
commit
8e15495638
@ -71,8 +71,8 @@ android {
|
|||||||
}
|
}
|
||||||
applicationIdSuffix '.release'
|
applicationIdSuffix '.release'
|
||||||
|
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
//shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
org.gradle.jvmargs=-Xmx6000m
|
# Default value: -Xmx512m -XX:MaxMetaspaceSize=384m
|
||||||
|
# Bugs: This will override important JVM argument defaults. Include all important JVM arguments if you wan to change arguments. See https://github.com/gradle/gradle/issues/19750
|
||||||
|
org.gradle.jvmargs=-Xmx6000m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# 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
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
Loading…
Reference in New Issue
Block a user