forked from GoogleCloudPlatform/fda-mystudies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
103 lines (97 loc) · 4.57 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
103
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
def apikeyPropertiesFile = rootProject.file("api.properties");
def apikeyProperties = new Properties()
apikeyProperties.load(new FileInputStream(apikeyPropertiesFile))
android {
productFlavors {
fda {
dimension 'version'
// Update `applicationId` with your Applicaiton ID (see https://developer.android.com/studio/build/application-id)
// For example, you could set `applicationId` to "<prefix>_<env>.<domain>" or "com.<domain>.<subdomain>"
applicationId "YOUR_APPLICATION_ID"
versionCode 15
versionName "1.0"
}
}
compileSdkVersion 29
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildConfigField("String", "API_KEY", apikeyProperties['API_KEY'])
buildConfigField("String", "BASE_URL_STUDY_DATASTORE", apikeyProperties['BASE_URL_STUDY_DATASTORE'])
buildConfigField("String", "BASE_URL_PARTICIPANT_DATASTORE", apikeyProperties['BASE_URL_PARTICIPANT_DATASTORE'])
buildConfigField("String", "BASE_URL_PARTICIPANT_CONSENT_DATASTORE", apikeyProperties['BASE_URL_PARTICIPANT_CONSENT_DATASTORE'])
buildConfigField("String", "BASE_URL_PARTICIPANT_ENROLLMENT_DATASTORE", apikeyProperties['BASE_URL_PARTICIPANT_ENROLLMENT_DATASTORE'])
buildConfigField("String", "BASE_URL_AUTH_SERVER", apikeyProperties['BASE_URL_AUTH_SERVER'])
buildConfigField("String", "BASE_URL_HYDRA_SERVER", apikeyProperties['BASE_URL_HYDRA_SERVER'])
buildConfigField("String", "BASE_URL_RESPONSE_DATASTORE", apikeyProperties['BASE_URL_RESPONSE_DATASTORE'])
buildConfigField("String", "APP_TYPE", apikeyProperties['APP_TYPE'])
buildConfigField("String", "APP_ID", apikeyProperties['APP_ID'])
buildConfigField("String", "HYDRA_CLIENT_ID", apikeyProperties['HYDRA_CLIENT_ID'])
buildConfigField("String", "STUDY_ID", apikeyProperties['STUDY_ID'])
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
maven {
url 'https://github.com/WickeDev/stetho-realm/raw/master/maven-repo'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/NOTICE'
}
testOptions {
unitTests.returnDefaultValues = true
}
android {
useLibrary 'org.apache.http.legacy'
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
lintOptions {
abortOnError false
}
}
flavorDimensions("version")
}
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'de.greenrobot:eventbus:2.4.0'
implementation 'org.researchstack:backbone:1.1.1'
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.github.barteksc:android-pdf-viewer:2.4.0'
implementation 'com.kovachcode:timePickerWithSeconds:1.0.1'
implementation 'com.tom_roush:pdfbox-android:1.8.10.1'
implementation 'com.android.support:customtabs:28.0.0'
implementation 'junit:junit:4.13'
//please remove these 2 dependencies for release build
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.uphyca:stetho_realm:2.3.0'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation "com.squareup.okhttp3:mockwebserver:4.4.0"
testImplementation 'org.mockito:mockito-android:2.11.0'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'