-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
65 lines (57 loc) · 2.24 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
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.sampleapp'
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName '1.0'
multiDexEnabled true
// To configure communications with Bridge Study Manager (https://research.sagebridge.org/),
// create a 'gradle.properties' file in the same directory as this build.gradle and add
// the needed values, for example studyId="bridge_study_id" to make them available as
// BuildConfig.STUDY_ID, BuildConfig.STUDY_NAME, etc
buildConfigField 'String', 'STUDY_ID', studyId
buildConfigField 'String', 'STUDY_NAME', studyName
buildConfigField 'String', 'STUDY_SUBPOPULATION_GUID', studyId // default subpopulation
buildConfigField 'String', 'STUDY_BASE_URL', "\"https://webservices.sagebridge.org/\""
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
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(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'org.researchstack:skin:1.0.0.rc3'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'net.zetetic:android-database-sqlcipher:3.3.1-2@aar'
apt 'co.touchlab.squeaky:squeaky-processor:0.4.0.0'
compile 'com.android.support:multidex:1.0.1'
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'
}