forked from koral--/android-gif-drawable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (74 loc) · 2.03 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.3'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
defaultConfig {
minSdkVersion 8
targetSdkVersion 22
ndk {
if (Boolean.valueOf(JNI_DEBUG)) {
moduleName 'gif'
abiFilter 'armeabi-v7a'
ldLibs 'jnigraphics', 'android', 'log'
cFlags '-DDEBUG'
} else {
moduleName 'gif'
ldLibs 'jnigraphics', 'android'
abiFilter 'all'
cFlags '-fvisibility=hidden -Ofast'
}
}
}
buildTypes.debug.jniDebuggable Boolean.valueOf(JNI_DEBUG)
def flavors = ['armeabi', 'armeabi-v7a', 'x86', 'mips', 'arm64-v8a', 'mips64', 'x86_64']
boolean applyFlavors = false
gradle.startParameter.taskNames.each() {
String normalizedTaskName = it.toLowerCase(Locale.US)
flavors.each() {
applyFlavors |= normalizedTaskName.contains(it)
}
}
if (applyFlavors) {
productFlavors {
flavors.each() {
String flavor = it
"${it}" {
ndk {
abiFilter flavor
}
}
}
fat
}
}
}
allprojects {
version = VERSION_NAME
group = GROUP
repositories {
mavenCentral()
}
dependencies {
provided 'com.android.support:support-annotations:22.0.0'
}
}
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
afterEvaluate { project ->
android.libraryVariants.all { variant ->
tasks.androidJavadocs.doFirst {
classpath += files(variant.javaCompile.classpath.files)
}
}
}