-
Notifications
You must be signed in to change notification settings - Fork 379
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (37 loc) · 844 Bytes
/
build.gradle
File metadata and controls
43 lines (37 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0'
}
}
repositories {
google()
mavenCentral()
}
apply plugin: 'com.diffplug.spotless'
spotless {
java {
target 'android/**/*.java', 'examples/demo/android/app/src/**/*.java'
targetExclude '**/build/**'
palantirJavaFormat('2.85.0')
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
}
cpp {
target 'ios/**/*.m', 'ios/**/*.h'
def clangVersion = "clang-format --version".execute().text.trim().split(" ")[2]
clangFormat(clangVersion)
trimTrailingWhitespace()
endWithNewline()
}
format 'xml', {
target '**/*.xml'
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
}