Enforce consistent formatting of .bp files
Test: attempt to checking in badly formatted .bp file
Change-Id: I39b1a21794bbac8d8167102770ce0ca384fd4e9a
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
new file mode 100644
index 0000000..321bab6
--- /dev/null
+++ b/PREUPLOAD.cfg
@@ -0,0 +1,2 @@
+[Builtin Hooks]
+bpfmt = true
diff --git a/android_icu4j/Android.bp b/android_icu4j/Android.bp
index f272135..86d23a8 100644
--- a/android_icu4j/Android.bp
+++ b/android_icu4j/Android.bp
@@ -60,7 +60,7 @@
],
java_resource_dirs: [
"src/main/tests",
- "testing/src"
+ "testing/src",
],
static_libs: [
"junit",
diff --git a/icu4c/source/common/Android.bp b/icu4c/source/common/Android.bp
index 82a356a..c35c353 100644
--- a/icu4c/source/common/Android.bp
+++ b/icu4c/source/common/Android.bp
@@ -62,8 +62,8 @@
name: "libicuuc_headers",
host_supported: true,
native_bridge_supported: true,
- header_libs: [ "icu4c_extra_headers" ],
- export_header_lib_headers: [ "icu4c_extra_headers" ],
+ header_libs: ["icu4c_extra_headers"],
+ export_header_lib_headers: ["icu4c_extra_headers"],
export_include_dirs: ["."],
target: {
windows: {
@@ -94,6 +94,6 @@
shared_libs: ["libicuuc_stubdata"],
},
},
- header_libs: [ "libicuuc_headers" ],
- export_header_lib_headers: [ "libicuuc_headers" ],
+ header_libs: ["libicuuc_headers"],
+ export_header_lib_headers: ["libicuuc_headers"],
}
diff --git a/icu4c/source/i18n/Android.bp b/icu4c/source/i18n/Android.bp
index b3fa4fc..2c7be61 100644
--- a/icu4c/source/i18n/Android.bp
+++ b/icu4c/source/i18n/Android.bp
@@ -75,6 +75,6 @@
native_bridge_supported: true,
unique_host_soname: true,
shared_libs: ["libicuuc"],
- header_libs: [ "libicui18n_headers" ],
- export_header_lib_headers: [ "libicui18n_headers" ],
+ header_libs: ["libicui18n_headers"],
+ export_header_lib_headers: ["libicui18n_headers"],
}
diff --git a/icu4c/source/stubdata/Android.bp b/icu4c/source/stubdata/Android.bp
index 9f3fd80..6ab4183 100644
--- a/icu4c/source/stubdata/Android.bp
+++ b/icu4c/source/stubdata/Android.bp
@@ -19,4 +19,3 @@
sub_dir: "icu",
installable: false,
}
-
diff --git a/libandroidicu/static_shim/Android.bp b/libandroidicu/static_shim/Android.bp
index 63529ae..ade762c 100644
--- a/libandroidicu/static_shim/Android.bp
+++ b/libandroidicu/static_shim/Android.bp
@@ -43,4 +43,3 @@
},
},
}
-
diff --git a/tools/srcgen/currysrc/Android.bp b/tools/srcgen/currysrc/Android.bp
index 9f29be5..77635ed 100644
--- a/tools/srcgen/currysrc/Android.bp
+++ b/tools/srcgen/currysrc/Android.bp
@@ -45,7 +45,7 @@
"currysrc_org.eclipse",
"guavalib",
"gson-prebuilt-jar",
- "jopt-simple-4.9",
+ "jopt-simple-4.9",
],
srcs: ["src/**/*.java"],
}