Skip to content

Commit b7fd7d3

Browse files
Initial editorconfig support
1 parent f42117f commit b7fd7d3

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
charset = utf-8
4+
[*.{java,cpp,h,aidl,xml,gradle,md}]
5+
indent_style = space
6+
indent_size = 4
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
end_of_line = lf

android-database-sqlcipher/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.library"
2+
apply plugin: "org.ec4j.editorconfig"
23
apply from: "native.gradle"
34
apply from: "maven.gradle"
45

@@ -14,6 +15,11 @@ android {
1415
versionName "${clientVersionNumber}"
1516
}
1617

18+
editorconfig {
19+
includes = ["src/**", "build.gradle"]
20+
excludes = ["src/main/external/sqlcipher/**", "src/main/external/openssl-*/**"]
21+
}
22+
1723
buildTypes {
1824
debug {
1925
debuggable true
@@ -30,8 +36,8 @@ android {
3036
}
3137
}
3238

39+
check.dependsOn editorconfigCheck
3340
clean.dependsOn cleanNative
34-
3541
preBuild.dependsOn([buildOpenSSL, buildAmalgamation])
3642

3743
afterEvaluate {

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ buildscript {
44
repositories {
55
google()
66
jcenter()
7+
maven {
8+
url "https://plugins.gradle.org/m2/"
9+
}
710
}
811
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.2.0'
12+
classpath "com.android.tools.build:gradle:3.2.0"
13+
classpath "gradle.plugin.org.ec4j.gradle:editorconfig-gradle-plugin:0.0.3"
1014
}
1115
}
1216

0 commit comments

Comments
 (0)