# 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 # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official #Your project is using a version of the Android Gradle Plugin that has built-in Kotlin support, # which conflicts with how KSP tries to register its generated sources. # This tells AGP to allow KSP to use the kotlin.sourceSets DSL to register its generated code # (the Room-generated AppDatabase_Impl etc.), which it needs to do. android.disallowKotlinSourceSets=false ksp.useKsp2=true ksp.incremental=true ksp.incremental.log=false # Enable configuration cache org.gradle.configuration-cache=true # Parallel project execution (useful if you add more modules later) org.gradle.parallel=true # Increase heap if you see OOM during KSP/compilation # org.gradle.jvmargs=-Xmx4g -XX:+UseG1GC # Enable build caching (caches task outputs across clean builds) org.gradle.caching=true # Increase heap if R8 is being swapped out ? default is often too low org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # Enables incremental R8 ? only reprocesses changed classes # Safe for release builds, significant speedup on incremental rebuilds android.enableR8.incremental=true # R8-specific: run R8 in a separate process with more memory android.r8.jvmArgs=-Xmx4g