From 18f6934cdac6ecde97aee8c5871c755fafc91205 Mon Sep 17 00:00:00 2001 From: Dmitri Davydok Date: Tue, 27 Feb 2018 11:58:17 -0800 Subject: [PATCH] Editor config and annotations (#738) * Add annotations support * Add appropriate .editorconfig --- .editorconfig | 12 ++++++++++++ README.md | 2 +- app/build.gradle | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cc0066df --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root=true + +[*] +charset=utf-8 +# Unix-style newlines with a newline ending every file +end_of_line=lf +insert_final_newline=true +indent_style=tab +tab_width=4 diff --git a/README.md b/README.md index 2c00f420..5432c6c9 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Contributing code --------------- * A list of open issues can be found at the [issue tracker][2] * Features we would like to see (but nobody started working on them yet) have the [patches-welcome][3] label attached to them. Please let us know if you start working on such an open issue (to avoid duplicate work) -* We accept raw patches and github pull request - and we use tabs. +* We accept raw patches and github pull request - and we use tabs (if your editor understands .editorconfig, it will help you enforce this). Building ======== diff --git a/app/build.gradle b/app/build.gradle index 676d9b2e..f7077676 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,3 +25,7 @@ android { abortOnError false } } + +dependencies { + compileOnly 'com.android.support:support-annotations:27.0.2' +}