blob: fae6e3c756aeb1d53649f9619f40d4a81fb64f84 (
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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/**
* Base rules for building setup wizard library. This build file is not used directly but rather
* included in scripts like build.gradle or standalone.gradle using 'apply from'.
*
* This allows the dependencies to be configured so that for builds in the Android tree, the
* dependencies like support library is built directly from source, while for standalone builds they
* will be fetched from maven central.
*/
apply plugin: 'com.android.library'
android {
publishNonDefault true
sourceSets {
main {
manifest.srcFile 'main/AndroidManifest.xml'
java.srcDirs = ['main/src']
resources.srcDirs = ['main/src']
res.srcDirs = ['main/res']
}
productFlavors {
// Platform version that will not include the compatibility libraries
platform {
minSdkVersion 21
dependencies {
// Read the dependencies from the "deps" map in the extra properties.
//
// For builds in the Android tree we want to build the dependencies from source
// for reproducible builds, for example in build.gradle define something like
// this:
// ext {
// deps = ['project-name': project(':project-path')]
// }
//
// For standalone project clients, since the source may not be available, we
// fetch the dependencies from maven. For example in standalone.gradle define
// something like this:
// ext {
// deps = ['project-name': 'com.example.group:project-name:1.0.0']
// }
//
platformCompile deps['support-annotations']
}
}
// Deprecated. Use gingerbreadCompat instead.
eclairMr1Compat {
minSdkVersion 7
dependencies {
eclairMr1CompatCompile deps['support-annotations']
eclairMr1CompatCompile deps['support-appcompat-v7']
}
}
// Deprecated. Use gingerbreadCompat instead.
fullSupport {
minSdkVersion 7
dependencies {
fullSupportCompile deps['support-annotations']
fullSupportCompile deps['support-appcompat-v7']
fullSupportCompile deps['support-recyclerview-v7']
}
}
// Provides backwards compatibility for Gingerbread or above, using support libraries.
gingerbreadCompat {
minSdkVersion 9
dependencies {
gingerbreadCompatCompile deps['support-appcompat-v7']
gingerbreadCompatCompile deps['support-recyclerview-v7']
}
}
}
platform {
java.srcDirs = ['platform/src']
res.srcDirs = ['platform/res']
}
eclairMr1Compat {
java.srcDirs = ['eclair-mr1/src']
res.srcDirs = ['eclair-mr1/res']
}
fullSupport {
java.srcDirs = ['eclair-mr1/src', 'full-support/src']
res.srcDirs = ['eclair-mr1/res', 'full-support/res']
}
gingerbreadCompat {
java.srcDirs = ['eclair-mr1/src', 'full-support/src']
res.srcDirs = ['eclair-mr1/res', 'full-support/res']
}
}
}
|