From ce715fc91e1cbe4140191276a07e2fb78de4f1f1 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 3 May 2018 17:09:37 +0200 Subject: [PATCH] Make smack-android depend on minidns-android21 --- smack-android/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smack-android/build.gradle b/smack-android/build.gradle index f71ef735f..63fa35d2f 100644 --- a/smack-android/build.gradle +++ b/smack-android/build.gradle @@ -7,6 +7,14 @@ smack-extensions and smack-experimental.""" // Note that the test dependencies (junit, …) are inferred from the // sourceSet.test of the core subproject dependencies { + // Depend on minidns-android21 as optional dependency, even if may + // not need it. Can't hurt to have it in the programm path with + // the correct MiniDNS version as it won't hurt even if the + // Android version is smaller then 21. Note that we deliberatly do + // not add this to smack-minidns, as this dependency may also be + // used in non-Android projects. + compile "org.minidns:minidns-android21:$miniDnsVersion" + // androidProjects lists all projects that are checked to compile against android.jar // Filter out the optional Smack dependencies from androidProjects (androidProjects - androidOptionalProjects)