-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
71 lines (66 loc) · 1.84 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
apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-alpha5'
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':LifeTools Reporter')
compile('org.apache.httpcomponents:httpmime:4.3.6') {
exclude module: 'httpclient'
}
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
}
android {
compileSdkVersion 19
buildToolsVersion "22.0.1"
defaultConfig {
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
versionCode 26
versionName "5.0"
applicationId 'odesk.johnlife.skylight'
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(
getProject().getRootDir(),
"${applicationId}-${variant.versionName}.apk")
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
productFlavors {
johnlife {
applicationId "odesk.johnlife.skylight"
}
skylight {
applicationId "com.skylight"
}
}
}