1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-10 14:16:00 +01:00
Smack/smack-android/build.gradle

29 lines
1.1 KiB
Groovy
Raw Normal View History

description = """\
Smack for Android.
All the required dependencies to run Smack on Android.
2014-11-21 14:23:13 +01:00
Usually you want to add additional dependencies like smack-tcp,
smack-extensions and smack-experimental."""
// Note that the test dependencies (junit, …) are inferred from the
// sourceSet.test of the core subproject
dependencies {
implementation project(':smack-xmlparser-xpp3')
// 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.
implementation "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)
.each { project ->
api project
}
2016-02-24 10:46:00 +01:00
// Add the Android jar to the Eclipse .classpath.
compileClasspath files(androidBootClasspath)
}