forked from koral--/android-gif-drawable
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
65 lines (54 loc) · 1.32 KB
/
build.gradle
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
54
55
56
57
58
59
60
61
62
63
64
65
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.github.dcendents:android-maven-plugin:1.0'
}
}
apply plugin: 'android-library'
apply plugin: 'android-maven'
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
android {
compileSdkVersion 19
buildToolsVersion '19.0.3'
sourceSets.main {
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
manifest.srcFile 'AndroidManifest.xml'
}
defaultConfig {
minSdkVersion 4
targetSdkVersion 19
ndk {
moduleName "gif"
//ldLibs "log"
cFlags "-DHAVE_CONFIG_H"
}
}
}
task ndkBuild(type: Exec) {
commandLine 'ndk-build', '-j'
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}
allprojects {
version = VERSION_NAME
group = GROUP
repositories {
mavenCentral()
}
}
apply from: 'https://raw.github.com/koral--/gradle-mvn-push/master/gradle-mvn-push.gradle'