2019-10-04 14:41:45 +02:00
|
|
|
apply plugin: 'com.android.library'
|
2021-01-15 13:32:47 +01:00
|
|
|
apply plugin: 'ivy-publish'
|
2019-10-11 10:25:44 +02:00
|
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
|
2019-10-04 14:41:45 +02:00
|
|
|
|
|
|
|
android {
|
2020-03-04 15:34:13 +01:00
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion "28.0.3"
|
2019-10-04 14:41:45 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 14
|
|
|
|
targetSdkVersion 26
|
|
|
|
versionCode 2
|
|
|
|
versionName "2.0"
|
|
|
|
}
|
2019-10-11 15:38:01 +02:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2019-10-04 14:41:45 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
aidl.srcDirs = ["src"]
|
|
|
|
java.srcDirs = ["src"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-15 13:57:57 +01:00
|
|
|
afterEvaluate {
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
release(IvyPublication) {
|
|
|
|
// Applies the component for the release build variant.
|
|
|
|
from components.release
|
|
|
|
groupId = 'net.osmand'
|
|
|
|
artifactId = 'android-aidl-lib'
|
|
|
|
version = 'master-snapshot'
|
|
|
|
}
|
|
|
|
debug(IvyPublication) {
|
|
|
|
// Applies the component for the release build variant.
|
|
|
|
from components.debug
|
|
|
|
groupId = 'net.osmand'
|
|
|
|
artifactId = 'android-aidl-lib'
|
|
|
|
version = 'master-snapshot'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-04 14:41:45 +02:00
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2020-03-04 15:34:13 +01:00
|
|
|
implementation 'com.android.support:support-annotations:28.0.0'
|
2019-10-11 16:18:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'sources'
|
2019-10-11 16:30:48 +02:00
|
|
|
from android.sourceSets.main.java.srcDirs
|
2019-10-11 16:18:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
2021-01-15 13:32:47 +01:00
|
|
|
}
|