Fix indentation

Add .editorconfig to easily enforce indentation rules
This commit is contained in:
Miguel Horta
2022-04-17 14:43:04 +01:00
committed by pelya
parent b8337a5253
commit 2e44deacdf
2 changed files with 47 additions and 38 deletions

7
.editorconfig Normal file
View File

@@ -0,0 +1,7 @@
root = true
[*]
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
charset = utf-8

View File

@@ -115,7 +115,9 @@ fi
export BUILD_NUM_CPUS=$NCPU
# Fix Gradle compilation error
[ -z "$ANDROID_NDK_HOME" ] && export ANDROID_NDK_HOME="$(which ndk-build | sed 's@/ndk-build@@')"
if [ -z "$ANDROID_NDK_HOME" ]; then
export ANDROID_NDK_HOME="$(which ndk-build | sed 's@/ndk-build@@')"
fi
if [ -x project/jni/application/src/AndroidPreBuild.sh ]; then
pushd project/jni/application/src