Skip to content

Commit 7167680

Browse files
kt3kFacebook Github Bot
authored and
Facebook Github Bot
committed
Fix indent of .gradle files
Summary: In most .gradle files, lines are indented with 4 spaces, but in some places they are indented with 2 spaces. This PR fixes them and enforce it by adding .editorconfig settings. Closes facebook#10267 Differential Revision: D4048335 Pulled By: lacker fbshipit-source-id: df2f2556380f56672cf85690eb1c80e640a6aedf
1 parent 580b881 commit 7167680

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ end_of_line = lf
99
insert_final_newline = true
1010
indent_style = space
1111
indent_size = 2
12+
13+
[*.gradle]
14+
indent_size = 4

ReactAndroid/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ task packageReactNdkLibs(dependsOn: buildReactNdkLib, type: Copy) {
214214
}
215215

216216
task packageReactNdkLibsForBuck(dependsOn: packageReactNdkLibs, type: Copy) {
217-
from "$buildDir/react-ndk/exported"
218-
into "src/main/jni/prebuilt/lib"
217+
from "$buildDir/react-ndk/exported"
218+
into "src/main/jni/prebuilt/lib"
219219
}
220220

221221
android {
@@ -243,9 +243,9 @@ android {
243243
jniLibs.srcDir "$buildDir/react-ndk/exported"
244244
res.srcDirs = ['src/main/res/devsupport', 'src/main/res/shell', 'src/main/res/views/modal']
245245
java {
246-
srcDirs = ['src/main/java', 'src/main/libraries/soloader/java', 'src/main/jni/first-party/fb/jni/java']
247-
exclude 'com/facebook/react/processing'
248-
exclude 'com/facebook/react/module/processing'
246+
srcDirs = ['src/main/java', 'src/main/libraries/soloader/java', 'src/main/jni/first-party/fb/jni/java']
247+
exclude 'com/facebook/react/processing'
248+
exclude 'com/facebook/react/module/processing'
249249
}
250250
}
251251

local-cli/generator-android/templates/src/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,6 @@ dependencies {
134134
// Run this once to be able to run the application with BUCK
135135
// puts all compile dependencies into folder libs for BUCK to use
136136
task copyDownloadableDepsToLibs(type: Copy) {
137-
from configurations.compile
138-
into 'libs'
137+
from configurations.compile
138+
into 'libs'
139139
}

0 commit comments

Comments
 (0)