mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
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 https://github.com/facebook/react-native/pull/10267 Differential Revision: D4048335 Pulled By: lacker fbshipit-source-id: df2f2556380f56672cf85690eb1c80e640a6aedf
This commit is contained in:
parent
580b88144d
commit
71676809d6
@ -9,3 +9,6 @@ end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.gradle]
|
||||
indent_size = 4
|
||||
|
@ -214,8 +214,8 @@ task packageReactNdkLibs(dependsOn: buildReactNdkLib, type: Copy) {
|
||||
}
|
||||
|
||||
task packageReactNdkLibsForBuck(dependsOn: packageReactNdkLibs, type: Copy) {
|
||||
from "$buildDir/react-ndk/exported"
|
||||
into "src/main/jni/prebuilt/lib"
|
||||
from "$buildDir/react-ndk/exported"
|
||||
into "src/main/jni/prebuilt/lib"
|
||||
}
|
||||
|
||||
android {
|
||||
@ -243,9 +243,9 @@ android {
|
||||
jniLibs.srcDir "$buildDir/react-ndk/exported"
|
||||
res.srcDirs = ['src/main/res/devsupport', 'src/main/res/shell', 'src/main/res/views/modal']
|
||||
java {
|
||||
srcDirs = ['src/main/java', 'src/main/libraries/soloader/java', 'src/main/jni/first-party/fb/jni/java']
|
||||
exclude 'com/facebook/react/processing'
|
||||
exclude 'com/facebook/react/module/processing'
|
||||
srcDirs = ['src/main/java', 'src/main/libraries/soloader/java', 'src/main/jni/first-party/fb/jni/java']
|
||||
exclude 'com/facebook/react/processing'
|
||||
exclude 'com/facebook/react/module/processing'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -134,6 +134,6 @@ dependencies {
|
||||
// Run this once to be able to run the application with BUCK
|
||||
// puts all compile dependencies into folder libs for BUCK to use
|
||||
task copyDownloadableDepsToLibs(type: Copy) {
|
||||
from configurations.compile
|
||||
into 'libs'
|
||||
from configurations.compile
|
||||
into 'libs'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user