From 405a31a4152f8255bc3fbd46c14d45136fdf5824 Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Sat, 27 Dec 2014 11:10:43 +1100 Subject: [PATCH] Added support annotation library dependency. The specific reason for this is that it provides @Null and @NotNull annotations which should increase the safety of our code. Many of the bugs which get filed are due to NullPointerExceptions, which could be avoided by tooling using these annotations. The goal is to statically catch this specific class of errors in as many situations as possible, rather than waiting for them to occur at runtime. --- build.gradle | 9 +++++++++ settings.gradle | 3 +++ 2 files changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 22399c458..341eee950 100644 --- a/build.gradle +++ b/build.gradle @@ -47,6 +47,15 @@ project(':extern:UniversalImageLoader:library') { } } +project(':support-annotations') { + + // The support-annotations build.gradle uses the mavenDeployer method, which requires + // this plugin. Even though no artifacts are being deployed, this is still required + // for the build script to work. + apply plugin: 'maven' + +} + project(':extern:zipsigner') { apply plugin: 'java' diff --git a/settings.gradle b/settings.gradle index a8827f7bd..a8babb2d4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -20,3 +20,6 @@ project(':support-v4').projectDir = new File('extern/Support/v4') include ':support-appcompat-v7' project(':support-appcompat-v7').projectDir = new File('extern/Support/v7/appcompat') +include ':support-annotations' +project(':support-annotations').projectDir = new File('extern/Support/annotations') +