mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Use AnimalSniffer to check for Android API compatiblity
This commit is contained in:
parent
dddf62763e
commit
3a264777bd
2 changed files with 15 additions and 11 deletions
15
build.gradle
15
build.gradle
|
@ -13,6 +13,11 @@ buildscript {
|
|||
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.10'
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'ru.vyarus.animalsniffer' version '1.4.3'
|
||||
}
|
||||
|
||||
apply plugin: 'org.kordamp.gradle.markdown'
|
||||
|
||||
apply from: 'version.gradle'
|
||||
|
@ -417,6 +422,16 @@ subprojects {
|
|||
}
|
||||
}
|
||||
|
||||
configure (androidProjects) {
|
||||
apply plugin: 'ru.vyarus.animalsniffer'
|
||||
dependencies {
|
||||
signature "net.sf.androidscents.signature:android-api-level-${smackMinAndroidSdk}:2.2_r3@signature"
|
||||
}
|
||||
animalsniffer {
|
||||
sourceSets = [sourceSets.main]
|
||||
}
|
||||
}
|
||||
|
||||
// There is no need to ever clirr integration test projects and the
|
||||
// smack-repl project.
|
||||
configure(integrationTestProjects + project(':smack-repl')) {
|
||||
|
|
|
@ -17,14 +17,3 @@ dependencies {
|
|||
// Add the Android jar to the Eclipse .classpath.
|
||||
compile files(androidBootClasspath)
|
||||
}
|
||||
|
||||
configure (androidProjects) {
|
||||
task compileAndroid(type: JavaCompile) {
|
||||
source = compileJava.source
|
||||
classpath = compileJava.classpath
|
||||
destinationDir = new File(buildDir, 'android')
|
||||
options.bootClasspath = androidBootClasspath
|
||||
}
|
||||
}
|
||||
|
||||
test { dependsOn androidProjects*.compileAndroid }
|
||||
|
|
Loading…
Reference in a new issue