-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathgradle.properties
48 lines (48 loc) · 2.23 KB
/
gradle.properties
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
# 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=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# 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
# 编译时使用守护进程
org.gradle.daemon=true
# 使用并行编译
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
android.enableBuildScriptClasspathCheck=false
# 默认打开
#android.enableAapt2=true
# as3.1以后可关闭
android.enableD8=true
# .class是否遵循java7格式
android.enableD8.desugaring=true
# 新的混淆工具
android.enableR8=false
# 默认打开
#android.enableIncrementalDesugaring=true
# 使用AndroidX
android.enableJetifier=true
android.useAndroidX=true
# 用于flutter插件获取构建的app名字 插件位于flutter的sdk的/packages/flutter_tools/gradle/flutter.gradle
# 找到Task mergeAssets = project.tasks.findByPath("app:merge${variant.name.capitalize()}Assets")
# 修改为Task mergeAssets = project.tasks.findByPath(":${project.hasProperty("buildAppName")?project.buildAppName:"app"}:merge${variant.name.capitalize()}Assets")
# 这样可以一劳永逸,适合其它的工程,只要在这里添加属性即可,如果有更优雅的实现方式请联系我
buildAppName=presentation
# butterknife编译冲突
#android.jetifier.blacklist = butterknife-compiler
# 检测唯一包名
#android.uniquePackageNames = true
# 分开注解,现在在实验阶段,所以一直是false
android.enableSeparateAnnotationProcessing=false
# 检测不支持api,也可以用严格模式
android.debug.obsoleteApi=true
# 编译优化,禁止可打开
#android.bundle.enableUncompressedNativeLibs=false