-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
95 lines (84 loc) · 4.38 KB
/
build.gradle
File metadata and controls
95 lines (84 loc) · 4.38 KB
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
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "org.researchstack.molemapper"
minSdkVersion 16
targetSdkVersion 23
versionCode 9
versionName "0.9.4"
multiDexEnabled true
// Enables use of vector drawable for projects using Gradle 2.0.+. Please see
// http://android-developers.blogspot.com/2016/02/android-support-library-232.html if you
// are running Gradle 1.5 for other necessary steps
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField 'String', 'STUDY_BASE_URL', "\"https://webservices.sagebridge.org/\""
// Define STUDY_ID, STUDY_NAME, STUDY_PEM can be defined here or in your local.properties
// file. These variables are needed for upload to properly work.
// RELEASE_STUDY_ID is of type String (e.g. "id-mole-mapper-study")
// RELEASE_STUDY_NAME is of type String (e.g. "MoleMapper Study")
// RELEASE_STUDY_PEM_FILE_NAME is of type String, (e.g. "molemapper"). The pem file should
// be located at the root directory of your assets folder.
buildConfigField 'String', 'STUDY_ID',
project.hasProperty('RELEASE_STUDY_ID') ? project.get('RELEASE_STUDY_ID') : "\"placeholder\""
buildConfigField 'String', 'STUDY_NAME',
project.hasProperty('RELEASE_STUDY_NAME') ? project.get('RELEASE_STUDY_NAME') : "\"placeholder\""
buildConfigField 'String', 'STUDY_PEM',
project.hasProperty('RELEASE_STUDY_PEM_FILE_NAME') ? project.get('RELEASE_STUDY_PEM_FILE_NAME') : "\"placeholder\""
}
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField 'String', 'STUDY_BASE_URL', "\"https://webservices.sagebridge.org/\""
// Define STUDY_ID, STUDY_NAME, STUDY_PEM can be defined here or in your local.properties
// file. These variables are needed for upload to properly work.
// RELEASE_STUDY_ID is of type String (e.g. "id-mole-mapper-study")
// RELEASE_STUDY_NAME is of type String (e.g. "MoleMapper Study")
// RELEASE_STUDY_PEM_FILE_NAME is of type String, (e.g. "molemapper"). The pem file should
// be located at the root directory of your assets folder.
buildConfigField 'String', 'STUDY_ID',
project.hasProperty('DEBUG_STUDY_ID') ? project.get('DEBUG_STUDY_ID') : "\"placeholder\""
buildConfigField 'String', 'STUDY_NAME',
project.hasProperty('DEBUG_STUDY_NAME') ? project.get('DEBUG_STUDY_NAME') : "\"placeholder\""
buildConfigField 'String', 'STUDY_PEM',
project.hasProperty('DEBUG_STUDY_PEM_FILE_NAME') ? project.get('DEBUG_STUDY_PEM_FILE_NAME') : "\"placeholder\""
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
dexOptions {
javaMaxHeapSize "4g" //specify the heap size for the dex process
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.android.support:support-v13:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'com.android.support:multidex:1.0.1'
compile 'org.researchstack:skin:1.0.0.rc3'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.1'
apt 'co.touchlab.squeaky:squeaky-processor:0.4.0.0'
compile 'com.madgag.spongycastle:core:1.54.0.0'
compile 'com.madgag.spongycastle:prov:1.54.0.0'
compile 'com.madgag.spongycastle:pkix:1.54.0.0'
compile 'pl.charmas.android:android-reactive-location:0.8@aar'
compile 'com.google.android.gms:play-services-location:8.4.0'
}