File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
1
buildscript {
4
2
ext {
5
3
kotlin_version = ' 1.2.71'
@@ -20,6 +18,7 @@ buildscript {
20
18
dependencies {
21
19
classpath " com.android.tools.build:gradle:3.2.1"
22
20
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
21
+ classpath " com.diffplug.spotless:spotless-plugin-gradle:3.16.0"
23
22
classpath " com.novoda:bintray-release:0.9"
24
23
}
25
24
}
Original file line number Diff line number Diff line change
1
+ apply plugin : " com.diffplug.gradle.spotless"
2
+ spotless {
3
+ java {
4
+ target " **/*.java"
5
+ trimTrailingWhitespace()
6
+ removeUnusedImports()
7
+ googleJavaFormat(' 1.6' ). aosp()
8
+ endWithNewline()
9
+ }
10
+ kotlin {
11
+ target " **/*.kt"
12
+ ktlint(). userData([' indent_size' : ' 4' , ' continuation_indent_size' : ' 4' ])
13
+ licenseHeaderFile ' ../spotless.license.kt'
14
+ trimTrailingWhitespace()
15
+ endWithNewline()
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2018 skydoves
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
You can’t perform that action at this time.
0 commit comments