forked from TheSoftwareFactory/lokki-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·102 lines (85 loc) · 3.18 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
apply plugin: 'com.android.application'
//build it !
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
lintOptions {
abortOnError true
}
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
versionCode 414
versionName "4.1.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
storeFile file("lokki-release.keystore")
keyAlias "lokki-release"
storePassword System.getenv("LKIKSTOREPWD")
keyPassword System.getenv("LKIKPWD")
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
if (file("lokki-release.keystore").exists()) {
signingConfig signingConfigs.release
}
}
}
productFlavors {
development {}
production {}
}
sourceSets {
androidTest {
setRoot('src/test')
}
}
packagingOptions {
exclude 'LICENSE.txt'
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
def apk = output.outputFile;
def newName;
newName = apk.name.replace(project.name, "lokki");
newName = newName.replace("-" + variant.buildType.name, "")
newName = newName.replace(".apk", "-v" + defaultConfig.versionName + "-" + variant.buildType.name + ".apk");
if (output.zipAlign) {
output.outputFile = new File(apk.parentFile, newName.replace("-unaligned", ""));
} else {
output.outputFile = new File(apk.parentFile, newName);
}
logger.info('INFO: Set outputFile to ' + output.outputFile + " for [" + output.name + "]");
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.google.android.gms:play-services-gcm:7.5.0'
compile 'com.google.android.gms:play-services-maps:7.5.0'
compile 'com.google.android.gms:play-services-location:7.5.0'
compile 'com.google.android.gms:play-services-analytics:7.5.0'
compile 'com.makeramen:roundedimageview:2.0.1'
compile files('libs/android-query.0.26.7.jar')
compile(name:'android-support-v4-preferencefragment-master-release', ext:'aar')
compile 'com.android.support:support-annotations:21.0.3'
// Espresso
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.0') {
exclude group: 'com.android.support'
}
// Mockito
androidTestCompile 'org.mockito:mockito-core:1.9.5'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
androidTestCompile 'com.google.dexmaker:dexmaker:1.1'
// MockWebServer
androidTestCompile 'com.squareup.okhttp:mockwebserver:2.3.0'
// Android-compatible but recent version of HttpClient
androidTestCompile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1'
}