1- # # For more details on how to configure your build environment visit
2- # http://www.gradle.org/docs/current/userguide/build_environment.html
3- #
4- # Specifies the JVM arguments used for the daemon process.
5- # The setting is particularly useful for tweaking memory settings.
6- # Default value: -Xmx1024m -XX:MaxPermSize=256m
7- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8- #
9- # When configured, Gradle will run in incubating parallel mode.
10- # This option should only be used with decoupled projects. More details, visit
11- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
12- # org.gradle.parallel=true
13- # Wed Feb 02 13:50:55 IST 2022
1+ # Project-wide Gradle settings for Android Code Studio
2+ # This file is used to configure the Gradle build system.
3+ # For more details, see: https://docs.gradle.org/current/userguide/build_environment.html
4+
5+ # # ----------------------------------------------------------------------
6+ # # Gradle Daemon & Performance
7+ # # ----------------------------------------------------------------------
8+
9+ # Enable the Gradle daemon to improve startup and build times.
10+ org.gradle.daemon =true
11+
12+ # Run builds in parallel (requires decoupled projects).
13+ org.gradle.parallel =true
14+
15+ # Enable build caching to reuse task outputs.
16+ org.gradle.caching =true
17+
18+ # Configure the number of concurrent threads used by Gradle.
19+ # If not set, Gradle uses the number of CPU cores.
20+ # org.gradle.workers.max=4
21+
22+ # # ----------------------------------------------------------------------
23+ # # JVM Arguments for the Gradle Daemon
24+ # # ----------------------------------------------------------------------
25+ # Memory allocation and module opens required for JDK 16+.
1426org.gradle.jvmargs =-Xmx4096M \
1527 -Dkotlin.daemon.jvm.options\= "-Xmx4096M" \
1628 -XX :+HeapDumpOnOutOfMemoryError \
1729 --add-opens java.base/java.lang=ALL-UNNAMED \
1830 --add-opens java.base/java.util=ALL-UNNAMED \
1931 --add-opens java.base/java.io=ALL-UNNAMED
32+
33+ # # ----------------------------------------------------------------------
34+ # # Android Build Configuration
35+ # # ----------------------------------------------------------------------
36+
37+ # Use AndroidX (required for modern Android development).
2038android.useAndroidX =true
39+
40+ # Disable Jetifier because all dependencies are already AndroidX.
2141android.enableJetifier =false
42+
43+ # Exclude specific JARs from Jetifier (if any). This line prevents a known conflict.
2244android.jetifier.ignorelist =common-30.2.2.jar
2345
24- # TODO : Migrate
46+ # Whether R classes are non-transitive. 'false' means R is transitive (default for older AGP).
47+ # TODO: Migrate to non-transitive R class for better build performance (requires AGP 8.0+).
2548android.nonTransitiveRClass =false
2649
50+ # Enable generation of BuildConfig by default (can be overridden per module).
51+ android.defaults.buildfeatures.buildconfig =true
52+
53+ # Use non-final resource IDs (helps with view binding in libraries).
54+ # android.nonFinalResIds=false # Uncomment if needed.
55+
56+ # Explicitly set R8 version (code shrinker). Must be compatible with AGP version.
57+ android.r8.version =8.6.17
58+
59+ # # ----------------------------------------------------------------------
60+ # # Kotlin Configuration
61+ # # ----------------------------------------------------------------------
62+
63+ # Kotlin code style (official or obfuscating).
64+ kotlin.code.style =official
65+
66+ # Allow Kotlin to use experimental features (if required).
67+ # kotlin.incremental=true
68+ # kotlin.incremental.java=true
69+ # kotlin.incremental.js=true
70+
71+ # Kotlin compiler arguments (example, adjust as needed).
72+ # kotlin.options.freeCompilerArgs += [
73+ # "-Xjvm-default=enable",
74+ # "-Xopt-in=kotlin.RequiresOptIn"
75+ # ]
76+
77+ # # ----------------------------------------------------------------------
78+ # # Compile Options
79+ # # ----------------------------------------------------------------------
80+
81+ # Set Java compatibility to 11 or 17 (must match JDK version).
82+ # These are usually defined in module build files, but can be set here.
83+ # android.compileOptions.sourceCompatibility=11
84+ # android.compileOptions.targetCompatibility=11
85+
86+ # Enable data binding / view binding if needed.
87+ # android.databinding.enabled=true
88+ # android.viewBinding.enabled=true
89+
90+ # # ----------------------------------------------------------------------
91+ # # Dependency Resolution
92+ # # ----------------------------------------------------------------------
93+
94+ # Force Gradle to use HTTPS for protocol versions.
2795systemProp.https.protocols =TLSv1,TLSv1.1,TLSv1.2
28- org.gradle.caching =true
96+
97+ # Use strict dependency versions (optional).
98+ # dependency.verification=strict
99+
100+ # # ----------------------------------------------------------------------
101+ # # Build Cache & Configuration Cache (Experimental)
102+ # # ----------------------------------------------------------------------
103+
104+ # Enable configuration cache (speeds up subsequent builds).
105+ # Note: May cause issues with some plugins; enable with caution.
29106# org.gradle.configuration-cache=true
30- org.gradle.parallel =true
31- org.gradle.daemon =true
32- android.r8.version =8.6.17
107+
108+ # If configuration cache is enabled, also enable this for better performance.
109+ # org.gradle.configuration-cache.parallel=true
110+
111+ # # ----------------------------------------------------------------------
112+ # # Miscellaneous
113+ # # ----------------------------------------------------------------------
114+
115+ # Gradle's internal logging level (quiet, warn, lifecycle, info, debug).
116+ # org.gradle.logging.level=quiet
117+
118+ # Set file encoding to UTF-8 (important for internationalization).
119+ # org.gradle.jvmargs += -Dfile.encoding=UTF-8 # Already included in the JVM args above.
120+
121+ # Version catalog support (if using libs.versions.toml).
122+ # enableFeaturePreview("VERSION_CATALOGS")
0 commit comments