From e0b8976aebe5318321d0f19b85fd711ce35328ba Mon Sep 17 00:00:00 2001 From: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> Date: Sun, 25 Aug 2024 07:44:42 +0500 Subject: [PATCH] Improve build times for local builds (#4655) improve --- .editorconfig | 8 ++++---- common.gradle | 1 + gradle.properties | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index ebf0322a0..785c65ff6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,12 +1,14 @@ # Editor configuration, see https://editorconfig.org root = true +[*] +insert_final_newline = true +end_of_line = lf + [*.kt] charset = utf-8 -end_of_line = lf indent_size = 4 indent_style = space -insert_final_newline = true trim_trailing_whitespace = true ij_kotlin_allow_trailing_comma = true ij_kotlin_allow_trailing_comma_on_call_site = true @@ -15,5 +17,3 @@ ij_kotlin_name_count_to_use_star_import_for_members = 2147483647 [*.properties] charset = utf-8 -end_of_line = lf -insert_final_newline = true diff --git a/common.gradle b/common.gradle index f0e8f29a2..f916f509a 100644 --- a/common.gradle +++ b/common.gradle @@ -9,6 +9,7 @@ assert !ext.has("libVersion") assert extName.chars().max().asInt < 0x180 : "Extension name should be romanized" Project theme = ext.has("themePkg") ? project(":lib-multisrc:$themePkg") : null +if (theme != null) evaluationDependsOn(theme.path) android { compileSdk AndroidConfig.compileSdk diff --git a/gradle.properties b/gradle.properties index fd00c0bce..2846e75d9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,3 +25,5 @@ android.useAndroidX=true android.enableBuildConfigAsBytecode=true android.defaults.buildfeatures.resvalues=false android.defaults.buildfeatures.shaders=false + +org.gradle.configureondemand=true