blob: a22f85d2cb4bec146a8a91b3d947f46be1bb1671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
apply plugin: 'com.android.library'
apply plugin: 'robolectric'
apply plugin: 'maven'
dependencies {
compile project(':third_party:gif_decoder')
compile project(':third_party:disklrucache')
compile 'com.android.support:support-v4:19.1.+'
androidTestCompile 'org.hamcrest:hamcrest-core:1.3'
androidTestCompile 'junit:junit:4.11'
androidTestCompile 'org.mockito:mockito-all:1.9.5'
androidTestCompile 'org.robolectric:robolectric:2.4-SNAPSHOT'
}
android {
compileSdkVersion 19
buildToolsVersion = '19.1.0'
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode = VERSION_CODE
versionName = VERSION_NAME
}
sourceSets {
main {
java.srcDirs = ['src/main/java']
manifest.srcFile 'AndroidManifest.xml'
}
androidTest {
java.srcDirs = ['src/test/java']
}
}
}
apply from: "$rootProject.projectDir/scripts/upload.gradle"
// All dependencies are written to the pom file with the default type (.jar). Since we're uploading the gif decoder
// as an aar we need to change the type in the pom file to match or maven/gradle wont' be able to find the transitive
// dependency.
afterEvaluate {
def deployer = uploadArchives.repositories.mavenDeployer
[deployer]*.pom*.whenConfigured { pom ->
pom.dependencies.find { dep ->
dep.groupId == 'com.github.bumptech.glide' && dep.artifactId == 'glide-gif-decoder'
}.type = "aar"
}
}
|